XTPGroupRowIconAlignment Enumeration
Description
Defines the alignment style used for custom icons displayed in a group row.
Members
| Member | Description |
|---|---|
| xtpGroupRowIconUnknown | Unknown (empty) value. |
| xtpGroupRowIconLeft | Draws the icon on the left side of the group row. This will place the icon before the group row expand button ("+" and "-" buttons). |
| xtpGroupRowIconBeforeText | Draws the icon before the caption text (between Expand/Collapse icon and text). |
| xtpGroupRowIconAfterText | Draws the icon after the caption text. |
| xtpGroupRowIconRight | Draws the icon at the far right side of the group row. |
| xtpGroupRowIconVTop | Vertical alignment: Draws the icon at the top of the group row. |
| xtpGroupRowIconVCenter | Vertical alignment: Draws the icon in the center of the group row. |
| xtpGroupRowIconVCenterToText | Vertical alignment: Centers the icons with the caption text. |
| xtpGroupRowIconVBottom | Vertical alignment: Draws the icon at the bottom of the group row. |
Remarks
The GroupRowIconAlignment property uses the XTPGroupRowIconAlignment enumeration to set the alignment of an icon displayed in a group row.
Example
Displaying an icon in a group row (Visual Basic)
This sample illustrates how to display an icon in a group row.
Private Sub wndGridControl_BeforeDrawRow(ByVal Row As XtremeGridControl.IGridRow, ByVal Item As XtremeGridControl.IGridRecordItem, ByVal Metrics As XtremeGridControl.IGridRecordItemMetrics)
Dim bShowGroupRowIcons As Boolean
bShowGroupRowIcons = True
If bShowGroupRowIcons Then
' for Group rows Record member is Nothing
If Row.Record Is Nothing Then
If Row.Expanded Then
Metrics.GroupRowIcon = 5
Metrics.GroupRowIconAlignment = xtpGroupRowIconBeforeText + xtpGroupRowIconVCenterToText
Else
Metrics.GroupRowIcon = 4
Metrics.GroupRowIconAlignment = xtpGroupRowIconAfterText + xtpGroupRowIconVCenterToText
End If
End If
End If
End Sub
See Also
GroupRowIconAlignment Property
Copyright (c) 1998-2024 Codejock Technologies. All rights reserved.