MindFusion.Charting for JavaScript Programmer's Guide
DomUtils.getBounds Method
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 bounds of the specified element.

Namespace: MindFusion.Controls
File: DomUtils.js

## Syntax

JavaScript Copy Code
function getBounds (element, [parent, [includeScroll]])

### Parameters

element

  Type: HTMLElement
  HTMLElement. The element to check.

parent
  Optional.

  Type: HTMLElement
  HTMLElement. The parent of the element. If supplied, the returned bounds will be relative to the parent element bounds.

includeScroll
  Optional.

  Type: Boolean
  Boolean. For internal use.

### Return Value

Type: Rect
Rect. The bounding rectangle.

## See Also

DomUtils Members
DomUtils Class
MindFusion.Controls Namespace