MobileRectangle

From Xojo Documentation

Class (inherits from MobileUIControl)

New in 2020r2

The standard rectangle control for iOS.

Events
Closing Opening
Properties
AccessibilityHint Enabled TintColor
AccessibilityLabel FillColor Top fa-lock-32.png
BorderColor Height fa-lock-32.png Visible
BorderThickness Left fa-lock-32.png Width fa-lock-32.png
ControlCount Name fa-lock-32.png
CornerSize Parent fa-lock-32.png
Methods
AddConstraint ControlAt RemoveControl
AddControl Refresh SetEffect
ClearFocus RemoveConstraint SetFocus
Enumerations
BlurStyles VibrancyStyles

Sample Code

Sample Code In the Opening event handler, update the rectangle to have thick blue borders, rounded corners and a red fill:

Me.BorderColor = Color.Blue
Me.BorderThickness = 10
Me.CornerSize = 25
Me.FillColor = Color.Red