|
|
|
|
MaxScan Property, SftTree Class |
Defines the maximum number of items considered when resizing columns in response to double-clicking in the column resizing area.
Syntax SftTree Class (Softelvdm.SftTreeNET)
VB |
Public Property MaxScan As Integer |
C# |
public int MaxScan { get; set; } |
C++ |
public: property int MaxScan { |
Property Value
The maximum number of items to consider or 0 to evaluate all items.
The default value is 100.
Comments
The MaxScan property defines the maximum number of items considered when resizing columns in response to double-clicking in the column resizing area.
When column resizing is enabled (see Columns.Resizable), the control will automatically optimally resize the column when the user double-clicks in the column resizing area. Headers, items and footers are evaluated to determine the optimal column width. Up to the specified number of items in the item area are considered.
Calculating the optimal column width can be a time consuming operation, particularly if many items have been added to the tree control. The MaxScan property can be used to limit the maximum number of items in the item area to consider for optimal column width calculation. This reduces the time spent to calculate the optimal width, but may still leave some items clipped.