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

    0

    False

    The value is false.

    1

    Default

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

    2

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