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


Adjustment Class (ArcObjects .NET 10.8 SDK)
ArcObjects Help for .NET developers > ArcObjects Help for .NET developers > ArcObjects namespaces > EditorExt > ESRI.ArcGIS.EditorExt > Classes > A > Adjustment Class
ArcGIS Developer Help

AdjustmentClass Class

The Adjustment Tools Editor Extension.

Product Availability

Available with ArcGIS Desktop.

Supported Platforms

Windows

Interfaces

Interfaces Description
IActiveViewEvents (esriCarto) Provides access to events that occur when the state of the active view changes.
IAdjustLayers Provides access to members that control information about layers to be adjusted.
IAdjustment Provides access to members that control the behavior of the adjustment tools.
IAdjustProperties Provides access to members that control the properties of an adjustment session.
IConnectionPointContainer (esriDisplay)
IControlPointContainer Provides access to members that maintain control points.
IControlPointContainerEvents Provides access to events that occur when the control point container changes.
IDocumentEvents (esriArcMapUI) Provides access to events that occur in ArcMap.
IEdgeMatchEnvironment Provides access to members that control the properties of edge match tool.
IEditEvents (esriEditor) Provides access to editor events. Implement it to listen for specific events that occur during an edit session.
IEditEvents2 (esriEditor) Provides access to more editor events. Implement it to listen for specific events that occur during an edit session.
IExtension (esriSystem) Provides access to members that define an extension.
IPersist (esriSystem)
IPersistStream (esriSystem)

Remarks

The Adjustment object represents the Adjustment Tools extension to ArcMap. The Adjustment object manages the Spatial Adjustment environment, which includes the transformation methods, adjustment properties, adjustment layers,
edgematch properties, and the control point container.

To get a reference to the Adjustment extension, use IApplication::FindExtensionByCLSID or IApplication::FindExtensionByName.

[C#]

The following code example shows both methods being used to acquire a reference of type IAdjustment to the Adjustment object in C#.

public void GetEditorExtensionByCLSID()
{
  UID adjustmentExtUid = new UIDClass();
  adjustmentExtUid.Value = "esriEdtiorExt.Adjustment";

  //You can get app from ICommand :: OnCreate() hook parameter
  IAdjustment adjustment = app.FindExtensionByCLSID(adjustmentExtUid) as IAdjustment;
}

public void GetEditorExtensionByName()
{
  //You can get app from ICommand :: OnCreate() hook parameter
  IAdjustment adjustment = app.FindExtensionByName("ESRI Adjustment Tools") as IAdjustment;
}
[Visual Basic .NET]

The following code example shows both methods being used to acquire a reference of type IAdjustment to the Adjustment object in VBNet.

  Public Sub GetEditorExtensionByCLSID()
    'You can get app from ICommand :: OnCreate() hook parameter
    Dim adjustmentExtUid As UID = New UIDClass()
    adjustmentExtUid.Value = "esriEdtiorExt.Adjustment"
    Dim adjustment As IAdjustment = TryCast(app.FindExtensionByCLSID(adjustmentExtUid), IAdjustment)
  End Sub

  Public Sub GetEditorExtensionByName()
    'You can get app from ICommand :: OnCreate() hook parameter
    Dim adjustment As IAdjustment = TryCast(app.FindExtensionByName("ESRI Adjustment Tools"), IAdjustment)
  End Sub