IRelatedObjectEvents Interface

Provides access to events that occur when related objects change, move or rotate.

Members

Name Description
Method RelatedObjectChanged Notifies this object that a related object changed.
Method RelatedObjectMoved Notifies this object that a related object moved.
Method RelatedObjectRotated Notifies this object that a related object rotated.
Method RelatedObjectSetMoved Notifies this object that a set of objects with relationships to the input set of objects moved.
Method RelatedObjectSetRotated Notifies this object that a set of objects with relationships to the input set of objects rotated.

IRelatedObjectEvents.RelatedObjectChanged Method

Notifies this object that a related object changed.

Public Sub RelatedObjectChanged ( _
    ByVal RelationshipClass As IRelationshipClass, _
    ByVal objectThatChanged As IObject _
)
public void RelatedObjectChanged (
    IRelationshipClass RelationshipClass,
    IObject objectThatChanged
);

Remarks

The RelatedObjectChanged method is called when a related object has changed.

IRelatedObjectEvents.RelatedObjectMoved Method

Notifies this object that a related object moved.

Public Sub RelatedObjectMoved ( _
    ByVal RelationshipClass As IRelationshipClass, _
    ByVal objectThatChanged As IObject, _
    ByVal moveVector As ILine _
)
public void RelatedObjectMoved (
    IRelationshipClass RelationshipClass,
    IObject objectThatChanged,
    ILine moveVector
);

Remarks

This method is currently reserved and implementations should not define any behavior.

IRelatedObjectEvents.RelatedObjectRotated Method

Notifies this object that a related object rotated.

Public Sub RelatedObjectRotated ( _
    ByVal RelationshipClass As IRelationshipClass, _
    ByVal objectThatChanged As IObject, _
    ByVal Origin As IPoint, _
    ByVal Angle As Double _
)
public void RelatedObjectRotated (
    IRelationshipClass RelationshipClass,
    IObject objectThatChanged,
    IPoint Origin,
    double Angle
);

Remarks

This method is currently reserved and implementations should not define any behavior.

IRelatedObjectEvents.RelatedObjectSetMoved Method

Notifies this object that a set of objects with relationships to the input set of objects moved.

Public Sub RelatedObjectSetMoved ( _
    ByVal RelationshipClass As IRelationshipClass, _
    ByVal objectsThatNeedToChange As ISet, _
    ByVal objectsThatChanged As ISet, _
    ByVal moveVector As ILine _
)
public void RelatedObjectSetMoved (
    IRelationshipClass RelationshipClass,
    ISet objectsThatNeedToChange,
    ISet objectsThatChanged,
    ILine moveVector
);

Remarks

The RelatedObjectSetMoved method is called when a set of objects in the related object class has moved. The objectsThatChanged****argument represents the set of objects in the related object classes that have moved.

The objectsThatNeedToChange argument is a set of objects in this object's class that are related to the objects that moved. The object executing this method will itself be a member of the _objectsThatNeedToChange_set.

IRelatedObjectEvents.RelatedObjectSetRotated Method

Notifies this object that a set of objects with relationships to the input set of objects rotated.

Public Sub RelatedObjectSetRotated ( _
    ByVal RelationshipClass As IRelationshipClass, _
    ByVal objectsThatNeedToChange As ISet, _
    ByVal objectsThatChanged As ISet, _
    ByVal Origin As IPoint, _
    ByVal Angle As Double _
)
public void RelatedObjectSetRotated (
    IRelationshipClass RelationshipClass,
    ISet objectsThatNeedToChange,
    ISet objectsThatChanged,
    IPoint Origin,
    double Angle
);

Remarks

The RelatedObjectSetRotated method is called when a set of objects in the related object class has moved. Its arguments are similar to the arguments for RelatedObjectSetMoved.

Classes that implement IRelatedObjectEvents

Classes Description
Feature Esri Feature.

Remarks

The IRelatedObjectEvents interface is relevant only to developers of custom objects and features. It is similar to IRowEvents except that the methods are called by the geodatabase in response to events on a related object.

A custom object can implement this interface in order to respond to these events, for example, if a change in the attribute of a related object needs to trigger a change in the attributes of this object.

RelatedObjectMoved and RelatedObjectRotated are currently reserved. A custom feature implementing this interface must include these two methods, but since they will not be called, the methods should remain empty. Feature movement and rotation triggers the RelatedObjectSetMoved and RelatedObjectSetRotated methods, where functionality should be defined.

In most cases, a class extension that implements the IRelatedObjectClassEvents2 interface should be used instead of a custom feature that implements this interface, as class extensions are generally more stable and more efficient.

Your browser is no longer supported. Please upgrade your browser for the best experience. See our browser deprecation post for more details.