GemBox.Document
  • Overview
  • Examples
  • Free version
  • Support
  • Pricelist

    Show / Hide Table of Contents

    BlockContentControl Class

    Namespace:
    GemBox.Document.CustomMarkups
    Assembly:
    GemBox.Document.dll

    Represents block-level Content control (Structured Document Tag).

    • C#
    • VB.NET
    public class BlockContentControl : Block, IContentElement, IContentControl
    Public Class BlockContentControl
        Inherits Block
        Implements IContentElement, IContentControl
    Inheritance:
    System.Object
    Element
    Block
    BlockContentControl
    Implements
    IContentElement
    IContentControl

    Constructors

    BlockContentControl(DocumentModel, ContentControlType)

    Initializes a new instance of the BlockContentControl class.

    • C#
    • VB.NET
    public BlockContentControl(DocumentModel document, ContentControlType contentControlType)
    Public Sub New(document As DocumentModel, contentControlType As ContentControlType)
    Parameters
    document
    DocumentModel

    The owner document.

    contentControlType
    ContentControlType

    Type of content control.

    BlockContentControl(DocumentModel, ContentControlType, Block[])

    Initializes a new instance of the BlockContentControl class.

    • C#
    • VB.NET
    public BlockContentControl(DocumentModel document, ContentControlType contentControlType, params Block[] items)
    Public Sub New(document As DocumentModel, contentControlType As ContentControlType, ParamArray items As Block())
    Parameters
    document
    DocumentModel

    The owner document.

    contentControlType
    ContentControlType

    Type of content control.

    items
    Block[]

    The content control's content.

    BlockContentControl(DocumentModel, ContentControlType, IEnumerable<Block>)

    Initializes a new instance of the BlockContentControl class.

    • C#
    • VB.NET
    public BlockContentControl(DocumentModel document, ContentControlType contentControlType, IEnumerable<Block> items)
    Public Sub New(document As DocumentModel, contentControlType As ContentControlType, items As IEnumerable(Of Block))
    Parameters
    document
    DocumentModel

    The owner document.

    contentControlType
    ContentControlType

    Type of content control.

    items
    System.Collections.Generic.IEnumerable<Block>

    The content control's content.

    Properties

    Blocks

    Gets the blocks of this Content Control.

    • C#
    • VB.NET
    public BlockCollection Blocks { get; }
    Public ReadOnly Property Blocks As BlockCollection
    Property Value
    BlockCollection

    Blocks of this Content Control.

    ContentControlType

    Gets the type of this Content Control

    • C#
    • VB.NET
    public ContentControlType ContentControlType { get; }
    Public ReadOnly Property ContentControlType As ContentControlType
    Property Value
    ContentControlType

    The type of this Content Control

    ElementType

    Gets the ElementType of this IContentControl instance.

    • C#
    • VB.NET
    public override ElementType ElementType { get; }
    Public Overrides ReadOnly Property ElementType As ElementType
    Property Value
    ElementType

    The ElementType of this IContentControl instance.

    Overrides
    Element.ElementType

    Properties

    Gets all the possible properties for this Content Control item.

    • C#
    • VB.NET
    public ContentControlProperties Properties { get; }
    Public ReadOnly Property Properties As ContentControlProperties
    Property Value
    ContentControlProperties

    All the possible properties for this Content Control item.

    Methods

    Update()

    Updates the content of the current BlockContentControl with the data from XmlMapping.

    • C#
    • VB.NET
    public void Update()
    Public Sub Update

    UpdateSource()

    Updates the source from XmlMapping of the current BlockContentControl with its content.

    • C#
    • VB.NET
    public void UpdateSource()
    Public Sub UpdateSource

    Inherited Properties

    Content

    Gets the content of the current Element.

    (Inherited from Element)

    Document

    Gets the owner document.

    (Inherited from Element)

    Parent

    Gets the parent of this Element instance.

    (Inherited from Element)

    ParentCollection

    Gets the BlockCollection that contains this Block instance.

    (Inherited from Block)

    Inherited Methods

    Clone(System.Boolean)

    Clones this Block instance.

    (Inherited from Block)

    GetChildElements(System.Boolean)

    Gets the child elements.

    (Inherited from Element)

    GetChildElements(System.Boolean, ElementType[])

    Gets the child elements filtered by ElementType.

    (Inherited from Element)

    GetParentElements()

    Gets the parent elements.

    (Inherited from Element)

    GetParentElements(ElementType[])

    Gets the parent elements.

    (Inherited from Element)

    Implements

    IContentElement
    IContentControl
    Back to top

    Facebook • Twitter • LinkedIn

    © GemBox Ltd. — All rights reserved.