MindFusion.Charting for JavaScript Programmer's Guide
Control.rect Property
See Also
Collapse All Expand All Language Filter: All Language Filter: Multiple Language Filter: None Language Filter: C# Language Filter: Visual Basic Language Filter: Java Language Filter: JavaScript Language Filter: C++ Language Filter: XAML

C#
Visual Basic
Java
JavaScript
C++
XAML

Gets the bounding rect of this control.

Namespace: MindFusion.Common
File: Control.js

## Syntax

JavaScript Copy Code
get rect() {}

### Property Value

Rect. The bounding rect.

## Example

The following code checks if the rect of a Menu instance is wider than 100:

JavaScript Copy Code
menu.theme = sender.theme; menu.left = ui.Unit.pixel(sender.bounds.x + args.item.bounds.x); menu.top = ui.Unit.pixel(sender.bounds.y + args.item.bounds.height); if(menu.rect.width > 100) { //do something }

## See Also

Control Members
Control Class
MindFusion.Common Namespace