SftTree/NET 2.0

HorizontalOffset Property, SftTree Class

Softel vdm, Inc.

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

Syntax      SftTree Class (Softelvdm.SftTreeNET)

VB   

Public Property HorizontalOffset As Integer

C#   

public int HorizontalOffset { get; set; }

C++   

public: property int HorizontalOffset {
        int get();
        void set(int value);
}

Property Value

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

The default value is 0.

Comments

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

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

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


Feedback / comments / error reports for this topic
© 2007 - Softel vdm, Inc. - www.softelvdm.com