ClassContentElementCollection
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
ContentElementCollection(IContainerElement)
Create a content element collection for the given container to compose page visuals.
Declaration
public ContentElementCollection(IContainerElement parent)
Parameters
parent
The parent container element that owns this collection.
Methods
AddForm()
Add a new Form to the container and return it.
Declaration
public Form AddForm()
Returns
The newly created and added Form instance.
AddForm(FormSource)
Add a Form with the specified source and return it.
Declaration
public Form AddForm(FormSource source)
Parameters
source
The form source for the new form element.
Returns
The newly created and added Form instance with the specified source.
AddImage()
Add a new Image element to the container and return it.
Declaration
public Image AddImage()
Returns
The newly created and added Image instance.
AddImage(ImageSource)
Add an Image with the specified source and return it.
Declaration
public Image AddImage(ImageSource source)
Parameters
source
The image source for the new image element.
Returns
The newly created and added Image instance with the specified source.
AddMarkedContent(StructureElement)
Add a new MarkedContent with the default tag and return it.
Declaration
public MarkedContent AddMarkedContent(StructureElement structureElement = null)
Parameters
structureElement
The structure element to associate with the marked content. Optional.
Returns
The newly created and added MarkedContent instance.
AddPath()
Add a new Path element to the container and return it for configuration.
Declaration
public Path AddPath()
Returns
The newly created and added Path instance.
AddTextFragment()
Add a new TextFragment element to the container and return it.
Declaration
public TextFragment AddTextFragment()
Returns
The newly created and added TextFragment instance.
AddTextFragment(string)
Add a TextFragment initialized with the specified text and return it.
Declaration
public TextFragment AddTextFragment(string text)
Parameters
text
The text content for the TextFragment element.
Returns
The newly created and added TextFragment instance with the specified text.