Applies the given property to the receiver and returns the old object.
[Visual Basic 6.0] Function Apply(
ByVal NewObject As Unknown _
) As Unknown
[Visual Basic .NET] Public Function Apply ( _ ByVal NewObject As Object _ ) As Object
[C#] public object Apply ( object NewObject );
[Java] public Object apply ( Object NewObject ) throws IOException, AutomationException
[C++]
HRESULT Apply(
LPUNKNOWN NewObject,
LPUNKNOWN* oldObject
);
Parameters
NewObject [in]
NewObject is a parameter of type LPUNKNOWN
oldObject [out, retval]
oldObject is a parameter of type LPUNKNOWN
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.