Method Component
- Namespace
- BitMiracle.Docotic.Pdf.Layout
- Assembly
- BitMiracle.Docotic.Pdf.Layout.dll
Component(Action<LayoutContainer>)
Adds custom content.
public void Component(Action<LayoutContainer> handler)
Parameters
handler
Action<LayoutContainer>The definition of the custom content.
Exceptions
- ArgumentNullException
handler
isnull
.
Component(ILayoutComponent)
Adds custom component.
public void Component(ILayoutComponent component)
Parameters
component
ILayoutComponentThe custom component.
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());
});
Exceptions
- ArgumentNullException
component
isnull
.