Hide

SftTree/OCX 7.5 - ActiveX Tree Control

Display
Print

GridStyle Property, SftTreeItems Object

Defines the method used to paint grid lines.

Syntax

Get

VB.NETStyle = object.GridStyle As SftTreeGridStyleConstants
VBStyle = object.GridStyle As SftTreeGridStyleConstants
C#.NETSftTreeGridStyleConstants Style = object.GridStyle;
VC++enum SftTreeGridStyleConstants Style = object->GridStyle;
enum SftTreeGridStyleConstants Style = object->GetGridStyle();
CHRESULT object->get_GridStyle(enum SftTreeGridStyleConstants* Style);

Put

VB.NETobject.GridStyle = Style As SftTreeGridStyleConstants
VBobject.GridStyle = Style As SftTreeGridStyleConstants
C#.NETSftTreeGridStyleConstants object.GridStyle = Style;
VC++enum SftTreeGridStyleConstants object->GridStyle = Style;
void object->PutGridStyle(enum SftTreeGridStyleConstants Style);
CHRESULT object->put_GridStyle(enum SftTreeGridStyleConstants Style);

object

A SftTreeItems object.

Style

Defines the method used to paint grid lines.

StyleValueDescription
gridSftTreeNone0No grid lines are drawn.
gridSftTreeVert1Vertical grid lines are drawn between columns.
gridSftTreeHorz2Horizontal grid lines are drawn between items.
gridSftTreeBoth3Vertical and horizontal grid lines are drawn.
gridSftTreeVertDot4Vertical dotted grid lines are drawn between columns.
gridSftTreeHorzDot5Horizontal dotted grid lines are drawn between items.
gridSftTreeBothDot6Vertical and horizontal dotted grid lines are drawn.
gridSftTreeHorzExtendRight7Horizontal grid lines are drawn and extend to the right edge of the control (beyond the end of the last column).
gridSftTreeBothExtendRight8Vertical and horizontal grid lines are drawn and extend to the right edge of the control (beyond the end of the last column).
gridSftTreeHorzDotExtendRight9Horizontal dotted grid lines are drawn and extend to the right edge of the control (beyond the end of the last column).
gridSftTreeBothDotExtendRight10Vertical and horizontal dotted grid lines are drawn and extend to the right edge of the control (beyond the end of the last column).

Comments

The GridStyle property defines the method used to paint grid lines.

Horizontal grid lines are not drawn if the Items.Cell3D property is set to True.

Vertical grid lines are not drawn if all column headers have no header text Header.Text (except for the first column) and all cells are marked for cell merging, in which case all cells are handled as one (visually) contiguous cell, even if each cell has individual cell text Cell.Text.

The grid line colors can be modified using the Items.GridHorizontalColor and Items.GridVerticalColor properties.

The size of Tool Tips when grid lines are used can be defined using the Items.ToolTipsUseEntireCell property.

See Also SftTreeItems Object | Object Hierarchy


Last Updated 08/13/2020 - (email)
© 2024 Softel vdm, Inc.