Difference between revisions of "RectShape.Height"

From Xojo Documentation

 
Line 15: Line 15:
  
 
<rbcode>
 
<rbcode>
Dim r As New RectShape
+
Var r As New RectShape
 
r.Width = 150
 
r.Width = 150
 
r.Height = 150
 
r.Height = 150

Latest revision as of 22:48, 15 July 2019

Property (As Double )
aRectShape.Height = newDoubleValue
or
DoubleValue = aRectShape.Height

Supported for all project types and targets.

The height of the rectangle.

Example

This example sets the height and width of the shape to 150 pixels.

Var r As New RectShape
r.Width = 150
r.Height = 150
r.Border = 100
r.BorderColor = RGB(0, 0, 0) // black
r.FillColor = RGB(0, 127, 127) // teal
r.BorderWidth = 2.5
r.Rotation = -0.78
g.DrawObject(r, 100, 100)