IStyleCollection module

class IStyleCollection.IStyleCollection

Bases: ICollectionBase, IEnumerable

Represents a collection of styles.

abstract Add(style: IStyle) int

Adds a style to the collection.

Parameters:

style (IStyle) – The style to add.

Returns:

The index at which the style was added.

Return type:

int

FindByName

Finds a style by its name.

Parameters:

name (str) – The name of the style to find.

Returns:

The found style.

Return type:

Style

abstract get_Item(index: int) IStyle

Retrieves the style at the specified index.

Parameters:

index (int) – The index of the style to retrieve.

Returns:

The style at the specified index.

Return type:

IStyle