TextBox.HeightRule Property
Gets or sets the rule for determining the height of the text box.
Namespace: DevExpress.XtraRichEdit.API.Native
Assembly: DevExpress.RichEdit.v18.2.Core.dll
Declaration
Property Value
Type | Description |
---|---|
TextBoxSizeRule | A TextBoxSizeRule enumeration member specifying how the text box size is determined. |
Available values:
Name | Description |
---|---|
Auto | Sets the height to fit entire text. |
Exact | Sets the height to an exact value specified by the Shape.Size property. |
Remarks
By default, the HeightRule is set to TextBoxSizeRule.Auto and the text box is stretched horizontally to fit its content if necessary. You can set the HeightRule property to TextBoxSizeRule.Exact so the text box retains its size as specified by the Shape.Size property.
Note
When the text box is resized by the end-user, the HeightRule is set to TextBoxSizeRule.Exact.
Related GitHub Examples
The following code snippets (auto-collected from DevExpress Examples) contain references to the HeightRule 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.