toSizeModeWithContent
[ Function ]
public static toSizeModeWithContent (
value: string,
defaultValue: SizeModeWithContent | null = null
): SizeModeWithContent | null;
Checks if a value is an extended size mode and returns it.
Parameter
Name | Type | Description |
---|---|---|
value | The value to convert. | |
defaultValue | This value is returned if the first parameter is not valid. Null applies if this parameter is not passed. |
Return value
Type | Description |
---|---|
Returns the appropriate value or null in the event of an error. |
Available from 1.8 |