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 calculated from the height while maintaining the aspect ratio of the image. If Width Mode and Height Mode are set to Content, the image is drawn in its original size.
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 |
