Xojo Documentation Xojo Documentation
  • Home
  • Get Started with Xojo
  • QuickStarts
  • Tutorials
  • Pi Programming
  • More Guides
  • Resources
  • User Guide
  • Language Reference
  • Release Notes
  • System Requirements
  • Deprecations
  • Videos
  • Feedback
  • Usage
  • Copyrights and Trademarks
  • What links here
  • Related changes
  • Special pages
  • Printable version
  • Permanent link
  • Page information
  • Log in
  • Xojo Documentation
  • Home
  • Get Started with Xojo
  • QuickStarts
  • Tutorials
  • Pi Programming
  • More Guides
  • Resources
  • User Guide
  • Language Reference
  • Release Notes
  • System Requirements
  • Deprecations
  • Videos
  • Feedback
  • Usage
  • Copyrights and Trademarks
  • What links here
  • Related changes
  • Special pages
  • Printable version
  • Permanent link
  • Page information

Rect

From Xojo Documentation

Class (inherits from Object)


New in 2019r2

A way to represent an axis-aligned rectangular area. Rect can be used for window size/position, control size/position and drawing of controls.

Properties
Bottom Left Top
Center Origin VerticalCenter
Height Right Width
HorizontalCenter Size
Methods
Clone LocalPoint SplitVertical
Contains LocalRect Union
Intersection Offset
Intersects SplitHorizontal
Constructors

Constructor(X As Double, Y As Double, Width As Double, Height As Double)


Constructor(origin as Point, size as Size)


Sample Code

Var myRect As New Rect(10, 10, 100, 50)

See Also

Canvas control; Window, ContainerControl, Point, Size classes.

Retrieved from "http://docs.xojo.com/index.php?title=Rect&oldid=78131"
Categories:
  • Classes
  • Language Reference
  • Language Reference Index
  • New2019r2
  • Graphics/Multimedia Graphics
  • Language Classes
  • API 2.0
  • This page was last edited on 26 March 2021, at 18:17.
  • Privacy policy
  • About Xojo Documentation
  • Disclaimers
  • Send Doc Feedback
  • Docs for the Xojo programming language and IDE
  • Powered by MediaWiki