LayoutContext.CreateElement Method

Creates the dynamic element.

Namespace:  BitMiracle.Docotic.Pdf.Layout
Assembly:  BitMiracle.Docotic.Pdf.Layout (in BitMiracle.Docotic.Pdf.Layout.dll)

Syntax

C#
public LayoutElement CreateElement(
	Action<LayoutContainer> content
)
VB
Public Function CreateElement ( 
	content As Action(Of LayoutContainer)
) As LayoutElement

Parameters

content
Type: System.Action<LayoutContainer>
The content of the created element.

Return Value

Type: LayoutElement
The created element.

Exceptions

ExceptionCondition
ArgumentNullExceptioncontent is null.

Remarks

You can pass the created element to the Element(LayoutElement) method or to the LayoutComponentContent constructor.

See Also