[]
        
(Showing Draft Content)

GrapeCity.Documents.Word.ContentControlCollection

Class ContentControlCollection

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

Represents a collection of ContentControl items.

public class ContentControlCollection : ContentObjectCollection<ContentControl>, IContentList<ContentControl>, IReadOnlyList<ContentControl>, IReadOnlyCollection<ContentControl>, IEnumerable<ContentControl>, IEnumerable
Inheritance
object
ContentControlCollection
Implements
System.Collections.Generic.IReadOnlyList<T><ContentControl>
System.Collections.Generic.IReadOnlyCollection<T><ContentControl>
System.Collections.Generic.IEnumerable<T><ContentControl>
System.Collections.IEnumerable
Inherited Members
object.ToString()
object.Equals(object)
object.Equals(object, object)
object.ReferenceEquals(object, object)
object.GetHashCode()
object.GetType()
object.MemberwiseClone()

Methods

Add(ContentControlType, bool)

Adds a ContentControl into the collection at the End location.

public ContentControl Add(ContentControlType type, bool fillContent = true)

Parameters

type ContentControlType

The new content control type.

fillContent bool

Whether to fill the new control content with default data.

Returns

ContentControl

The added ContentControl.

Insert(ContentControlType, InsertLocation, bool)

Inserts a ContentControl into the collection at the specified location.

public ContentControl Insert(ContentControlType type, InsertLocation location, bool fillContent = true)

Parameters

type ContentControlType

The new content control type.

location InsertLocation

The target InsertLocation for the insertion.

fillContent bool

Whether to fill the new control content with default data.

Returns

ContentControl

The inserted ContentControl.