Back to Devexpress

RepositoryItemMemoEdit.ScrollBars Property

windowsforms-devexpress-dot-xtraeditors-dot-repository-dot-repositoryitemmemoedit-968e8eef.md

latest3.5 KB
Original Source

RepositoryItemMemoEdit.ScrollBars Property

Gets or sets whether the control displays the horizontal and/or vertical scroll bar.

Namespace : DevExpress.XtraEditors.Repository

Assembly : DevExpress.XtraEditors.v25.2.dll

NuGet Package : DevExpress.Win.Navigation

Declaration

csharp
[DefaultValue(ScrollBars.Vertical)]
[DXCategory("Behavior")]
public virtual ScrollBars ScrollBars { get; set; }
vb
<DXCategory("Behavior")>
<DefaultValue(ScrollBars.Vertical)>
Public Overridable Property ScrollBars As ScrollBars

Property Value

TypeDefaultDescription
ScrollBarsVertical

A ScrollBars enumeration value that specifies whether the control displays the horizontal scroll bar, the vertical scroll bar, both, or has no scroll bars.

|

Remarks

If WordWrap is set to true , the horizontal scrollbar is not displayed regardless of the ScrollBars property value.

The following code snippet (auto-collected from DevExpress Examples) contains a reference to the ScrollBars 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.

winforms-memo-editor-advanced-mode/CS/MemoEditSample/Views/DemoView.cs#L19

csharp
fluent.SetBinding(memoEdit.Properties, me => me.UseAdvancedMode, x => x.UseAdvancedMode);
fluent.SetBinding(memoEdit.Properties, me => me.ScrollBars, x => x.ScrollBars);
fluent.SetBinding(memoEdit.Properties.AdvancedModeOptions, me => me.UseDirectXPaint, x => x.UseDirectXPaint);

winforms-memo-editor-advanced-mode/VB/MemoEditSample/Views/DemoView.vb#L22

vb
fluent.SetBinding(memoEdit.Properties, Function([me]) [me].UseAdvancedMode, Function(x) x.UseAdvancedMode)
fluent.SetBinding(memoEdit.Properties, Function([me]) [me].ScrollBars, Function(x) x.ScrollBars)
fluent.SetBinding(memoEdit.Properties.AdvancedModeOptions, Function([me]) [me].UseDirectXPaint, Function(x) x.UseDirectXPaint)

See Also

WordWrap

RepositoryItemMemoEdit Class

RepositoryItemMemoEdit Members

DevExpress.XtraEditors.Repository Namespace