ControlSize¶
Qualified name: delphifmx.ControlSize
- class ControlSize¶
Bases:
Persistent
Used for storing the size of FireMonkey components. A TControlSize object is used for managing the size of the component. This can be specified through the Size, Width, Height, and PlatformDefault attributes.
Methods
Assigns to this object the values of another TPersistent object
Returns the name of the object as it appears in the Object Inspector.
Sets the value of the PlatformDefault property without triggering the OnChange notification.
Sets the Size property to the height and width values of TSizeF and the PlatformDefault property to False.
Attributes
ClassName
Returns the TObject.ClassName
Represents the default values of the TControlSize Height, Width, and PlatformDefault variables.
Describes the height of a TControlSize.
When this property is set to True, the size and width of the control are set automatically based on pre-defined sizes for the active platform.
Provides access to the size of a control
Describes the width of a TControlSize.
- Assign(persistent)¶
Assigns to this object the values of another TPersistent object
- DefaultValue¶
Represents the default values of the TControlSize Height, Width, and PlatformDefault variables.
- Type:
- GetNamePath()¶
Returns the name of the object as it appears in the Object Inspector.
- Height¶
Describes the height of a TControlSize. Use this property to set or get the height for a TControlSize.
- Type:
float
- PlatformDefault¶
When this property is set to True, the size and width of the control are set automatically based on pre-defined sizes for the active platform. Explicitly setting the Width or Height properties automatically sets the PlatformDefault setting to False.
Note: Changing the value of PlatformDefault triggers an OnChange notification.
- Type:
bool
- SetPlatformDefaultWithoutNotification(Value: bool) None ¶
Sets the value of the PlatformDefault property without triggering the OnChange notification. This method should be used only in cases where the OnChange notification is triggered by some other mechanism.
- SetSizeWithoutNotification(Value: SizeF) None ¶
Sets the Size property to the height and width values of TSizeF and the PlatformDefault property to False. These changes do not cause any notification. You can change instead the Size and PlatformDefault properties directly, what calls the OnChange event. This method should be used only in cases where the OnChange notification is triggered by some other mechanism.
- Size¶
Provides access to the size of a control
- Width¶
Describes the width of a TControlSize. Use this property to set or get the width for a TControlSize.
- Type:
float