|
Name
|
Description
|
|
Bottom
|
Specifies the Bottom side of the rectangle.
Typically, rectangle values represent pixel locations, where the origin of the pixel coordinate system is in the top left corner of the screen (screen coordinates) or the top left corner of a control's client area (client coordinates). When a TRSCustomRect value represents a rectangle on the screen, by convention the top and left edges are considered inside the rectangle and the bottom and right edges are considered outside the rectangle. This convention allows the width of the rectangle to be Right - Left and the height to be Bottom - Top.
Note
|
Setting this property fires an OnChange event. To avoid firing events, set the fields of the BoundsRect property directly.
|
|
|
BoundsRect
|
Specifies the underlying TRect rectangle for the class.
You should use the provided properties; Left, Right, Top, Bottom, Width, and Height; to set the rectangle's fields. If you use the BoundsRect field's directly, the OnChange event will not be called. However, setting the entire property (e.g., BoundsRect := Rect(0,0,10,10)) will fire the OnChange event,
|
|
Height
|
Specifies the Height (Bottom-Top) of the rectangle.
Typically, rectangle values represent pixel locations, where the origin of the pixel coordinate system is in the top left corner of the screen (screen coordinates) or the top left corner of a control's client area (client coordinates). When a TRSCustomRect value represents a rectangle on the screen, by convention the top and left edges are considered inside the rectangle and the bottom and right edges are considered outside the rectangle. This convention allows the width of the rectangle to be Right - Left and the height to be Bottom - Top.
Note
|
Setting this property fires an OnChange event. To avoid firing events, set the fields of the BoundsRect property directly.
|
|
|
Left
|
Specifies the Left side of the rectangle.
Typically, rectangle values represent pixel locations, where the origin of the pixel coordinate system is in the top left corner of the screen (screen coordinates) or the top left corner of a control's client area (client coordinates). When a TRSCustomRect value represents a rectangle on the screen, by convention the top and left edges are considered inside the rectangle and the bottom and right edges are considered outside the rectangle. This convention allows the width of the rectangle to be Right - Left and the height to be Bottom - Top.
Note
|
Setting this property fires an OnChange event. To avoid firing events, set the fields of the BoundsRect property directly.
|
|
|
OnChange
|
Occurs when the rectangle's dimensions are changed through the class' properties or the transformation methods ( MoveTo, Scale , Translate ). If you change the BoundsRect's fields directly, an OnChange event will not occur. Write an OnChange event handler if you want to respond to changes in the rectangle.
Note
|
Note that the OnChange event is not published, either in this class or in FMX.RS.Graphics.TRSObjectRect. This allows you to use the TRSCustomRect class to publish a rectangle and receive OnChange events at design-time (similar to publishing a TPen property).
|
|
|
Right
|
Specifies the Right side of the rectangle.
Typically, rectangle values represent pixel locations, where the origin of the pixel coordinate system is in the top left corner of the screen (screen coordinates) or the top left corner of a control's client area (client coordinates). When a TRSCustomRect value represents a rectangle on the screen, by convention the top and left edges are considered inside the rectangle and the bottom and right edges are considered outside the rectangle. This convention allows the width of the rectangle to be Right - Left and the height to be Bottom - Top.
Note
|
Setting this property fires an OnChange event. To avoid firing events, set the fields of the BoundsRect property directly.
|
|
|
Top
|
Specifies the Top side of the rectangle.
Typically, rectangle values represent pixel locations, where the origin of the pixel coordinate system is in the top left corner of the screen (screen coordinates) or the top left corner of a control's client area (client coordinates). When a TRSCustomRect value represents a rectangle on the screen, by convention the top and left edges are considered inside the rectangle and the bottom and right edges are considered outside the rectangle. This convention allows the width of the rectangle to be Right - Left and the height to be Bottom - Top.
Note
|
Setting this property fires an OnChange event. To avoid firing events, set the fields of the BoundsRect property directly.
|
|
|
Width
|
Specifies the Width (Right-Left) of the rectangle.
Typically, rectangle values represent pixel locations, where the origin of the pixel coordinate system is in the top left corner of the screen (screen coordinates) or the top left corner of a control's client area (client coordinates). When a TRSCustomRect value represents a rectangle on the screen, by convention the top and left edges are considered inside the rectangle and the bottom and right edges are considered outside the rectangle. This convention allows the width of the rectangle to be Right - Left and the height to be Bottom - Top.
Note
|
Setting this property fires an OnChange event. To avoid firing events, set the fields of the BoundsRect property directly.
|
|
Top
|