IWSectionCollection module

class IWSectionCollection.IWSectionCollection

Bases: IDocumentObjectCollection, ICollectionBase, IEnumerable

This class represents a collection of sections in a document.

None
get_Item(index

int) -> Section: Returns the section at the specified index.

Add(section

ISection) -> int: Adds a section to the collection and returns the index of the added section.

IndexOf(section

ISection) -> int: Returns the index of the specified section in the collection.

abstract Add(section: ISection) int

Adds a section to the collection and returns the index of the added section.

Parameters:

section (ISection) – The section to add to the collection.

Returns:

The index of the added section.

Return type:

int

abstract IndexOf(section: ISection) int

Returns the index of the specified section in the collection.

Parameters:

section (ISection) – The section to find the index of.

Returns:

The index of the specified section.

Return type:

int

abstract get_Item(index: int) Section

Returns the section at the specified index.

Parameters:

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

Returns:

The section at the specified index.

Return type:

Section