ScrollBars Property
- Namespace
TXTextControl
- Package
TXTextControl.asTextControl. WinForms. SDK TXTextControl.from the private NuGet feed or Text Control Offline PackagesWindows. Forms. dll
Description
Gets or sets a value indicating whether a Text Control has horizontal or vertical scroll bars.
Syntax
public ScrollBars ScrollBars { get; set; }Public Property ScrollBars As ScrollBarsMembers
| Value | Description |
|---|---|
| None | The Text Control has no scrollbars. |
| Horizontal | The Text Control has a horizontal scrollbar. |
| Vertical | The Text Control has a vertical scrollbar. |
| Both | The 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();textControl.ScrollBars = System.Windows.Forms.ScrollBars.Horizontal
textControl.Update()