ScrollbarMode HorizontalScrollbar { get; set; }

book_4_sparkGenerated
code_blocksInput

Description

The HorizontalScrollbar property of the Editor.GraphicsView class determines the visibility and behavior of the horizontal scrollbar within the graphics view. It is of type Editor.ScrollbarMode, which defines the possible modes for the scrollbar, such as always visible, always hidden, or visible only when needed.

Usage

To use the HorizontalScrollbar property, you can get or set its value to control the horizontal scrollbar's behavior in the graphics view. This can be useful for customizing the user interface to better fit the needs of your application.

Example usage:

var graphicsView = new Editor.GraphicsView();
graphicsView.HorizontalScrollbar = Editor.ScrollbarMode.Auto;

In this example, the horizontal scrollbar will automatically appear when the content exceeds the viewable area.

Example

// Create a new GraphicsView instance
Editor.GraphicsView graphicsView = new Editor.GraphicsView();

// Set the horizontal scrollbar mode to Auto
graphicsView.HorizontalScrollbar = Editor.ScrollbarMode.Auto;

// Check the current mode of the horizontal scrollbar
Editor.ScrollbarMode currentMode = graphicsView.HorizontalScrollbar;

// Output the current mode
// Note: Avoid using Console.WriteLine in Sandbox environment
// Instead, use appropriate logging or UI feedback methods
// Console.WriteLine($"Current Horizontal Scrollbar Mode: {currentMode}");