HeaderPane
Main
Hide
Share Link
Print

HorizontalExtentRight Property, ListClass Class

Defines the current horizontal scrolling extent in the right pane.

Class: ListClass
Namespace: Softelvdm.SftBoxNET
Assembly: Softelvdm.SftBoxNET

Syntax

public int HorizontalExtentRight { get; set; }
Public Property HorizontalExtentRight As Integer

Value

Defines the current horizontal scrolling extent. If this value is 0 (or less than the width of the right pane), horizontal scrolling is disabled.

The default value is 0.

Comments

Defines the current horizontal scrolling extent in the right pane.

A tree control's displayable area can be wider than the tree control's window width. If the displayable area is wider, the tree control can be scrolled horizontally if it has a horizontal scroll bar (ListClass.ScrollbarHorizontal property). The width of the displayable area can be set by the application using the ListClass.RecalcHorizontalExtent method or the ListClass.HorizontalExtentRight property. For performance reasons, the optimal width is not automatically calculated when adding items to a tree control.

The ListClass.HorizontalExtent property defines the horizontal extent of the displayable area (or the left pane of a split tree control).

The ListClass.HorizontalExtentRight property defines the horizontal extent of the displayable area in the right pane of a split tree control. The ListClass.HorizontalExtentRight property can only be used with a split tree control.

If the defined horizontal extent is smaller than the actual window width, the control cannot be scrolled horizontally. The horizontal scroll bar will be disabled or hidden, based on the ListClass.ScrollbarHorizontal property.

By default, a tree control does not handle horizontal scrolling, even if the ListClass.ScrollbarHorizontal property defines scroll bars to be available. To start horizontal scrolling, an application has to use the ColumnClass.MakeOptimal and ListClass.RecalcHorizontalExtent methods or the ListClass.HorizontalExtentRight property. They indicate to the tree control that horizontal scrolling support is desired and allows it to determine the horizontal scrolling extent.

If the PixelScaling property is set to PixelScalingEnum.Stretch, the value is a value for 96 DPI.

See Also ListClass Class | Classes | SftBox/NET 3.0