Provides access to more members that control the properties of an edit session.
Product Availability
Available with ArcGIS Desktop.
Members
Description | ||
---|---|---|
AngularCorrectionOffset | Angular Correction Offset. | |
AngularUnitPrecision | Precision used to display angular units. | |
DirectionType | Direction Type. | |
DirectionUnits | Direction Units. | |
DistanceCorrectionFactor | Distance Correction Factor. | |
SnapTips | Indicates whether to show the snap tips. | |
StickyMoveTolerance | Controls the sticky move tolerance. | |
UseGroundToGrid | Indicates whether to use Ground to Grid. |
CoClasses that implement IEditProperties2
CoClasses and Classes | Description |
---|---|
Editor | The Object Editor Extension. |
Remarks
The IEditProperties2 interface provides additional parameters to control the editor's behavior.
[C#]
Casting the IEditProperties2 interface to the IEditor interface will allow access to set the direction units and direction type. Get a reference to IApplication by hook in the OnCreate method.
private void SetEditingAngularUnits()
{
IEditor m_editor;
UID uID = new UID();
uID.Value = "esriEditor.Editor";
m_editor = m_application.FindExtensionByCLSID(uID) as IEditor;
IEditProperties2 editProperties2 = m_editor as IEditProperties2;
editProperties2.DirectionUnits = esriDirectionUnits.esriDUDegreesMinutesSeconds;
editProperties2.DirectionType = esriDirectionType.esriDTQuadrantBearing;
}
[Visual Basic .NET]
A reference to
IApplication (app) comes from the OnCreate hook
parameter.
Public Sub SetEditingAngularUnits()
Dim editor as IEditor
Dim editProperties2 As IEditProperties2
Dim uID As New UID
uID.Value = "esriEditor.Editor"
m_Editor = app.FindExtensionByCLSID(uID)
'QI
editProperties2 = editor
editProperties2.DirectionUnits = esriDirectionUnits.esriDUDecimalDegrees
editProperties2.DirectionType = esriDirectionType.esriDTQuadrantBearing
editProperties2.UseGroundToGrid = False
End Sub