Back to Devexpress

Brick.CanPublishToFormats Property

corelibraries-devexpress-dot-xtraprinting-dot-brick.md

latest3.1 KB
Original Source

Brick.CanPublishToFormats Property

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

Declaration

csharp
[DefaultValue(CanPublishToFormats.All)]
public CanPublishToFormats CanPublishToFormats { get; set; }
vb
<DefaultValue(CanPublishToFormats.All)>
Public Property CanPublishToFormats As CanPublishToFormats

Property Value

TypeDefaultDescription
CanPublishToFormatsAll

A CanPublishToFormats enumeration value that specifies brick visibility on printouts and documents exported to specific formats.

|

Available values:

Show 13 items

NameDescription
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.

|

Remarks

The following example creates a brick that is visible on the screen but is not printed:

View Example

csharp
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));
vb
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

Brick Class

Brick Members

DevExpress.XtraPrinting Namespace