corelibraries-devexpress-dot-xtraprinting-dot-brick.md
Specifies brick visibility on printouts and documents exported to specific formats.
Namespace : DevExpress.XtraPrinting
Assembly : DevExpress.Printing.v25.2.Core.dll
NuGet Package : DevExpress.Printing.Core
[DefaultValue(CanPublishToFormats.All)]
public CanPublishToFormats CanPublishToFormats { get; set; }
<DefaultValue(CanPublishToFormats.All)>
Public Property CanPublishToFormats As CanPublishToFormats
| Type | Default | Description |
|---|---|---|
| CanPublishToFormats | All |
A CanPublishToFormats enumeration value that specifies brick visibility on printouts and documents exported to specific formats.
|
Available values:
Show 13 items
| 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.
| | Pdf |
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.
|
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))
See Also