Hide

SftTree/NET 2.0 - Tree Control for Windows Forms

Display
Print

MaxScan Property, SftTree Class

Defines the maximum number of items considered when resizing columns in response to double-clicking in the column resizing area.

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

Syntax

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

Value

The maximum number of items to consider or 0 to evaluate all items.

The default value is 100.

Comments

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 ColumnsClass.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.

See Also SftTree Class | Classes | SftTree/NET 2.0