RepositoryItemMemoExEdit.AutoHideScrollBars Property
Gets or sets whether the extended memo editor hides scroll bars when text fits within the popup window’s 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 popup window’s 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 AutoHideScrollBars is set to DefaultBoolean.True, the MemoExEdit popup window hides scroll bars when text fits within the visible area. When text exceeds the popup window’s bounds, the editor displays the corresponding scroll bar automatically.
Set AutoHideScrollBars to DefaultBoolean.False to force the editor 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 MemoExEdit control to display the vertical scroll bar only when text exceeds the popup window’s height:
memoExEdit1.Properties.ScrollBars = System.Windows.Forms.ScrollBars.Vertical;
memoExEdit1.Properties.AutoHideScrollBars = DevExpress.Utils.DefaultBoolean.True;