RepositoryItemMemoEdit.AutoHideScrollBars Property
Gets or sets whether the memo editor hides scroll bars when text fits within the visible area.
Namespace: DevExpress.XtraEditors.Repository
Assembly: DevExpress.XtraEditors.v26.1.dll
Declaration
[DefaultValue(DefaultBoolean.Default)]
[DXCategory("Behavior")]
public DefaultBoolean AutoHideScrollBars { get; set; }
Property Value
| Type | Default | Description |
|---|---|---|
| DefaultBoolean | Default | A DefaultBoolean value that specifies whether the editor hides scroll bars when text fits within the visible area. |
Available values:
| Name | Description | Return Value |
|---|---|---|
| True | The value is true. |
|
| False | The value is false. |
|
| Default | The value is specified by a global option or a higher-level object. |
|
Remarks
If the AutoHideScrollBars property is set to DefaultBoolean.True, the MemoEdit control hides scroll bars when text fits within the editor’s visible area. If text exceeds the editor’s bounds, the control displays the required scroll bar.
Set AutoHideScrollBars to DefaultBoolean.False to always display scroll bars.
Notes
The
AutoHideScrollBarsproperty affects scrollbars specified by the ScrollBars property. If theScrollBarsproperty is set toNone, the editor does not display scroll bars.If the WordWrap property is set to
true, the editor does not display a horizontal scroll bar, regardless of theAutoHideScrollBarsorScrollBarsvalue.
Example
The following example configures a MemoEdit control to display a vertical scroll bar only when text exceeds the editor’s height:
memoEdit1.Properties.ScrollBars = System.Windows.Forms.ScrollBars.Vertical;
memoEdit1.Properties.AutoHideScrollBars = DevExpress.Utils.DefaultBoolean.True;