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

Assign

Assigns to this object the values of another TPersistent object

GetNamePath

Returns the name of the object as it appears in the Object Inspector.

SetPlatformDefaultWithoutNotification

Sets the value of the PlatformDefault property without triggering the OnChange notification.

SetSizeWithoutNotification

Sets the Size property to the height and width values of TSizeF and the PlatformDefault property to False.

Attributes

ClassName

Returns the TObject.ClassName

DefaultValue

Represents the default values of the TControlSize Height, Width, and PlatformDefault variables.

Height

Describes the height of a TControlSize.

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.

Size

Provides access to the size of a control

Width

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:

SizeF

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