LayoutContainer.Component Method (ILayoutComponent)

Adds custom component.

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

Syntax

C#
public void Component(
	ILayoutComponent component
)
VB
Public Sub Component ( 
	component As ILayoutComponent
)

Parameters

component
Type: BitMiracle.Docotic.Pdf.Layout.ILayoutComponent
The custom component.

Exceptions

ExceptionCondition
ArgumentNullExceptioncomponent is null.

Remarks

You should use a component object one time only. I.e., avoid such code:

ILayoutComponent component = new YourComponent();
page.Column(c =>
{
    c.Item().Component(component);
    c.Item().Component(component);
});

Instead, use different component objects:

page.Column(c =>
{
    c.Item().Component(new YourComponent());
    c.Item().Component(new YourComponent());
});

See Also