Hide

SftTree/NET 2.0 - Tree Control for Windows Forms

Display
Print

HorizontalOffset Property, SftTree Class

Defines the current horizontal scrolling offset in the left pane (or the only pane).

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

Syntax

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

Value

Defines the current horizontal scrolling offset. If this value is greater than the SftTree.HorizontalExtent 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 left pane (or the only 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.HorizontalExtent 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.HorizontalExtent property) is wider than the tree control window.

See Also SftTree Class | Classes | SftTree/NET 2.0