ESRI.ArcGIS.ADF.Web.UI.WebControls Send comments on this topic.
ZoomToPointFactor Property
See Also 
ESRI.ArcGIS.ADF.Web.UI.WebControls Namespace > TaskResults Class : ZoomToPointFactor Property


When zooming to points, this is the number which the full extent will be divided by in order to calculate the extent to zoom to.

Syntax

Visual Basic (Declaration) 
<ResCategoryAttribute("TaskResults")>
<DefaultValueAttribute()>
<ResDescriptionAttribute("When zooming to points, this is the number which the full extent will be divided by in order to calculate the extent to zoom to.")>
<BrowsableAttribute(True)>
Public Property ZoomToPointFactor As Double
Visual Basic (Usage)Copy Code
Dim instance As TaskResults
Dim value As Double
 
instance.ZoomToPointFactor = value
 
value = instance.ZoomToPointFactor
C# 
[ResCategoryAttribute("TaskResults")]
[DefaultValueAttribute()]
[ResDescriptionAttribute("When zooming to points, this is the number which the full extent will be divided by in order to calculate the extent to zoom to.")]
[BrowsableAttribute(true)]
public double ZoomToPointFactor {get; set;}

Remarks

The user may right-click on a graphics layer in the task results and, in the context menu, choose to zoom to selected features. When the features are lines, polygons, or multiple points, the zoomed extent will simply surround the set of selected features. However, a single selected point has no extent. Instead, an extent must be defined in another way. The TaskResults defines this extent by taking a fraction of the full extent of the Map associated with the TaskResults.

The Map's full extent (obtained from its GetFullExtent method) will be divided by the ZoomToPointFactor to set the height and width of the zoomed extent. For example, if the ZoomToPointFactor is 1000, and the full extent of the Map control is 1,000,000 meters in height and width, then the map will be zoomed to an extent 1,000 meters on each side when the user chooses to zoom to one selected point.

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

© 2009 All Rights Reserved.