|
|
|
|
HorizontalExtent Property, SftTree Class |
Defines the current horizontal scrolling extent in the left pane (or the only pane).
Syntax SftTree Class (Softelvdm.SftTreeNET)
VB |
Public Property HorizontalExtent As Integer |
C# |
public int HorizontalExtent { get; set; } |
C++ |
public: property int HorizontalExtent { |
Property Value
Defines the current horizontal scrolling extent. If this value is 0 (or less than the width of the left pane), horizontal scrolling is disabled.
The default value is 0.
Comments
The HorizontalExtent property defines the current horizontal scrolling extent 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 HorizontalExtent property defines the horizontal extent of the displayable area (or the left pane of a split tree control).
The HorizontalExtentRight property defines the horizontal extent of the displayable area in the right pane of a split tree control. The 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 ScrollbarHorizontal property.
By default, a tree control does not handle horizontal scrolling, even if the ScrollbarHorizontal property defines scroll bars to be available. To start horizontal scrolling, an application has to use the ColumnClass.MakeOptimal and RecalcHorizontalExtent methods or the HorizontalExtent property. They indicate to the tree control that horizontal scrolling support is desired and allows it to determine the horizontal scrolling extent.