ESRI.ArcGIS.ADF.Web.UI.WebControls
ViewWidth Property
See Also  Send Feedback
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.

Requirements

Target Platforms: Windows 98, Windows NT 4.0, Windows Millennium Edition, Windows 2000, Windows XP Home Edition, Windows XP Professional, Windows Server 2003 family, Windows Vista, Windows Server 2008 family

See Also

© 2011 All Rights Reserved.