UserGuide

Mobile Rectangle

From Xojo Documentation

Rectangle is used to display rectangles and rounded rectangles on the layout. The user does not typically interact with this control.

Properties

BorderColor

The color to draw the border.

BorderThickness

The width (or thickness) of the border.

CornerSize

The corner height for drawing rounded rectangles.

FillColor

The color for the fill area of the rectangle.

Usage

This code in the Opening event handler updates 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

See Also

MobileRectangle class; UserGuide:iOS User Interface Controls topic