officefileapi-devexpress-dot-xtrarichedit-dot-api-dot-layout-dot-plaintextbox.md
Returns the text displayed in the current PlainTextBox element.
Namespace : DevExpress.XtraRichEdit.API.Layout
Assembly : DevExpress.RichEdit.v25.2.Core.dll
NuGet Package : DevExpress.RichEdit.Core
public string Text { get; }
Public ReadOnly Property Text As String
| Type | Description |
|---|---|
| String |
A string that is the text displayed in the layout element.
|
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.
string returnedInformation = "!A REGULAR TEXT BLOCK IS SELECTED!\r\n";
returnedInformation += String.Format("Content: {0}\r\n", currentTextBlock.Text);
Dim returnedInformation As String = "!A REGULAR TEXT BLOCK IS SELECTED!" & Constants.vbCrLf
returnedInformation &= String.Format("Content: {0}" & Constants.vbCrLf, currentTextBlock.Text)
richedit-winforms-layout-element-under-cursor/VB/ToolTip/Form1.vb#L40
If element.Parent.Type = LayoutType.PlainTextBox Then
text += String.Format(Microsoft.VisualBasic.Constants.vbCrLf & "PlainTextBox : ""{0}""", TryCast(element.Parent, PlainTextBox).Text)
text += GetBounds(element.Parent)
See Also