Hide

SftTree/NET 2.0 - Tree Control for Windows Forms

Display
Print

HorizontalOffsetRight Property, SftTree Class

Defines the current horizontal scrolling offset in the right pane.

Class: SftTree
Namespace: Softelvdm.SftTreeNET
Assembly: Softelvdm.SftTreeNET

Syntax

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

Value

Defines the current horizontal scrolling offset. If this value is greater than the SftTree.HorizontalExtentRight property, the value is adjusted to scroll to the rightmost position possible.

The default value is 0.

Comments

Defines the current horizontal scrolling offset 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 (SftTree.ScrollbarHorizontal property). The width of the displayable area can be set by the application using the SftTree.RecalcHorizontalExtent method or the SftTree.HorizontalExtentRight property. For performance reasons, the optimal width is not automatically calculated when adding items to a tree control.

The SftTree.HorizontalOffsetRight property defines the horizontal scrolling offset of the displayable area in the right pane of a split tree control. The SftTree.HorizontalOffsetRight property can only be used with a split tree control.

A tree control can only be scrolled horizontally if its displayable area (see SftTree.HorizontalExtentRight property) is wider than the tree control window.

See Also SftTree Class | Classes | SftTree/NET 2.0