skip navigation
  • Product Bundles

    DevCraft

    All Telerik .NET tools and Kendo UI JavaScript components in one package. Now enhanced with:

    • NEW: Design Kits for Figma
    • Online Training
    • Document Processing Library
    • Embedded Reporting for web and desktop

    Web

    Kendo UI UI for Angular UI for Vue UI for jQuery KendoReact UI for Blazor UI for ASP.NET Core UI for ASP.NET MVC UI for ASP.NET AJAX

    Mobile

    UI for .NET MAUI

    Document Management

    Telerik Document Processing

    Desktop

    UI for .NET MAUI UI for WinUI UI for WinForms UI for WPF

    Reporting

    Telerik Reporting Telerik Report Server

    Testing & Mocking

    Test Studio Telerik JustMock

    CMS

    Sitefinity

    AI Productivity Tools

    AI Coding Assistants

    UI/UX Tools

    ThemeBuilder Design System Kit Templates and Building Blocks

    Debugging

    Fiddler Fiddler Everywhere Fiddler Classic Fiddler Everywhere Reporter FiddlerCore

    Free Tools

    KendoReact Free VB.NET to C# Converter Testing Framework
    View all products
  • Overview
  • Demos
    • Roadmap
    • Release History
  • Docs & Support
  • Pricing
  • Shopping cart
    • Account Overview
    • Your Licenses
    • Downloads
    • Support Center
    • Forum Profile
    • Payment Methods
    • Edit Profile
    • Log out
  • Login
  • Contact Us
  • Try now

Class ContentElementCollection

Represents a collection of content elements that can be added to a container element, including paths, text fragments, images, forms, and marked content.

Inheritance
System.Object
DocumentElementCollectionBase<ContentElementBase, IContainerElement>
DocumentElementCollection<ContentElementBase, IContainerElement>
ContentElementCollection
Inherited Members
DocumentElementCollection<ContentElementBase, IContainerElement>.SetParent(ContentElementBase, IContainerElement)
DocumentElementCollection<ContentElementBase, IContainerElement>.VerifyDocumentElementOnInsert(ContentElementBase)
DocumentElementCollectionBase<ContentElementBase, IContainerElement>.GetEnumerator()
DocumentElementCollectionBase<ContentElementBase, IContainerElement>.IndexOf(ContentElementBase)
DocumentElementCollectionBase<ContentElementBase, IContainerElement>.Insert(Int32, ContentElementBase)
DocumentElementCollectionBase<ContentElementBase, IContainerElement>.InsertRange(Int32, IEnumerable<ContentElementBase>)
DocumentElementCollectionBase<ContentElementBase, IContainerElement>.RemoveAt(Int32)
DocumentElementCollectionBase<ContentElementBase, IContainerElement>.RemoveRange(Int32, Int32)
DocumentElementCollectionBase<ContentElementBase, IContainerElement>.OnAfterAdd(ContentElementBase)
DocumentElementCollectionBase<ContentElementBase, IContainerElement>.OnAfterRemove(ContentElementBase)
DocumentElementCollectionBase<ContentElementBase, IContainerElement>.Clear()
DocumentElementCollectionBase<ContentElementBase, IContainerElement>.Contains(ContentElementBase)
DocumentElementCollectionBase<ContentElementBase, IContainerElement>.CopyTo(ContentElementBase[], Int32)
DocumentElementCollectionBase<ContentElementBase, IContainerElement>.Remove(ContentElementBase)
DocumentElementCollectionBase<ContentElementBase, IContainerElement>.IEnumerable.GetEnumerator()
DocumentElementCollectionBase<ContentElementBase, IContainerElement>.Add(ContentElementBase)
DocumentElementCollectionBase<ContentElementBase, IContainerElement>.Count
DocumentElementCollectionBase<ContentElementBase, IContainerElement>.ICollection<ContentElementBase>.IsReadOnly
DocumentElementCollectionBase<ContentElementBase, IContainerElement>.Owner
DocumentElementCollectionBase<ContentElementBase, IContainerElement>.Item[Int32]
System.Object.ToString()
System.Object.Equals(System.Object)
System.Object.Equals(System.Object, System.Object)
System.Object.ReferenceEquals(System.Object, System.Object)
System.Object.GetHashCode()
System.Object.GetType()
System.Object.MemberwiseClone()
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

Constructors

ContentElementCollection(IContainerElement)

Initializes a new instance of the ContentElementCollection class.

Declaration
public ContentElementCollection(IContainerElement parent)
Parameters
IContainerElement parent

The parent container element that owns this collection.

Methods

AddForm()

Creates a new Form element and adds it to the collection.

Declaration
public Form AddForm()
Returns
Form

The newly created and added Form instance.

AddForm(FormSource)

Creates a new Form element with the specified source and adds it to the collection.

Declaration
public Form AddForm(FormSource source)
Parameters
FormSource source

The form source for the new form element.

Returns
Form

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

AddImage()

Creates a new Image element and adds it to the collection.

Declaration
public Image AddImage()
Returns
Image

The newly created and added Image instance.

AddImage(ImageSource)

Creates a new Image element with the specified source and adds it to the collection.

Declaration
public Image AddImage(ImageSource source)
Parameters
ImageSource source

The image source for the new image element.

Returns
Image

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

AddMarkedContent(StructureElement)

Creates a new MarkedContent element with default tag value and adds it to the collection.

Declaration
public MarkedContent AddMarkedContent(StructureElement structureElement = null)
Parameters
StructureElement structureElement

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

Returns
MarkedContent

The newly created and added MarkedContent instance.

AddPath()

Creates a new Path element and adds it to the collection.

Declaration
public Path AddPath()
Returns
Path

The newly created and added Path instance.

AddTextFragment()

Creates a new TextFragment element and adds it to the collection.

Declaration
public TextFragment AddTextFragment()
Returns
TextFragment

The newly created and added TextFragment instance.

AddTextFragment(String)

Creates a new TextFragment element with the specified text and adds it to the collection.

Declaration
public TextFragment AddTextFragment(string text)
Parameters
System.String text

The text content for the TextFragment element.

Returns
TextFragment

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

Getting Started
  • Getting Started
Support Resources
  • Documentation
Community
  • Forums
  • Blogs
  • Document Processing Feedback Portal

Copyright © 2018 Progress Software Corporation and/or its subsidiaries or affiliates.
All Rights Reserved.

Progress, Telerik, and certain product names used herein are trademarks or registered trademarks of Progress Software Corporation and/or one of its subsidiaries or affiliates in the U.S. and/or other countries. See Trademarks for appropriate markings.