New to Telerik Document ProcessingStart a free 30-day trial

Container-backed collection for composing page visuals with paths, text, images, forms, and marked content.

Definition

Namespace:Telerik.Windows.Documents.Fixed.Model.Collections

Assembly:Telerik.Windows.Documents.Fixed.dll

Syntax:

C#
public sealed class ContentElementCollection : DocumentElementCollection<ContentElementBase, IContainerElement>, IList<ContentElementBase>, ICollection<ContentElementBase>, IEnumerable<ContentElementBase>, IEnumerable

Inheritance: objectDocumentElementCollectionBase<ContentElementBase, IContainerElement>DocumentElementCollection<ContentElementBase, IContainerElement>ContentElementCollection

Implements: ICollection<ContentElementBase>IEnumerableIEnumerable<ContentElementBase>IList<ContentElementBase>

Inherited Members DocumentElementCollectionBase<ContentElementBase, IContainerElement>.GetEnumerator()DocumentElementCollectionBase<ContentElementBase, IContainerElement>.IndexOf(ContentElementBase)DocumentElementCollectionBase<ContentElementBase, IContainerElement>.Insert(int, ContentElementBase)DocumentElementCollectionBase<ContentElementBase, IContainerElement>.InsertRange(int, IEnumerable<ContentElementBase>)DocumentElementCollectionBase<ContentElementBase, IContainerElement>.RemoveAt(int)DocumentElementCollectionBase<ContentElementBase, IContainerElement>.RemoveRange(int, int)DocumentElementCollectionBase<ContentElementBase, IContainerElement>.Clear()DocumentElementCollectionBase<ContentElementBase, IContainerElement>.Contains(ContentElementBase)DocumentElementCollectionBase<ContentElementBase, IContainerElement>.CopyTo(ContentElementBase[], int)DocumentElementCollectionBase<ContentElementBase, IContainerElement>.Remove(ContentElementBase)DocumentElementCollectionBase<ContentElementBase, IContainerElement>.Add(ContentElementBase)DocumentElementCollectionBase<ContentElementBase, IContainerElement>.CountDocumentElementCollectionBase<ContentElementBase, IContainerElement>.this[int]...

Constructors

Create a content element collection for the given container to compose page visuals.

C#
public ContentElementCollection(IContainerElement parent)
Parameters:parentIContainerElement

The parent container element that owns this collection.

Methods

Add a new Form to the container and return it.

C#
public Form AddForm()
Returns:

Form

The newly created and added Form instance.

Add a Form with the specified source and return it.

C#
public Form AddForm(FormSource source)
Parameters:sourceFormSource

The form source for the new form element.

Returns:

Form

The newly created and added Form instance with the specified source.

Add a new Image element to the container and return it.

C#
public Image AddImage()
Returns:

Image

The newly created and added Image instance.

Add an Image with the specified source and return it.

C#
public Image AddImage(ImageSource source)
Parameters:sourceImageSource

The image source for the new image element.

Returns:

Image

The newly created and added Image instance with the specified source.

Add a new MarkedContent with the default tag and return it.

C#
public MarkedContent AddMarkedContent(StructureElement structureElement = null)
Parameters:structureElementStructureElement

The structure element to associate with the marked content. Optional.

Returns:

MarkedContent

The newly created and added MarkedContent instance.

Add a new Path element to the container and return it for configuration.

C#
public Path AddPath()
Returns:

Path

The newly created and added Path instance.

Add a new TextFragment element to the container and return it.

C#
public TextFragment AddTextFragment()
Returns:

TextFragment

The newly created and added TextFragment instance.

Add a TextFragment initialized with the specified text and return it.

C#
public TextFragment AddTextFragment(string text)
Parameters:textstring

The text content for the TextFragment element.

Returns:

TextFragment

The newly created and added TextFragment instance with the specified text.