ArcGIS API for Silverlight - Library Reference
SetSnapDistance Method
See Also  Send comments on this topic
ESRI.ArcGIS.Client Namespace > Editor Class : SetSnapDistance Method

map
The map.
distance
The radius in pixels to use when snapping.
Sets the snap radius in pixels.

Syntax

Visual Basic (Declaration) 
Public Shared Sub SetSnapDistance( _
   ByVal map As DependencyObject, _
   ByVal distance As Double _
) 
C# 
public static void SetSnapDistance( 
   DependencyObject map,
   double distance
)

Remarks

Note that some keys are not supported in fullscreen mode.

You can change the default snap key for drawing by setting this attached property on the map. Example:

            <esri:Map esri:Editor.SnapKey="A" />
            

Parameters

map
The map.
distance
The radius in pixels to use when snapping.

Requirements

Target Platforms: Windows XP Professional, Windows Server 2003 family, Windows Vista, Windows Server 2008 family, Windows 7

See Also

© ESRI, Inc. All Rights Reserved.