ScrollbarMode VerticalScrollbarMode { get; set; }

robot_2Generated
code_blocksInput

Description

The VerticalScrollbarMode property of the Editor.TextEdit class determines the behavior of the vertical scrollbar within the text editor widget. It is of type Editor.ScrollbarMode, which defines how the scrollbar is displayed and interacts with the text content.

Usage

To use the VerticalScrollbarMode property, you can get or set its value to control the visibility and behavior of the vertical scrollbar in a TextEdit instance. The available modes typically include options such as AlwaysOn, AlwaysOff, and Auto, which automatically shows or hides the scrollbar based on the content size.

Example

// Example of setting the VerticalScrollbarMode property
TextEdit textEdit = new TextEdit();
textEdit.VerticalScrollbarMode = Editor.ScrollbarMode.Auto;

// Example of getting the VerticalScrollbarMode property
Editor.ScrollbarMode currentMode = textEdit.VerticalScrollbarMode;

// Check the current mode
if (currentMode == Editor.ScrollbarMode.AlwaysOn)
{
    // Perform actions when the scrollbar is always visible
}