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:
public sealed class ContentElementCollection : DocumentElementCollection<ContentElementBase, IContainerElement>, IList<ContentElementBase>, ICollection<ContentElementBase>, IEnumerable<ContentElementBase>, IEnumerable
Inheritance: objectDocumentElementCollectionBase<ContentElementBase, IContainerElement>DocumentElementCollection<ContentElementBase, IContainerElement>ContentElementCollection
Implements:
Inherited Members
Constructors
Create a content element collection for the given container to compose page visuals.
public ContentElementCollection(IContainerElement parent)
The parent container element that owns this collection.
Methods
Add a Form with the specified source and return it.
public Form AddForm(FormSource source)
The form source for the new form element.
Returns:The newly created and added Form instance with the specified source.
Add an Image with the specified source and return it.
public Image AddImage(ImageSource source)
The image source for the new image element.
Returns:The newly created and added Image instance with the specified source.
Add a new MarkedContent with the default tag and return it.
public MarkedContent AddMarkedContent(StructureElement structureElement = null)
The structure element to associate with the marked content. Optional.
Returns:The newly created and added MarkedContent instance.
Add a new TextFragment element to the container and return it.
public TextFragment AddTextFragment()
The newly created and added TextFragment instance.
Add a TextFragment initialized with the specified text and return it.
public TextFragment AddTextFragment(string text)
The text content for the TextFragment element.
Returns:The newly created and added TextFragment instance with the specified text.