Back to Devexpress

TextBrickBase.Text Property

corelibraries-devexpress-dot-xtraprinting-dot-textbrickbase.md

latest3.4 KB
Original Source

TextBrickBase.Text Property

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

Declaration

csharp
[DefaultValue("")]
public override string Text { get; set; }
vb
<DefaultValue("")>
Public Overrides Property Text As String

Property Value

TypeDefaultDescription
StringString.Empty

A String representing the text to be displayed within the brick.

|

Remarks

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

csharp
TextBrick tb = new TextBrick();
tb.Text = "Custom Header";
tb.StringFormat = new BrickStringFormat(StringAlignment.Center);

reporting-winforms-custom-brick/CS/MyBrick.cs#L21

csharp
this.Url = url;
this.Text = url;
this.Hint = hint;

web-forms-pivot-grid-export-additional-captions-header-or-footer/VB/Default.aspx.vb#L45

vb
Dim tb As TextBrick = New TextBrick()
tb.Text = "Custom Header"
tb.StringFormat = New BrickStringFormat(StringAlignment.Center)

reporting-winforms-custom-brick/VB/MyBrick.vb#L22

vb
Me.Url = url
Me.Text = url
Me.Hint = hint

See Also

TextBrickBase Class

TextBrickBase Members

DevExpress.XtraPrinting Namespace