Brick.CanPublishToFormats Property
Specifies brick visibility on printouts and documents exported to specific formats.
Namespace: DevExpress.XtraPrinting
Assembly: DevExpress.Printing.v25.1.Core.dll
NuGet Package: DevExpress.Printing.Core
Declaration
[DefaultValue(CanPublishToFormats.All)]
public CanPublishToFormats CanPublishToFormats { get; set; }
Property Value
Type | Default | Description |
---|---|---|
CanPublishToFormats | All | A |
Available values:
Name | Description |
---|---|
None | A brick is hidden on printouts and all exported documents. |
Csv | A brick is visible when exporting to CSV. |
Docx | A brick is visible when exporting to DOCX. |
Htm | A brick is visible when exporting to HTM. |
Image | A brick is visible when exporting as an image. |
Mht | A brick is visible when exporting to MHT. |
A brick is visible when exporting to PDF. |
|
Printing | A brick is visible on printouts. |
Rtf | A brick is visible when exporting to RTF. |
Txt | A brick is visible when exporting to TXT. |
Xls | A brick is visible when exporting to XLS. |
Xlsx | A brick is visible when exporting to XLSX. |
All | A brick is visible on printouts and in all exported documents. |
Remarks
The following example creates a brick that is visible on the screen but is not printed:
using System.Drawing;
using DevExpress.XtraPrinting;
// ...
TextBrick tBrick = new TextBrick(BorderSide.None, 1, Color.Black, Color.Khaki, Color.Blue);
tBrick.Url = "http://www.devexpress.com";
tBrick.Text = "Click here to visit our web site";
tBrick.CanPublishToFormats = CanPublishToFormats.None;
printingSystem1.Graph.DrawBrick(tBrick, new RectangleF(0, 0, 200, 20));
Imports System.Drawing
Imports DevExpress.XtraPrinting
' ...
Private tBrick As New TextBrick(BorderSide.None, 1, Color.Black, Color.Khaki, Color.Blue)
tBrick.Url = "http://www.devexpress.com"
tBrick.Text = "Click here to visit our web site"
tBrick.CanPublishToFormats = CanPublishToFormats.None
printingSystem1.Graph.DrawBrick(tBrick, New RectangleF(0, 0, 200, 20))