Document.DefaultTabWidth Property
In This Article
Gets or sets the default value of a tab stop width.
Namespace: DevExpress.XtraRichEdit.API.Native
Assembly: DevExpress.RichEdit.v24.2.Core.dll
NuGet Package: DevExpress.RichEdit.Core
#Declaration
#Property Value
Type | Description |
---|---|
Single | A Single object that is the default tab stop width measured in units specified by the Document. |
#Remarks
Use the following code to set the default tab width to 5 mm.
// Set the default tab width to 5 mm.
richEditControl1.Unit = DevExpress.Office.DocumentUnit.Millimeter;
richEditControl1.Document.DefaultTabWidth = 5f;
The DefaultTabWidth value is validated before assigning, and the ArgumentException is thrown if validation fails. The valid ranges are listed below. They depend on the specified measurement Document.Unit.
Document Unit | Valid Range |
---|---|
Document |
0. |
Document |
0. |
Document |
0. |
Document |
0. |
Document |
4. |
See Also