Xojo Documentation Xojo Documentation

  • Home
  • Download Xojo
  • Recent changes
  • MediaWiki Info
  • Get Started with Xojo
  • QuickStarts
  • Tutorials
  • Books
  • Welcome!
  • Fundamentals
  • User Interface
  • Framework
  • Technical Information
  • Programming Language Commands
  • Framework
  • iOS Framework
  • System Requirements
  • Release Notes
  • Deprecations
  • Videos
  • Example Projects
  • FAQ
  • International
  • Feedback
  • Usage
  • Copyrights and Trademarks
  • What links here
  • Related changes
  • Special pages
  • Printable version
  • Permanent link
  • Page information
  • Log in
  • Xojo Documentation
  • Home
  • Download Xojo
  • Recent changes
  • MediaWiki Info
  • Get Started with Xojo
  • QuickStarts
  • Tutorials
  • Books
  • Welcome!
  • Fundamentals
  • User Interface
  • Framework
  • Technical Information
  • Programming Language Commands
  • Framework
  • iOS Framework
  • System Requirements
  • Release Notes
  • Deprecations
  • Videos
  • Example Projects
  • FAQ
  • International
  • Feedback
  • Usage
  • Copyrights and Trademarks
  • What links here
  • Related changes
  • Special pages
  • Printable version
  • Permanent link
  • Page information

Size

From Xojo Documentation

Class (inherits from Object)


New in 2019r2

An object used to represent the dimensions of an object.

Properties
Area fa-lock-32.png Height Width
Methods
Clone
Constructors

Constructor()


Constructor(Width as Double,Height as Double)


Sample Code

This example reads the Area property.

Var rectSize As New Size
rectSize.Height = 150
rectSize.Width = 200

MessageBox(rectSize.Area.ToString)

See Also

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

Retrieved from "http://docs.xojo.com/index.php?title=Size&oldid=67430"
Categories:
  • Classes
  • Language Reference
  • Language Reference Index
  • New2019r2
  • Graphics/Multimedia Graphics
  • Language Classes
  • API 2.0
  • This page was last edited on 8 October 2019, at 14:05.
  • Privacy policy
  • About Xojo Documentation
  • Disclaimers
  • Send Doc Feedback
  • Powered by MediaWiki