corelibraries-devexpress-dot-xtraprinting-dot-textbrickbase.md
Gets or sets the text to be displayed within the current brick.
Namespace : DevExpress.XtraPrinting
Assembly : DevExpress.Printing.v25.2.Core.dll
NuGet Package : DevExpress.Printing.Core
[DefaultValue("")]
public override string Text { get; set; }
<DefaultValue("")>
Public Overrides Property Text As String
| Type | Default | Description |
|---|---|---|
| String | String.Empty |
A String representing the text to be displayed within the brick.
|
The text specified by this property is obtained from the TextBrick.TextValue property after applying the formatting specified by the TextBrick.StringFormat property.
The following code snippets (auto-collected from DevExpress Examples) contain references to the Text 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#L50
TextBrick tb = new TextBrick();
tb.Text = "Custom Header";
tb.StringFormat = new BrickStringFormat(StringAlignment.Center);
reporting-winforms-custom-brick/CS/MyBrick.cs#L21
this.Url = url;
this.Text = url;
this.Hint = hint;
web-forms-pivot-grid-export-additional-captions-header-or-footer/VB/Default.aspx.vb#L45
Dim tb As TextBrick = New TextBrick()
tb.Text = "Custom Header"
tb.StringFormat = New BrickStringFormat(StringAlignment.Center)
reporting-winforms-custom-brick/VB/MyBrick.vb#L22
Me.Url = url
Me.Text = url
Me.Hint = hint
See Also