|
|
|
SftTreeItems.GridStyle Property |
Defines the method used to paint grid lines.
Syntax
VB.NET |
Style = object.GridStyle As SftTreeGridStyleConstants |
||
VB |
Style = object.GridStyle As SftTreeGridStyleConstants |
||
C#.NET |
SftTreeGridStyleConstants Style = object.GridStyle; |
||
VC++ |
enum SftTreeGridStyleConstants Style = object->GridStyle;
|
||
C |
HRESULT object->get_GridStyle(enum SftTreeGridStyleConstants* Style); |
||
Delphi |
Style := object.GridStyle : TOleEnum; |
||
VB.NET |
object.GridStyle = Style As SftTreeGridStyleConstants |
||
VB |
object.GridStyle = Style As SftTreeGridStyleConstants |
||
C#.NET |
SftTreeGridStyleConstants object.GridStyle = Style; |
||
VC++ |
enum SftTreeGridStyleConstants object->GridStyle = Style;
|
||
C |
HRESULT object->put_GridStyle(enum SftTreeGridStyleConstants Style); |
||
Delphi |
object.GridStyle := Style : TOleEnum; |
object
A SftTreeItems object.
Style
Defines the method used to paint grid lines.
Style |
Value |
Description |
0 |
No grid lines are drawn. |
|
1 |
Vertical grid lines are drawn between columns. |
|
2 |
Horizontal grid lines are drawn between items. |
|
3 |
Vertical and horizontal grid lines are drawn. |
|
4 |
Vertical dotted grid lines are drawn between columns. |
|
5 |
Horizontal dotted grid lines are drawn between items. |
|
6 |
Vertical and horizontal dotted grid lines are drawn. |
|
7 |
Horizontal grid lines are drawn and extend to the right edge of the control (beyond the end of the last column). |
|
8 |
Vertical and horizontal grid lines are drawn and extend to the right edge of the control (beyond the end of the last column). |
|
9 |
Horizontal dotted grid lines are drawn and extend to the right edge of the control (beyond the end of the last column). |
|
10 |
Vertical 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 ToolTips when grid lines are used can be defined using the Items.ToolTipsUseEntireCell property.
See Also SftTreeItems Object | Object Hierarchy