ITextStyleSheets

class ITextStyleSheets

Bases: ImpactCOMWrapperBase, Iterable

Summary:

A collection of ITextStyleSheet objects.

Remarks:

A collection of ITextStyleSheet objects.

Wraps a COM object or another wrapper instance. Accepts: - A valid impact_object - An existing impact_com_wrapper_base-derived instance

property count

Gets Count.

Summary:

The number of items in this collection.

Returns:

The value of Count.

Return type:

count (int)

add_based_on(source, name)
Summary:

Adds a new ITextStyleSheet object based upon another.

Remarks:

The Name method parameter must not be a zero length string, the first character cannot be the ‘$’ character and must be a name that is not currently assigned to any other ITextStyleSheet objects in the drawing.

Parameters:
  • source (ITextStyleSheet) – Specifies the ITextStyleSheet object to base the new one upon.

  • name (str) – Specifies the name of the new ITextStyleSheet object.

Examples:

add_copy_of(source, name)
Summary:

Adds a new ITextStyleSheet object that is a copy of another.

Remarks:

The Name method parameter must not be a zero length string, the first character cannot be the ‘$’ character and must be a name that is not currently assigned to any other ITextStyleSheet objects in the drawing.

Parameters:
  • source (ITextStyleSheet) – Specifies the ITextStyleSheet object that the properties will be copied from.

  • name (str) – Specifies the name of the new ITextStyleSheet object.

Examples:

delete(text_style_sheet)
Summary:

Deletes an ITextStyleSheet object from this collection.

Parameters:

text_style_sheet (ITextStyleSheet) – Specifies the text style sheet to delete.

isNone()

Checks if the COM object is None. This is useful for determining if the wrapper has been initialized with a valid COM object.

item(index)
Summary:

Gets an ITextStyleSheet object from this collection with the specified name or index.

Parameters:

index (any) – Specifies the name or index of the item to get.

Examples