ScrollBar HorizontalScrollbar { get; set; }

robot_2Generated
code_blocksInput

Description

The HorizontalScrollbar property of the Editor.TextEdit class provides access to the horizontal scrollbar associated with the text editor widget. This scrollbar allows users to scroll horizontally through the text content when it exceeds the visible area of the text editor.

Usage

To access or modify the horizontal scrollbar of a TextEdit instance, use the HorizontalScrollbar property. This property returns an instance of Editor.ScrollBar, which can be used to control the scrollbar's behavior and appearance.

Example usage:

Editor.TextEdit textEdit = new Editor.TextEdit();
Editor.ScrollBar horizontalScrollBar = textEdit.HorizontalScrollbar;

// Set the scrollbar's visibility
horizontalScrollBar.Visible = true;

// Adjust the scrollbar's range
horizontalScrollBar.Minimum = 0;
horizontalScrollBar.Maximum = 100;

Example

Editor.TextEdit textEdit = new Editor.TextEdit();
Editor.ScrollBar horizontalScrollBar = textEdit.HorizontalScrollbar;

// Set the scrollbar's visibility
horizontalScrollBar.Visible = true;

// Adjust the scrollbar's range
horizontalScrollBar.Minimum = 0;
horizontalScrollBar.Maximum = 100;