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


ISketchTool.DistanceConstraint Property (ArcObjects .NET 10.4 SDK)
ArcObjects Library Reference (Editor)  

ISketchTool.DistanceConstraint Property

The sketch's distance constraint.

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

Product Availability

Available with ArcGIS Desktop.

Description

Gets/sets length constraints applied to the sketch tool.

Remarks

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