示例#1
0
        public Int32[] GetMatchingRowsForRefreshConflict(NetOffice.VisioApi.IVShape shapeInConflict)
        {
            object[] paramsArray = Invoker.ValidateParamsArray(shapeInConflict);
            object   returnItem  = (object)Invoker.MethodReturn(this, "GetMatchingRowsForRefreshConflict", paramsArray);

            return((Int32[])returnItem);
        }
        public Int32 GetListMemberPosition(NetOffice.VisioApi.IVShape shapeMember)
        {
            object[] paramsArray = Invoker.ValidateParamsArray(shapeMember);
            object   returnItem  = Invoker.MethodReturn(this, "GetListMemberPosition", paramsArray);

            return(NetRuntimeSystem.Convert.ToInt32(returnItem));
        }
        public NetOffice.VisioApi.Enums.VisContainerMemberState GetMemberState(NetOffice.VisioApi.IVShape shape)
        {
            object[] paramsArray   = Invoker.ValidateParamsArray(shape);
            object   returnItem    = Invoker.MethodReturn(this, "GetMemberState", paramsArray);
            int      intReturnItem = NetRuntimeSystem.Convert.ToInt32(returnItem);

            return((NetOffice.VisioApi.Enums.VisContainerMemberState)intReturnItem);
        }
示例#4
0
        public NetOffice.VisioApi.IVShape[] GetAllRefreshConflicts()
        {
            object[] paramsArray = null;
            object   returnItem  = Invoker.MethodReturn(this, "GetAllRefreshConflicts", paramsArray);

            ICOMObject[] newObject = Factory.CreateObjectArrayFromComProxy(this, (object[])returnItem, false);
            NetOffice.VisioApi.IVShape[] returnArray = new NetOffice.VisioApi.IVShape[newObject.Length];
            for (int i = 0; i < newObject.Length; i++)
            {
                returnArray[i] = newObject[i] as NetOffice.VisioApi.IVShape;
            }
            return(returnArray);
        }
示例#5
0
        /// <summary>
        ///
        /// </summary>
        /// <param name="shape"></param>
        public void ShapeDataGraphicChanged([In, MarshalAs(UnmanagedType.IDispatch)] object shape)
        {
            if (!Validate("ShapeDataGraphicChanged"))
            {
                Invoker.ReleaseParamsArray(shape);
                return;
            }

            NetOffice.VisioApi.IVShape newShape = Factory.CreateEventArgumentObjectFromComProxy(EventClass, shape) as NetOffice.VisioApi.IVShape;
            object[] paramsArray = new object[1];
            paramsArray[0] = newShape;
            EventBinding.RaiseCustomEvent("ShapeDataGraphicChanged", ref paramsArray);
        }
示例#6
0
        public void ShapeDataGraphicChanged([In, MarshalAs(UnmanagedType.IDispatch)] object shape)
        {
            Delegate[] recipients = _eventBinding.GetEventRecipients("ShapeDataGraphicChanged");
            if ((true == _eventClass.IsCurrentlyDisposing) || (recipients.Length == 0))
            {
                Invoker.ReleaseParamsArray(shape);
                return;
            }

            NetOffice.VisioApi.IVShape newShape = NetOffice.Factory.CreateObjectFromComProxy(_eventClass, shape) as NetOffice.VisioApi.IVShape;
            object[] paramsArray = new object[1];
            paramsArray[0] = newShape;
            _eventBinding.RaiseCustomEvent("ShapeDataGraphicChanged", ref paramsArray);
        }
示例#7
0
        /// <summary>
        ///
        /// </summary>
        /// <param name="shape"></param>
        /// <param name="dataRecordsetID"></param>
        /// <param name="dataRowID"></param>
        public void ShapeLinkAdded([In, MarshalAs(UnmanagedType.IDispatch)] object shape, [In] object dataRecordsetID, [In] object dataRowID)
        {
            if (!Validate("ShapeLinkAdded"))
            {
                Invoker.ReleaseParamsArray(shape, dataRecordsetID, dataRowID);
                return;
            }

            NetOffice.VisioApi.IVShape newShape = Factory.CreateEventArgumentObjectFromComProxy(EventClass, shape) as NetOffice.VisioApi.IVShape;
            Int32 newDataRecordsetID            = ToInt32(dataRecordsetID);
            Int32 newDataRowID = ToInt32(dataRowID);

            object[] paramsArray = new object[3];
            paramsArray[0] = newShape;
            paramsArray[1] = newDataRecordsetID;
            paramsArray[2] = newDataRowID;
            EventBinding.RaiseCustomEvent("ShapeLinkAdded", ref paramsArray);
        }
示例#8
0
        public void ShapeLinkDeleted([In, MarshalAs(UnmanagedType.IDispatch)] object shape, [In] object dataRecordsetID, [In] object dataRowID)
        {
            Delegate[] recipients = _eventBinding.GetEventRecipients("ShapeLinkDeleted");
            if ((true == _eventClass.IsCurrentlyDisposing) || (recipients.Length == 0))
            {
                Invoker.ReleaseParamsArray(shape, dataRecordsetID, dataRowID);
                return;
            }

            NetOffice.VisioApi.IVShape newShape = NetOffice.Factory.CreateObjectFromComProxy(_eventClass, shape) as NetOffice.VisioApi.IVShape;
            Int32 newDataRecordsetID            = Convert.ToInt32(dataRecordsetID);
            Int32 newDataRowID = Convert.ToInt32(dataRowID);

            object[] paramsArray = new object[3];
            paramsArray[0] = newShape;
            paramsArray[1] = newDataRecordsetID;
            paramsArray[2] = newDataRowID;
            _eventBinding.RaiseCustomEvent("ShapeLinkDeleted", ref paramsArray);
        }
示例#9
0
 public void CenterViewOnShape(NetOffice.VisioApi.IVShape sheetObject, NetOffice.VisioApi.Enums.VisCenterViewFlags flags)
 {
     Factory.ExecuteMethod(this, "CenterViewOnShape", sheetObject, flags);
 }
示例#10
0
 public void Select(NetOffice.VisioApi.IVShape sheetObject, Int16 selectAction)
 {
     Factory.ExecuteMethod(this, "Select", sheetObject, selectAction);
 }
示例#11
0
		public NetOffice.VisioApi.IVShape[] GetAllRefreshConflicts()
		{
			object[] paramsArray = null;
			object returnItem = Invoker.MethodReturn(this, "GetAllRefreshConflicts", paramsArray);
			COMObject[] newObject = Factory.CreateObjectArrayFromComProxy(this, (object[])returnItem);
			NetOffice.VisioApi.IVShape[] returnArray = new NetOffice.VisioApi.IVShape[newObject.Length];
			for (int i = 0; i < newObject.Length; i++)
				returnArray[i] = newObject[i] as NetOffice.VisioApi.IVShape;
			return returnArray;
		}
示例#12
0
 public void GlueToPos(NetOffice.VisioApi.IVShape sheetObject, Double xPercent, Double yPercent)
 {
     Factory.ExecuteMethod(this, "GlueToPos", sheetObject, xPercent, yPercent);
 }
 public void RemoveRefreshConflict(NetOffice.VisioApi.IVShape shapeInConflict)
 {
     object[] paramsArray = Invoker.ValidateParamsArray(shapeInConflict);
     Invoker.Method(this, "RemoveRefreshConflict", paramsArray);
 }
示例#14
0
 public void CenterViewOnShape(NetOffice.VisioApi.IVShape sheetObject, NetOffice.VisioApi.Enums.VisCenterViewFlags flags)
 {
     InvokerService.InvokeInternal.ExecuteMethod(this, "CenterViewOnShape", sheetObject, flags);
 }
 public NetOffice.VisioApi.Enums.VisContainerMemberState GetMemberState(NetOffice.VisioApi.IVShape shape)
 {
     return(Factory.ExecuteEnumMethodGet <NetOffice.VisioApi.Enums.VisContainerMemberState>(this, "GetMemberState", shape));
 }
示例#16
0
        public NetOffice.VisioApi.IVValidationIssue AddIssue(NetOffice.VisioApi.IVPage targetPage, NetOffice.VisioApi.IVShape targetShape)
        {
            object[] paramsArray = Invoker.ValidateParamsArray(targetPage, targetShape);
            object   returnItem  = Invoker.MethodReturn(this, "AddIssue", paramsArray);

            NetOffice.VisioApi.IVValidationIssue newObject = NetOffice.Factory.CreateObjectFromComProxy(this, returnItem) as NetOffice.VisioApi.IVValidationIssue;
            return(newObject);
        }
示例#17
0
 public void Remove(NetOffice.VisioApi.IVShape sheetObject, Int16 fPresMems)
 {
     Factory.ExecuteMethod(this, "Remove", sheetObject, fPresMems);
 }
示例#18
0
 public void RemoveRefreshConflict(NetOffice.VisioApi.IVShape shapeInConflict)
 {
     Factory.ExecuteMethod(this, "RemoveRefreshConflict", shapeInConflict);
 }
 public Int32 GetListMemberPosition(NetOffice.VisioApi.IVShape shapeMember)
 {
     return(Factory.ExecuteInt32MethodGet(this, "GetListMemberPosition", shapeMember));
 }
示例#20
0
 public void GlueToPos(NetOffice.VisioApi.IVShape sheetObject, Double xPercent, Double yPercent)
 {
     object[] paramsArray = Invoker.ValidateParamsArray(sheetObject, xPercent, yPercent);
     Invoker.Method(this, "GlueToPos", paramsArray);
 }
示例#21
0
 public void Remove(NetOffice.VisioApi.IVShape sheetObject, Int16 fPresMems)
 {
     object[] paramsArray = Invoker.ValidateParamsArray(sheetObject, fPresMems);
     Invoker.Method(this, "Remove", paramsArray);
 }
示例#22
0
 public void Select(NetOffice.VisioApi.IVShape sheetObject, Int16 selectAction)
 {
     InvokerService.InvokeInternal.ExecuteMethod(this, "Select", sheetObject, selectAction);
 }