BlockContentControl Class
Represents block-level Content control (Structured Document Tag).
public class BlockContentControl : Block, IContentElement, IContentControl
Public Class BlockContentControl
Inherits Block
Implements IContentElement, IContentControl
- Inheritance:
- System.ObjectBlockContentControl
Constructors
BlockContentControl(DocumentModel, ContentControlType)
Initializes a new instance of the BlockContentControl class.
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.
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.
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.
Property Value
Blocks of this Content Control.
ContentControlType
Gets the type of this Content Control
public ContentControlType ContentControlType { get; }
Public ReadOnly Property ContentControlType As ContentControlType
Property Value
The type of this Content Control
ElementType
Gets the ElementType of this IContentControl instance.
public override ElementType ElementType { get; }
Public Overrides ReadOnly Property ElementType As ElementType
Property Value
The ElementType of this IContentControl instance.
Overrides
Properties
Gets all the possible properties for this Content Control item.
public ContentControlProperties Properties { get; }
Public ReadOnly Property Properties As ContentControlProperties
Property Value
All the possible properties for this Content Control item.
Methods
Update()
Updates the content of the current BlockContentControl with the data from XmlMapping.
UpdateSource()
Updates the source from XmlMapping of the current BlockContentControl with its content.
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) |