UserGuide

iOS 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.

BorderWidth

The width (or thickness) of the border.

CornerHeight

The corner height for drawing rounded rectangles.

CornerWidth

The corder width for drawing rounded rectangles.

FillColor

The color for the fill area of the rectangle.

Usage

This code in the Open event handler updates the rectangle to have thick blue borders, rounded corners and a red fill:

Me.BorderColor = Color.Blue
Me.BorderWidth = 10
Me.CornerHeight = 25
Me.CornerWidth = 25
Me.FillColor = Color.Red

See Also

iOSRectangle class; UserGuide:iOS UI topic