ArcObjects Library Reference (EditorExt)  

AttributeTransfer CoClass

Transfers attribute values from one row to another based on a fieldmap.

Product Availability

Available with ArcGIS Desktop.

Supported Platforms

Windows

Interfaces

Interfaces Description
IAttributeTransfer (esriEditor) Provides access to members that control the behavior of the attribute transfer tools.
IAttributeTransferDefaultSettings (esriEditor) Provides access to members that control the behavior of the attribute transfer tools.
IClone (esriSystem) Provides access to members that control cloning of objects.
IPersistStream (esriSystem)

Remarks

This object represents an Attribute Transfer environment within the Editor. The current environment may be retrieved from the Editor or the user may instantiate a new one. To perform an attribute transfer, first define a field map via the FieldMap coClass and then perform a transfer through the IAttributeTransfer interface.

[C#]

The following code shows an example of obtaining an instance of AttributeTransfer via the editor.

public void GetAttributeTransfer()
{
  UID editorUid = new UIDClass();
  editorUid.Value = "esriEditor.Editor";

  //You can get app from ICommand :: OnCreate() hook parameter
  IAttributeTransferType attTransType = m_app.FindExtensionByCLSID(editorUid) as IAttributeTransferType;

  IAttributeTransfer attTransfer = attTransType.AttributeTransfer; 
}
[Visual Basic .NET]

The following code shows an example of obtaining an instance of AttributeTransfer via the editor.

  Public Sub GetAttributeTransfer()
    'You can get app from ICommand :: OnCreate() hook parameter
    Dim editorUid As UID = New UIDClass()
    editorUid.Value = "esriEditor.Editor"
    Dim attTransType As IAttributeTransferType = TryCast(app.FindExtensionByCLSID(editorUid), IAttributeTransferType)

    Dim attTransfer As IAttributeTransfer = attTransType.AttributeTransfer
  End Sub