Click or drag to resize

BoundingBox Class (Typed)

X#
Create a bounding box, which is a set of four numbers that represent the bottom-left and top-right corners of a rectangle.
Inheritance Hierarchy
Object
  VObject
    BoundingBox

Namespace:  XSharp.VO.SDK
Assembly:  XSharp.VOGUIClasses (in XSharp.VOGUIClasses.dll) Version: 2.19
Syntax
 CLASS BoundingBox INHERIT VObject
Request Example View Source

The BoundingBox type exposes the following members.

Constructors
  NameDescription
Public methodBoundingBox
Construct a bounding box.
Public methodBoundingBox(Usual, Usual)
Construct a bounding box.
Public methodBoundingBox(Point, Dimension)
Construct a bounding box.
Public methodBoundingBox(Point, Point)
Construct a bounding box.
Top
Properties
  NameDescription
Public propertyBottom
A numeric value representing the Y coordinate of the bottom side of a bounding box, in canvas coordinates.
Public propertyHeight
A numeric value representing the height of the bounding box, measured in canvas coordinates.
Public propertyLeft
A numeric value representing the X coordinate of the left side of a bounding box, in canvas coordinates.
Public propertyOrigin
A point representing the location of a bounding box, in canvas coordinates.
Public propertyRight
A numeric value representing the X coordinate of the right side of a bounding box, in canvas coordinates.
Public propertyTop
A numeric value representing the Y coordinate of the top side of a bounding box, in canvas coordinates.
Public propertyWidth
A numeric value representing the width of the bounding box, in canvas coordinates.
Top
Functions
  NameDescription
Public methodClone
Public methodConvertToScreen(IntPtr)
Convert a bounding box to screen coordinates for a given window.
Public methodConvertToScreen(Object)
Convert a bounding box to screen coordinates for a given window.
Public methodDestroy
Free memory resources allocated for a VObject object and its derived objects.
(Inherited from VObject.)
Public methodNormalize
Public methodPointInside
Test whether a given point is within the bounds of a bounding box.
Public methodUnion_
Return a new bounding box that represents the minimum area required to contain both this bounding box and the bounding box specified by oBoundingBox.
Top
Operators
Globals and Defines
  NameDescription
Public fieldoCargo
Cargo slot.
(Inherited from VObject.)
Top
Remarks
Typically, the rectangle is the smallest one that encloses both the overall size and position of another object (for example, a drawing or an area of a window that needs repainting).
Tip Tip
A bounding box has no graphical representation—it is just four numbers encapsulated in a class.
Examples
The following returns the smallest rectangle that encloses an EllipseObject object, in canvas coordinates:
X#
1LOCAL oBB := oEllipse:BoundingBox()
See Also