IScreenOverlayCollectionBase#

class ansys.stk.core.graphics.IScreenOverlayCollectionBase#

The common base class for collections of overlays held by screen overlay and by screen overlay manager.

Overview#

item

Get the overlay at the specified index.

contains

Determine whether the collection contains a specific overlay.

remove

Remove the first occurrence of a specific overlay from the collection.

clear

Remove all overlays from the collection.

add

Add an overlay to the collection.

count

Get the number of screen overlays in the collection.

is_read_only

Get a value indicating whether the collection is read-only.

_new_enum

Return an enumerator that iterates through the collection.

Import detail#

from ansys.stk.core.graphics import IScreenOverlayCollectionBase

Property detail#

property IScreenOverlayCollectionBase.count: int#

Get the number of screen overlays in the collection.

property IScreenOverlayCollectionBase.is_read_only: bool#

Get a value indicating whether the collection is read-only.

property IScreenOverlayCollectionBase._new_enum: EnumeratorProxy#

Return an enumerator that iterates through the collection.

Method detail#

IScreenOverlayCollectionBase.item(self, index: int) IScreenOverlay#

Get the overlay at the specified index.

Parameters:

index : int

Returns:

IScreenOverlay

IScreenOverlayCollectionBase.contains(self, item: IScreenOverlay) bool#

Determine whether the collection contains a specific overlay.

Parameters:

item : IScreenOverlay

Returns:

bool

IScreenOverlayCollectionBase.remove(self, item: IScreenOverlay) bool#

Remove the first occurrence of a specific overlay from the collection.

Parameters:

item : IScreenOverlay

Returns:

bool

IScreenOverlayCollectionBase.clear(self) None#

Remove all overlays from the collection.

Returns:

None

IScreenOverlayCollectionBase.add(self, item: IScreenOverlay) None#

Add an overlay to the collection.

Parameters:

item : IScreenOverlay

Returns:

None