corelibraries-devexpress-dot-xtraprinting-dot-textbrick-20cd7248.md
Gets or sets the formatting string applied to the brick’s text.
Namespace : DevExpress.XtraPrinting
Assembly : DevExpress.Printing.v25.2.Core.dll
NuGet Package : DevExpress.Printing.Core
public BrickStringFormat StringFormat { get; set; }
Public Property StringFormat As BrickStringFormat
| Type | Description |
|---|---|
| BrickStringFormat |
A BrickStringFormat object which represents the formatting string for the brick’s text.
|
Use the StringFormat property to specify text layout information (such as alignment, orientation and tab stops) and display manipulations (such as ellipsis insertion and national digit substitution).
Note
The string format specified by this property is applied to the text returned by an object of the TextBrick.TextValue property. The TextBrickBase.Text property is set to the resulting text.
The following code snippet (auto-collected from DevExpress Examples) contains a reference to the StringFormat 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.
web-forms-pivot-grid-export-additional-captions-header-or-footer/CS/Default.aspx.cs#L51
tb.Text = "Custom Header";
tb.StringFormat = new BrickStringFormat(StringAlignment.Center);
tb.Rect = new RectangleF(0, 0, l.PrintingSystem.Graph.ClientPageSize.Width, 20);
web-forms-pivot-grid-export-additional-captions-header-or-footer/VB/Default.aspx.vb#L46
tb.Text = "Custom Header"
tb.StringFormat = New BrickStringFormat(StringAlignment.Center)
tb.Rect = New RectangleF(0, 0, l.PrintingSystem.Graph.ClientPageSize.Width, 20)
See Also