ASP.NET Pack Programmer's Guide
Control.top Property
See Also
 





Gets or sets the Y-coordinate of the location of this Control.

Namespace: MindFusion.Mapping
Package: Control.js

 Syntax

JavaScript  Copy Code

Object.defineProperty(Control.prototype, "top", { value: Unit });

 Property Value

Unit. The Y-coordinate of the control's location.

 Example

The following example creates a new MapView using a <DIV> element called "mapview" that we've declared in the HTML code of the page. Then it checks if the Control's top coordinate is greater than 100 pixels. The MapView class derives from Control.

JavaScript  Copy Code

var m = MindFusion.Mapping;

// create a new instance of the mapView
var view = new m.MapView(document.getElementById("mapView"));


if(view.top.value > 100)
{
    //do something
}

 See Also

Control Members
Control Class
MindFusion.Mapping Namespace