[]
        
(Showing Draft Content)

GrapeCity.Documents.Word.ContentCollection-1

Class ContentCollection<T>

Namespace
GrapeCity.Documents.Word
Assembly
GcDocs.Word.dll

Represents a collection of content items.

public abstract class ContentCollection<T> : IContentList<T>, IReadOnlyList<T>, IReadOnlyCollection<T>, IEnumerable<T>, IEnumerable where T : class

Type Parameters

T

The type of items in a collection.

Inheritance
ContentCollection<T>
Implements
Derived
Inherited Members

Properties

Count

Gets the number of content items in the collection.

public virtual int Count { get; }

Property Value

int

First

Gets the first item in the collection.

public virtual T First { get; }

Property Value

T

this[int]

Gets the item at the specified index in the collection.

public T this[int index] { get; }

Parameters

index int

Zero-based index of the element to get.

Property Value

T

The content item at the specified index in the collection.

Last

Gets the last item in the collection.

public virtual T Last { get; }

Property Value

T

Range

Gets the body range where content items are located.

protected RangeBase Range { get; set; }

Property Value

RangeBase

Methods

DebugPrint()

Prints debug info of the collection into console.

public virtual void DebugPrint()

GetEnumerator()

Returns an enumerator that iterates through the collection.

public IEnumerator<T> GetEnumerator()

Returns

IEnumerator<T>

An enumerator that can be used to iterate through the collection.

Print()

Prints debug info of the collection into the string.

public virtual string Print()

Returns

string

A string with debug info.