This document is archived and information here might be outdated. Recommended version. |
ArcObjects Help for .NET developers > ArcObjects namespaces > Editor > ESRI.ArcGIS.Editor > Interfaces > IE > IEditProperties2 Interface (ArcObjects .NET 10.5 SDK) |
Provides access to more members that control the properties of an edit session.
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 and Classes | Description |
---|---|
Editor | The Object Editor Extension. |
The IEditProperties2 interface provides additional parameters to control the editor's behavior.
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;
}
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