public static void SetOptions( Map map, SnappingOptions options )
Public Shared Sub SetOptions( _ ByVal map As Map, _ ByVal options As SnappingOptions _ )
Parameters
- map
- options
- a SnappingOptions object that was obtained using GetOptions
public static void SetOptions( Map map, SnappingOptions options )
Public Shared Sub SetOptions( _ ByVal map As Map, _ ByVal options As SnappingOptions _ )
Exception | Description |
---|---|
System.ArgumentNullException | if either of options or map is null |
ArcGIS.Core.CalledOnWrongThreadException | This method or property must be called within the lambda passed to QueuedTask.Run. |
var options = Snapping.GetOptions(map); // obtains a local copy of the options options. ZToleranceEnabled = true; // change the ZToleranceEnabled property within the local copy Snapping.SetOptions(map, options); //commits the local copy into the project
Target Platforms: Windows 10, Windows 8.1, Windows 7