Table of Contents
Delegates #
Name | Parameters | Return Type | Description |
---|---|---|---|
SortFunction | value1 as Variant value2 as Variant | GraffitiGridColumn.SortResults | Delegate function definition for sorting methods. |
Enumerations #
Name | Values |
---|---|
Alignments | Left Center Right |
SortDirections | Unsorted Ascending Descending |
SortResults | LessThan EqualTo GreaterThan |
Constants #
This object exposes no constants.
Events #
This object exposes no events.
Methods #
Name | Parameters | Return Type | Description |
---|---|---|---|
Constructor | text as String width as String = “*” | None | Creates a new instance. |
Destroy | None | None | Removes all outside references and readies the column for deconstruction. |
Invalidate | None | None | Invalidates the column’s cached Pictures to be redrawn upon the next parent GraffitiGrid’s refresh. |
Sort | direction as GraffitiGridColumn.SortDirections | None | Sorts the column. |
Properties #
Name | Type | Default Value | Description |
---|---|---|---|
ActualWidth (READ ONLY) | Double | 0 | Actual width of the column within its parent GraffitiGrid’s viewport. |
Alignment | Alignments | Alignments.Left | The justification of the column’s contents. |
BackgroundColor | ColorGroup | Nil | ColorGroup used to draw the background of the column’s header and cells. |
CanSort | Boolean | False | Allows the column to be sorted by the user. |
CellEditor | GraffitiGridCellEditor | Nil | GraffitiGridCellEditor controller used for edit operations of cells within this column. |
CellRenderer | GraffitiGridCellRenderer | Nil | GraffitiGridCellRenderer class instance used for drawing column cell contents. |
FontName | String | “System” | Font name used for drawing header and cells. |
Font Size | Integer | 0 | Size of font drawing contents. |
FontStyle | FontStyles | FontStyles.None | Style of font used to draw text content. |
Frozen | Boolean | False | Controls whether the column is always drawn in a left-hand pane and scrolled independently of non-frozen columns. |
MinimumWidth | Integer | 0 | Minimum allowed width for column. |
SortDelegate | SortFunction | Nil | Function to use for sorting operations. |
SortDirection | SortDirections | SortDirections.Unset | Current direction of the column’s sort. |
Tag | Variant | Nil | Developer storage. |
Text | String | “” | Text to display in the column’s header. |
TextColor | ColorGroup | Nil | ColorGroup applied to column’s default text drawing. |
Visible | Boolean | True | Controls whether the column is visible within its parent GraffitiGrid’s viewport. |
Width | String | “*” | Width of the column. Valid values: 100 = Actual width in points. 10% = Percentage width of parent GraffitiGrid’s entire viewport. * = Split value among all columns without an otherwise set width. |
Shared Methods #
Name | Parameters | Return Type | Description |
---|---|---|---|
SortBoolean | value1 as Variant value2 as Variant | GraffitiGridColumn.SortResults | A basic Boolean sorting algorithm for use in SortDelegate properties. |
SortColor | value1 as Variant value2 as Variant | GraffitiGridColumn.SortResults | A basic Color sorting algorithm for use in SortDelegate properties. |
SortNumeric | value1 as Variant value2 as Variant | GraffitiGridColumn.SortResults | A basic numeric sorting algorithm for use in SortDelegate properties. |
SortString | value1 as Variant value2 as Variant | GraffitiGridColumn.SortResults | A basic String sorting algorithm for use in SortDelegate properties. |