Skip to main content
All docs
V26.1
  • 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.

    0

    False

    The value is false.

    1

    Default

    The value is specified by a global option or a higher-level object.

    2

    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 AutoHideScrollBars property affects scrollbars specified by the ScrollBars property. If the ScrollBars property is set to None, 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 the AutoHideScrollBars or ScrollBars value.

    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;
    
    See Also