CreateGridOptionsWithBoolValue
function CreateGridOptionsWithBoolValue(GridControl: TcHmi.Controls.System.TcHmiGrid, Columns: GridOptionsDefinition, Rows: GridOptionsDefinition): void
The CreateGridOptionsWithBoolValue function is used to update the RowOptions and ColumnOptions properties of a TcHmiGrid control. You can either only adjust the columns or the rows, or adjust both simultaneously. Each row or column is described with the GridOption
structure that contains these three properties:
InUse
: Sets whether this row or column is used (true
) or not (false
)Unit
: Sets the unit infactor,
,px
, or%
Value
: The numerical value for determining the size
The InUse
property of type Bool can be linked to a symbol in order to dynamically adjust updating of the rows or columns.
Parameter
Name | Type | Description |
---|---|---|
GridControl | TcHmi.Controls.System.TcHmiGrid | The TcHmiGrid control whose rows and columns are going to be customized. |
Columns | GridOptionsDefinition | Definition of the columns of the TcHmiGrid control. Only required as an option. |
Rows | GridOptionsDefinition | Definition of the rows of the TcHmiGrid control. Only required as an option. |
Return value
Type | Description |
---|---|
void | No return value. |
NuGet package: Beckhoff.TwinCAT.HMI.Plastic.Functions
Available: from version 12.16.0
Use: TC3 Plastic Application HMI Projects