Namespace: BitMiracle.Docotic.Pdf.Layout
public void Component( ILayoutComponent component )
Public Sub Component ( component As ILayoutComponent )
Exception | Condition |
---|---|
ArgumentNullException | component is null. |
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()); });