Hide

SftTree/NET 2.0 - Tree Control for Windows Forms

Display
Print

WidthIgnore Property, CellClass Class

Defines whether this cell is ignored for optimal column width calculation.

Class: CellClass
Namespace: Softelvdm.SftTreeNET
Assembly: Softelvdm.SftTreeNET

Syntax

public bool WidthIgnore { get; set; }
Public Property WidthIgnore As Boolean

Value

True if this cell is ignored for optimal column width calculation, otherwise False.

The default value is False.

Comments

Defines whether this cell is ignored for optimal column width calculation.

The ColumnsClass.MakeOptimal, ColumnClass.MakeOptimal and ColumnClass.GetOptimalWidth methods are used to calculate the optimal width of columns.

When a cell's CellClass.WidthIgnore property is set to True, its contents are not considered to calculate a column's optimal width. This is helpful if most cells have average sized content, but a few have a huge amount of text (for example). The few cells that have large contents can be marked (CellClass.WidthIgnore), so they are sized based on the other, smaller cells. While this may result in these cells being clipped, this may be preferable to an excessive column width. The ItemClass.WidthIgnore property works similarly, but applies to all cells in one item.

See Also CellClass Class | Classes | SftTree/NET 2.0