TX Text Control .NET for Windows Forms

ScrollBars Property

Property
Namespace
TXTextControl
Package
TXTextControl.TextControl.WinForms.SDK as TXTextControl.Windows.Forms.dll from the private NuGet feed or Text Control Offline Packages

Description

Gets or sets a value indicating whether a Text Control has horizontal or vertical scroll bars.

Syntax

public ScrollBars ScrollBars { get; set; }

Members

ValueDescription
NoneThe Text Control has no scrollbars.
HorizontalThe Text Control has a horizontal scrollbar.
VerticalThe Text Control has a vertical scrollbar.
BothThe Text Control has a horizontal and a vertical scrollbar.

Examples

The following example uses TextControl.ScrollBars to configure scroll bars as part of the text control workflow. The change is then applied to the active document or user interface.

textControl.ScrollBars = System.Windows.Forms.ScrollBars.Horizontal;
textControl.Update();