ESRI.ArcGIS.ADF.Web.UI.WebControls
ViewWidth Property
See Also 
ESRI.ArcGIS.ADF.Web.UI.WebControls Namespace > Map Class : ViewWidth Property




Gets the client width of the map in pixels, or -1 if unknown.

Syntax

Visual Basic (Declaration) 
<BrowsableAttribute(False)>
Public ReadOnly Property ViewWidth As Integer
Visual Basic (Usage)Copy Code
Dim instance As Map
Dim value As Integer
 
value = instance.ViewWidth
C# 
[BrowsableAttribute(false)]
public int ViewWidth {get;}

Remarks

Returns the width of the map in pixels reported by the client browser.

If the map's ViewWidth and ViewHeight are not set using pixels units, the ViewWidth and ViewHeight properties are not known until the map has been created on the client, and until then will return -1.

See Also

© 2010 All Rights Reserved.