TX Text Control .NET for WPF

VerticalScrollBarVisibility Property

Property|Introduced in 16.0
Namespace
TXTextControl.WPF
Package
TXTextControl.TextControl.WPF.SDK as TXTextControl.WPF.dll from the private NuGet feed or Text Control Offline Packages

Description

Gets or sets a value that indicates whether a vertical scroll bar is shown. The property's value is of the type System.Windows.Controls.ScrollBarVisibility. This is a dependency property.

Syntax

public ScrollBarVisibility VerticalScrollBarVisibility { get; set; }

Members

ValueDescription
AutoA vertical scroll bar is shown when the document is not completely visible in the vertical direction.
DisabledA vertical scroll bar is not shown even if the document is not completely visible.
HiddenSame as Disabled.
VisibleSame as Auto.

Examples

The following example uses TextControl.VerticalScrollBarVisibility to configure vertical scroll bar visibility as part of the text control workflow. The configured value is checked before the workflow continues.

textControl.VerticalScrollBarVisibility = System.Windows.Controls.ScrollBarVisibility.Disabled;
Console.WriteLine($"Vertical Scroll Bar Visibility used by Text Control: {textControl.VerticalScrollBarVisibility}");