Exemple #1
0
        public Int32 WorkbookNewChart(NetOffice.ExcelApi.Workbook wb, NetOffice.ExcelApi.Chart ch)
        {
            object[] paramsArray = Invoker.ValidateParamsArray(wb, ch);
            object   returnItem  = Invoker.MethodReturn(this, "WorkbookNewChart", paramsArray);

            return(NetRuntimeSystem.Convert.ToInt32(returnItem));
        }
Exemple #2
0
        public NetOffice.ExcelApi.Chart Add2(object before)
        {
            object[] paramsArray = Invoker.ValidateParamsArray(before);
            object   returnItem  = Invoker.MethodReturn(this, "Add2", paramsArray);

            NetOffice.ExcelApi.Chart newObject = Factory.CreateKnownObjectFromComProxy(this, returnItem, NetOffice.ExcelApi.Chart.LateBindingApiWrapperType) as NetOffice.ExcelApi.Chart;
            return(newObject);
        }
Exemple #3
0
        public NetOffice.ExcelApi.Chart Add()
        {
            object[] paramsArray = null;
            object   returnItem  = Invoker.MethodReturn(this, "Add", paramsArray);

            NetOffice.ExcelApi.Chart newObject = NetOffice.Factory.CreateKnownObjectFromComProxy(this, returnItem, NetOffice.ExcelApi.Chart.LateBindingApiWrapperType) as NetOffice.ExcelApi.Chart;
            return(newObject);
        }
        public void NewChart([In, MarshalAs(UnmanagedType.IDispatch)] object ch)
        {
            if (!Validate("NewChart"))
            {
                Invoker.ReleaseParamsArray(ch);
                return;
            }

            NetOffice.ExcelApi.Chart newCh = Factory.CreateKnownObjectFromComProxy <NetOffice.ExcelApi.Chart>(EventClass, ch, NetOffice.ExcelApi.Chart.LateBindingApiWrapperType);
            object[] paramsArray           = new object[1];
            paramsArray[0] = newCh;
            EventBinding.RaiseCustomEvent("NewChart", ref paramsArray);
        }
        public void NewChart([In, MarshalAs(UnmanagedType.IDispatch)] object ch)
        {
            Delegate[] recipients = _eventBinding.GetEventRecipients("NewChart");
            if ((true == _eventClass.IsCurrentlyDisposing) || (recipients.Length == 0))
            {
                Invoker.ReleaseParamsArray(ch);
                return;
            }

            NetOffice.ExcelApi.Chart newCh = NetOffice.Factory.CreateObjectFromComProxy(_eventClass, ch) as NetOffice.ExcelApi.Chart;
            object[] paramsArray           = new object[1];
            paramsArray[0] = newCh;
            _eventBinding.RaiseCustomEvent("NewChart", ref paramsArray);
        }
Exemple #6
0
        /// <summary>
        ///
        /// </summary>
        /// <param name="wb"></param>
        /// <param name="ch"></param>
        public void WorkbookNewChart([In, MarshalAs(UnmanagedType.IDispatch)] object wb, [In, MarshalAs(UnmanagedType.IDispatch)] object ch)
        {
            if (!Validate("WorkbookNewChart"))
            {
                Invoker.ReleaseParamsArray(wb, ch);
                return;
            }

            NetOffice.ExcelApi.Workbook newWb = Factory.CreateKnownObjectFromComProxy <NetOffice.ExcelApi.Workbook>(EventClass, wb, typeof(NetOffice.ExcelApi.Workbook));
            NetOffice.ExcelApi.Chart    newCh = Factory.CreateKnownObjectFromComProxy <NetOffice.ExcelApi.Chart>(EventClass, ch, typeof(NetOffice.ExcelApi.Chart));
            object[] paramsArray = new object[2];
            paramsArray[0] = newWb;
            paramsArray[1] = newCh;
            EventBinding.RaiseCustomEvent("WorkbookNewChart", ref paramsArray);
        }
 public Int32 NewChart(NetOffice.ExcelApi.Chart ch)
 {
     return(Factory.ExecuteInt32MethodGet(this, "NewChart", ch));
 }
Exemple #8
0
 public Int32 WorkbookNewChart(NetOffice.ExcelApi.Workbook wb, NetOffice.ExcelApi.Chart ch)
 {
     return(Factory.ExecuteInt32MethodGet(this, "WorkbookNewChart", wb, ch));
 }