Hide

SftTree/NET 2.0 - Tree Control for Windows Forms

Display
Print

TightOutlineGap Property, DimensionsClass Class

Defines the gap between parts and the outline when SftTree.SelectionHighlightStyle is defined as SelectionHighlightStyleEnum.HierarchyPartsOnlyTight or SelectionHighlightStyleEnum.HierarchyPartsOnlyLoose.

Class: DimensionsClass
Namespace: Softelvdm.SftTreeNET
Assembly: Softelvdm.SftTreeNET

Syntax

public Size TightOutlineGap { get; set; }
Public Property TightOutlineGap As Size

Value

The gap between parts and the outline in pixels.

The default value is Size.2, 2.

Comments

Defines the gap between parts and the outline when SftTree.SelectionHighlightStyle is defined as SelectionHighlightStyleEnum.HierarchyPartsOnlyTight or SelectionHighlightStyleEnum.HierarchyPartsOnlyLoose.

When SftTree.SelectionHighlightStyle is defined as SelectionHighlightStyleEnum.HierarchyPartsOnlyTight, the parts of the cell in the hierarchy column are highlighted. The highlight is constrained to the smallest rectangle containing all parts (plus the left, right, top and bottom gaps defined using TightOutlineGap).

When SftTree.SelectionHighlightStyle is defined as SelectionHighlightStyleEnum.HierarchyPartsOnlyLoose, the parts of the cell in the hierarchy column are highlighted. The highlight extends from the top of the cell to the bottom, but is limited in width to highlight just the parts in the cell (plus the left and right side gaps defined using TightOutlineGap.Width)

See Also DimensionsClass Class | Classes | SftTree/NET 2.0