TTMSFNCKanbanBoardItem Class
Represents a single card item inside a kanban board column, with text, title, optional bitmap, color marks, and selection state.
API unit family: TMSFNCKanbanBoard
Inherits from: TCollectionItem
Syntax
TTMSFNCKanbanBoardItem = class(TCollectionItem)
Properties
| Name | Description |
|---|---|
| Bitmap | An image displayed on the item card. |
| BitmapContainer | Returns the bitmap container shared with the owning kanban board, used to resolve named bitmaps. |
| BitmapName | The name of an image in the bitmap container to use as the item's picture. |
| Color | The background colour of the item card in its normal state. |
| Column | Returns the column that contains this item. |
| DBKey | The database key used to match this item to an external data record. |
| DataBoolean | A Boolean value for associating arbitrary data with the item. |
| DataInteger | An integer value for associating arbitrary data with the item. |
| DataObject | An object reference for associating arbitrary data with the item. |
| DataPointer | An untyped pointer for associating arbitrary data with the item. |
| DataString | A string value for associating arbitrary data with the item. |
| DisabledColor | The background colour of the item card when disabled. |
| DisabledStrokeColor | The border colour of the item card when disabled. |
| DisabledTextColor | The text colour for the item when it is disabled. |
| DisabledTitleColor | The title text colour when the item is disabled. |
| Enabled | When True, the item is interactive and can be selected; when False, it is rendered in the disabled state. |
| Expandable | When True, the item can be collapsed or expanded by the user. |
| Expanded | When True, the item is shown in its expanded state displaying all content rows. |
| HTMLTemplateItems | Name-value pairs used to substitute placeholders in the HTML template defined on the column's items appearance. |
| Height | The display height of the item in pixels; overrides the column's items appearance height when set. |
| HorizontalTextAlign | The horizontal alignment of the body text within the item. |
| MarkColor | The default colour of the edge mark; used when no per-edge color is set. |
| MarkColorBottom | The colour of the bottom-edge mark; overrides MarkColor when set to a value other than gcNull. |
| MarkColorLeft | The colour of the left-edge mark; overrides MarkColor when set to a value other than gcNull. |
| MarkColorRight | The colour of the right-edge mark; overrides MarkColor when set to a value other than gcNull. |
| MarkColorTop | The colour of the top-edge mark; overrides MarkColor when set to a value other than gcNull. |
| MarkCorners | Specifies which corners of the mark strip are rounded; requires a non-zero MarkRounding. |
| MarkRounding | The corner radius applied to the mark strip rectangle; 0 for a sharp-cornered mark. |
| MarkSizeBottom | The height in pixels of the bottom-edge mark strip. |
| MarkSizeLeft | The width in pixels of the left-edge mark strip. |
| MarkSizeRight | The width in pixels of the right-edge mark strip. |
| MarkSizeTop | The height in pixels of the top-edge mark strip. |
| MarkType | The set of edges on which a colored mark strip is drawn; combine TTMSFNCKanbanBoardMarkType values for multiple edges. |
| Movable | When True, the item can be dragged and dropped to other columns. |
| Rounding | The corner radius of the item card; 0 produces a rectangular card. |
| RoundingCorners | Specifies which corners of the item card are rounded; requires a non-zero Rounding value. |
| SelectedColor | The background colour of the item card when selected. |
| SelectedStrokeColor | The border colour of the item card when selected. |
| SelectedTextColor | The text colour for the item when it is selected. |
| SelectedTitleColor | The title text colour when the item is selected. |
| StrippedHTMLText | Returns the item text with all HTML tags removed. |
| StrokeColor | The border colour of the item card in its normal state. |
| TableView | Returns the internal table view that renders this item. |
| Tag | An integer tag for storing custom data or identifying the item. |
| Text | The body text of the item, which can contain plain text or HTML markup. |
| TextColor | The text colour for the item in its normal state. |
| Title | An optional title shown above the body text. |
| TitleColor | The title text colour in the item's normal state. |
| TitleHorizontalTextAlign | The horizontal alignment of the title text within the item. |
| TitleTrimming | The trimming style applied when the title text overflows the available width. |
| TitleVerticalTextAlign | The vertical alignment of the title text within the item. |
| TitleWordWrapping | When True, the title text wraps across multiple lines. |
| Trimming | The trimming style applied when the body text overflows the item bounds. |
| UseDefaultAppearance | When True, the item uses the shared appearance settings from the column; when False, individual color and font properties apply. |
| VerticalTextAlign | The vertical alignment of the body text within the item. |
| Visible | When True, the item is visible in its column; when False, it is hidden. |
| WordWrapping | When True, the item body text wraps across multiple lines. |
Methods
| Name | Description |
|---|---|
| AssignData | Copies only the data payload properties (text, title, tag, custom data fields) from another item. |
| CopyItem | Copies this item to another column and returns the new item. |
| GetColumn | Returns the column that contains this item. |
| GetTableView | Returns the internal table view that renders this item inside its column. |
| GetTableViewItem | Returns the underlying table view item that backs this kanban board item. |
| GetText | Returns the plain or HTML text of this item. |
| IsSelected | Returns True when this item is currently selected. |
| LoadFromString | Restores the item state from a string produced by SaveToString. |
| MoveItem | Moves this item to another column and returns the relocated item. |
| SaveToString | Serialises the item to a string for persistence. |
| SelectItem | Selects this item in its column. |