コード例 #1
0
 public void EndConnect(out NetOffice.WordApi.Shape connectedShape, Int32 connectionSite)
 {
     ParameterModifier[] modifiers = Invoker.CreateParamModifiers(true, false);
     connectedShape = null;
     object[] paramsArray = Invoker.ValidateParamsArray(connectedShape, connectionSite);
     Invoker.Method(this, "EndConnect", paramsArray, modifiers);
     connectedShape = (NetOffice.WordApi.Shape)paramsArray[0];
 }
コード例 #2
0
        public NetOffice.WordApi.Shape ConvertToShape()
        {
            object[] paramsArray = null;
            object   returnItem  = Invoker.MethodReturn(this, "ConvertToShape", paramsArray);

            NetOffice.WordApi.Shape newObject = NetOffice.Factory.CreateKnownObjectFromComProxy(this, returnItem, NetOffice.WordApi.Shape.LateBindingApiWrapperType) as NetOffice.WordApi.Shape;
            return(newObject);
        }
コード例 #3
0
 public void EndConnect(out NetOffice.WordApi.Shape connectedShape, Int32 connectionSite)
 {
     ParameterModifier[] modifiers = Invoker.CreateParamModifiers(true, false);
     connectedShape = null;
     object[] paramsArray = Invoker.ValidateParamsArray(connectedShape, connectionSite);
     Invoker.Method(this, "EndConnect", paramsArray, modifiers);
     if (paramsArray[0] is MarshalByRefObject)
     {
         connectedShape = new NetOffice.WordApi.Shape(this, paramsArray[0]);
     }
     else
     {
         connectedShape = null;
     }
 }