Skip to main content
A newer version of this page is available. .

Link Class

Namespace: DevExpress.XtraPrinting

Assembly: DevExpress.XtraPrinting.v18.1.dll

Declaration

Remarks

The XtraPrinting Library provides a unified approach to print components using its printing links technology, designed to create a ready-to-print document out of a given component.

To print a component, you can use descendants of the Link class. The following standard printing links are provided for the most popular Windows Forms controls.

DevExpress components that implement the IPrintable interface can be printed using the PrintableComponentLink.

To combine several components into one printing link, use the CompositeLink.

You can also create your own custom links. For a code example, see How to: Create a Custom Link to Print a ListView Control.

To fine tune a link’s printout, you can handle the following link events.

These events can also be used to create a document from scratch, by adding the necessary bricks to it. Within every document section, brick creation must start with the zero vertical coordinate.

To generate a document that is ready to print, call the Link.CreateDocument method.

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

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.

See Also