/// <summary> /// /// </summary> /// <param name="replaceShapes"></param> public void ReplaceShapesCanceled([In, MarshalAs(UnmanagedType.IDispatch)] object replaceShapes) { if (!Validate("QueryCancelReplaceShapes")) { Invoker.ReleaseParamsArray(replaceShapes); return; } NetOffice.VisioApi.IVReplaceShapesEvent newreplaceShapes = Factory.CreateEventArgumentObjectFromComProxy(EventClass, replaceShapes) as NetOffice.VisioApi.IVReplaceShapesEvent; object[] paramsArray = new object[1]; paramsArray[0] = newreplaceShapes; EventBinding.RaiseCustomEvent("ReplaceShapesCanceled", ref paramsArray); }
public void BeforeReplaceShapes([In, MarshalAs(UnmanagedType.IDispatch)] object replaceShapes) { Delegate[] recipients = _eventBinding.GetEventRecipients("BeforeReplaceShapes"); if ((true == _eventClass.IsCurrentlyDisposing) || (recipients.Length == 0)) { Invoker.ReleaseParamsArray(replaceShapes); return; } NetOffice.VisioApi.IVReplaceShapesEvent newreplaceShapes = NetOffice.Factory.CreateObjectFromComProxy(_eventClass, replaceShapes) as NetOffice.VisioApi.IVReplaceShapesEvent; object[] paramsArray = new object[1]; paramsArray[0] = newreplaceShapes; _eventBinding.RaiseCustomEvent("BeforeReplaceShapes", ref paramsArray); }