WidthMode
Choice of the method of calculating the width. The available options are:
- Value: The width is defined by the width entered.
- Parent: The width is defined by the distance to the left and right side. The Width attribute is ignored in all calculations.
- Content: The width is defined by the children of the user control.
![]() | Learn how controls can be positioned and their size defined. |
Schema: tchmi:framework#/definitions/SizeModeWithContent
Attribute getter
public getWidthMode(): TcHmi.SizeModeWithContent | undefined;Parameter
Name | Type | Description |
|---|---|---|
- | - | - |
Return value
Type | Description |
|---|---|
The current value of the attribute. |
Attribute setter
public setWidthMode(valueNew: TcHmi.SizeModeWithContent | null): void;Parameter
Name | Type | Description |
|---|---|---|
valueNew | The new value of the attribute. If null is passed, the internal default value is used. |
Return value
Type | Description |
|---|---|
void | No return value. |
![]() | Available from 1.8 |
