Example #1
0
        public NetOffice.ExcelApi.OLEObject Add(object classType, object filename, object link, object displayAsIcon, object iconFileName, object iconIndex)
        {
            object[] paramsArray = Invoker.ValidateParamsArray(classType, filename, link, displayAsIcon, iconFileName, iconIndex);
            object   returnItem  = Invoker.MethodReturn(this, "Add", paramsArray);

            NetOffice.ExcelApi.OLEObject newObject = NetOffice.Factory.CreateKnownObjectFromComProxy(this, returnItem, NetOffice.ExcelApi.OLEObject.LateBindingApiWrapperType) as NetOffice.ExcelApi.OLEObject;
            return(newObject);
        }
Example #2
0
        public NetOffice.ExcelApi.OLEObject Add(object classType)
        {
            object[] paramsArray = Invoker.ValidateParamsArray(classType);
            object   returnItem  = Invoker.MethodReturn(this, "Add", paramsArray);

            NetOffice.ExcelApi.OLEObject newObject = NetOffice.Factory.CreateKnownObjectFromComProxy(this, returnItem, NetOffice.ExcelApi.OLEObject.LateBindingApiWrapperType) as NetOffice.ExcelApi.OLEObject;
            return(newObject);
        }