Hide

SftTree/NET 2.0 - Tree Control for Windows Forms

Display
Print

WidthIgnore Property, RowHeaderClass Class

Defines whether this row header is ignored for optimal row header width calculation.

Class: RowHeaderClass
Namespace: Softelvdm.SftTreeNET
Assembly: Softelvdm.SftTreeNET

Syntax

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

Value

True if this row header is ignored for optimal row header width calculation, otherwise False.

The default value is False.

Comments

Defines whether this row header is ignored for optimal row header width calculation.

The RowHeadersClass.MakeOptimal method is used to calculate the optimal row header width.

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

See Also RowHeaderClass Class | Classes | SftTree/NET 2.0