Back to Devexpress

PrintableComponentLinkBase.Component Property

corelibraries-devexpress-dot-xtraprintinglinks-dot-printablecomponentlinkbase.md

latest6.1 KB
Original Source

PrintableComponentLinkBase.Component Property

Gets or sets a IPrintable user implementation printed via the current link.

Namespace : DevExpress.XtraPrintingLinks

Assembly : DevExpress.Printing.v25.2.Core.dll

NuGet Package : DevExpress.Printing.Core

Declaration

csharp
[DefaultValue(null)]
public IBasePrintable Component { get; set; }
vb
<DefaultValue(Nothing)>
Public Property Component As IBasePrintable

Property Value

TypeDefaultDescription
IBasePrintablenull

An IPrintable user implementation.

|

The following code snippets (auto-collected from DevExpress Examples) contain references to the Component property.

Note

The algorithm used to collect these code examples remains a work in progress. Accordingly, the links and snippets below may produce inaccurate results. If you encounter an issue with code examples below, please use the feedback form on this page to report the issue.

winforms-print-pivot-and-chart-controls/CS/WinformsExport/Form1.cs#L32

csharp
PrintableComponentLink pivotLink = new PrintableComponentLink();
pivotLink.Component = pivotGridControl1;
PrintableComponentLink chartLink = new PrintableComponentLink();

asp-net-mvc-grid-export-multiple-gridviews-into-a-document/CS/Controllers/HomeController.cs#L32

csharp
categoriesGridSettings.Columns.Add("Description");
link1.Component = GridViewExtension.CreatePrintableObject(categoriesGridSettings, MyModel.GetCategories());

asp-net-web-forms-export-pivot-grid-and-chart-in-one-document/CS/Default.aspx.cs#L18

csharp
PrintableComponentLinkBase link1 = new PrintableComponentLinkBase(ps);
link1.Component = ASPxPivotGridExporter1;

asp-net-web-forms-grid-fit-exported-document-to-page/CS/WebApplication1/Default.aspx.cs#L17

csharp
PrintableComponentLinkBase pcl = new PrintableComponentLinkBase(new PrintingSystemBase());
pcl.Component = ASPxGridView1;
pcl.Margins.Left = pcl.Margins.Right = 50;

winforms-dashboard-print-and-export-visual-representation-as-is/CS/DashboardExport/CustomDashboardExporter.cs#L19

csharp
ps.AfterChange += ps_AfterChange;
    componentLink.Component = this;
}

winforms-print-pivot-and-chart-controls/VB/WinformsExport/Form1.vb#L31

vb
Dim pivotLink As PrintableComponentLink = New PrintableComponentLink()
pivotLink.Component = pivotGridControl1
Dim chartLink As PrintableComponentLink = New PrintableComponentLink()

asp-net-mvc-grid-export-multiple-gridviews-into-a-document/VB/Controllers/HomeController.vb#L37

vb
categoriesGridSettings.Columns.Add("Description")
link1.Component = GridViewExtension.CreatePrintableObject(categoriesGridSettings, MyModel.GetCategories())

asp-net-web-forms-export-pivot-grid-and-chart-in-one-document/VB/Default.aspx.vb#L19

vb
Dim link1 As PrintableComponentLinkBase = New PrintableComponentLinkBase(ps)
link1.Component = ASPxPivotGridExporter1
Dim link2 As PrintableComponentLinkBase = New PrintableComponentLinkBase(ps)

asp-net-web-forms-grid-fit-exported-document-to-page/VB/WebApplication1/Default.aspx.vb#L17

vb
Dim pcl As PrintableComponentLinkBase = New PrintableComponentLinkBase(New PrintingSystemBase())
pcl.Component = ASPxGridView1
pcl.Margins.Right = 50

winforms-dashboard-print-and-export-visual-representation-as-is/VB/DashboardExport/CustomDashboardExporter.vb#L21

vb
AddHandler ps.AfterChange, AddressOf ps_AfterChange
    componentLink.Component = Me
End Sub

See Also

PrintableComponentLinkBase Class

PrintableComponentLinkBase Members

DevExpress.XtraPrintingLinks Namespace