This document is archived and information here might be outdated.  Recommended version.

ISketchTool.DistanceConstraint Property (ArcObjects .NET 10.8 SDK)
ArcObjects Help for .NET developers > ArcObjects Help for .NET developers > ArcObjects namespaces > Editor > ESRI.ArcGIS.Editor > Interfaces > IS > ISketchTool Interface > ISketchTool.DistanceConstraint Property
ArcGIS Developer Help

ISketchTool.DistanceConstraint Property

The sketch's distance constraint.

[Visual Basic .NET]
Public Property DistanceConstraint As Double
public double DistanceConstraint {get; set;}

Product Availability

Available with ArcGIS Desktop.


Gets/sets length constraints applied to the sketch tool.


This returns the current distance constraint that may have been established, for example, through the Sketch Tool context menu item 'Length'. This property can also be set, and in order to activate the distance constraint the Constraint property must be set to esriConstraintDistance. (see example code, where esriConstraintAngle is used )

See Also

ISketchTool Interface