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


IPropertySupport.Apply Method (ArcObjects .NET 10.5 SDK)
ArcObjects Library Reference (System)  

IPropertySupport.Apply Method

Applies the given property to the receiver and returns the old object.

[Visual Basic .NET]
Public Function Apply ( _
    ByVal newObject As Object _
) As Object
[C#]
public object Apply (
    object newObject
);
[C++]
HRESULT Apply(
  LPUNKNOWN newObject,
  LPUNKNOWN* oldObject
);
[C++]

Parameters newObject [in] newObject is a parameter of type LPUNKNOWN oldObject [out, retval] oldObject is a parameter of type LPUNKNOWN

Product Availability

Available with ArcGIS Engine, ArcGIS Desktop, and ArcGIS Server.

Remarks

Apply will apply the specified object to the current object.  For instance, I might apply a Color object to my RectangleElement.  When I execute Apply, the object I replace (the old object) is returned.

Use the Applies and CanApply methods to determine if an Apply can be used on an object.

See Also

IPropertySupport Interface