1+ using System . Collections ;
2+ using System . Collections . Generic ;
3+ using System ;
4+ using NetRuntimeSystem = System ;
5+ using System . ComponentModel ;
6+ using NetOffice . Attributes ;
7+ using NetOffice . CollectionsGeneric ;
8+
9+ namespace NetOffice . ExcelApi
10+ {
11+ /// <summary>
12+ /// DispatchInterface Queries
13+ /// SupportByVersion Excel, 16
14+ /// </summary>
15+ /// <remarks> Docs: <see href="https://docs.microsoft.com/en-us/office/vba/api/Excel.Queries"/> </remarks>
16+ [ SupportByVersion ( "Excel" , 16 ) ]
17+ [ EntityType ( EntityType . IsDispatchInterface ) , Enumerator ( Enumerator . Reference , EnumeratorInvoke . Property ) , HasIndexProperty ( IndexInvoke . Property , "_Default" ) ]
18+ public class Queries : COMObject , IEnumerableProvider < NetOffice . ExcelApi . WorkbookQuery >
19+ {
20+ #pragma warning disable
21+
22+ #region Type Information
23+
24+ /// <summary>
25+ /// Instance Type
26+ /// </summary>
27+ [ EditorBrowsable ( EditorBrowsableState . Advanced ) , Browsable ( false ) , Category ( "NetOffice" ) , CoreOverridden ]
28+ public override Type InstanceType
29+ {
30+ get
31+ {
32+ return LateBindingApiWrapperType ;
33+ }
34+ }
35+
36+ private static Type _type ;
37+
38+ [ EditorBrowsable ( EditorBrowsableState . Never ) , Browsable ( false ) ]
39+ public static Type LateBindingApiWrapperType
40+ {
41+ get
42+ {
43+ if ( null == _type )
44+ _type = typeof ( Queries ) ;
45+ return _type ;
46+ }
47+ }
48+
49+ #endregion
50+
51+ #region Ctor
52+
53+ /// <param name="factory">current used factory core</param>
54+ /// <param name="parentObject">object there has created the proxy</param>
55+ /// <param name="proxyShare">proxy share instead if com proxy</param>
56+ public Queries ( Core factory , ICOMObject parentObject , COMProxyShare proxyShare ) : base ( factory , parentObject , proxyShare )
57+ {
58+ }
59+
60+ ///<param name="factory">current used factory core</param>
61+ ///<param name="parentObject">object there has created the proxy</param>
62+ ///<param name="comProxy">inner wrapped COM proxy</param>
63+ public Queries ( Core factory , ICOMObject parentObject , object comProxy ) : base ( factory , parentObject , comProxy )
64+ {
65+
66+ }
67+
68+ ///<param name="parentObject">object there has created the proxy</param>
69+ ///<param name="comProxy">inner wrapped COM proxy</param>
70+ [ EditorBrowsable ( EditorBrowsableState . Never ) , Browsable ( false ) ]
71+ public Queries ( ICOMObject parentObject , object comProxy ) : base ( parentObject , comProxy )
72+ {
73+ }
74+
75+ ///<param name="factory">current used factory core</param>
76+ ///<param name="parentObject">object there has created the proxy</param>
77+ ///<param name="comProxy">inner wrapped COM proxy</param>
78+ ///<param name="comProxyType">Type of inner wrapped COM proxy"</param>
79+ [ EditorBrowsable ( EditorBrowsableState . Never ) , Browsable ( false ) ]
80+ public Queries ( Core factory , ICOMObject parentObject , object comProxy , NetRuntimeSystem . Type comProxyType ) : base ( factory , parentObject , comProxy , comProxyType )
81+ {
82+
83+ }
84+
85+ ///<param name="parentObject">object there has created the proxy</param>
86+ ///<param name="comProxy">inner wrapped COM proxy</param>
87+ ///<param name="comProxyType">Type of inner wrapped COM proxy"</param>
88+ [ EditorBrowsable ( EditorBrowsableState . Never ) , Browsable ( false ) ]
89+ public Queries ( ICOMObject parentObject , object comProxy , NetRuntimeSystem . Type comProxyType ) : base ( parentObject , comProxy , comProxyType )
90+ {
91+ }
92+
93+ ///<param name="replacedObject">object to replaced. replacedObject are not usable after this action</param>
94+ [ EditorBrowsable ( EditorBrowsableState . Never ) , Browsable ( false ) ]
95+ public Queries ( ICOMObject replacedObject ) : base ( replacedObject )
96+ {
97+ }
98+
99+ [ EditorBrowsable ( EditorBrowsableState . Never ) , Browsable ( false ) ]
100+ public Queries ( ) : base ( )
101+ {
102+ }
103+
104+ /// <param name="progId">registered progID</param>
105+ [ EditorBrowsable ( EditorBrowsableState . Never ) , Browsable ( false ) ]
106+ public Queries ( string progId ) : base ( progId )
107+ {
108+ }
109+
110+ #endregion
111+
112+ #region Properties
113+
114+ /// <summary>
115+ /// SupportByVersion Excel 16
116+ /// Get
117+ /// </summary>
118+ /// <remarks> Docs: <see href="https://docs.microsoft.com/en-us/office/vba/api/Excel.Queries.Application"/> </remarks>
119+ [ SupportByVersion ( "Excel" , 16 ) ]
120+ public NetOffice . ExcelApi . Application Application
121+ {
122+ get
123+ {
124+ return Factory . ExecuteKnownReferencePropertyGet < NetOffice . ExcelApi . Application > ( this , "Application" , NetOffice . ExcelApi . Application . LateBindingApiWrapperType ) ;
125+ }
126+ }
127+
128+ /// <summary>
129+ /// SupportByVersion Excel 16
130+ /// Get
131+ /// </summary>
132+ /// <remarks> Docs: <see href="https://docs.microsoft.com/en-us/office/vba/api/Excel.Queries.Creator"/> </remarks>
133+ [ SupportByVersion ( "Excel" , 16 ) ]
134+ public NetOffice . ExcelApi . Enums . XlCreator Creator
135+ {
136+ get
137+ {
138+ return Factory . ExecuteEnumPropertyGet < NetOffice . ExcelApi . Enums . XlCreator > ( this , "Creator" ) ;
139+ }
140+ }
141+
142+ /// <summary>
143+ /// SupportByVersion Excel 16
144+ /// Get
145+ /// Unknown COM Proxy
146+ /// </summary>
147+ /// <remarks> Docs: <see href="https://docs.microsoft.com/en-us/office/vba/api/Excel.Queries.Parent"/> </remarks>
148+ [ SupportByVersion ( "Excel" , 16 ) , ProxyResult ]
149+ public object Parent
150+ {
151+ get
152+ {
153+ return Factory . ExecuteReferencePropertyGet ( this , "Parent" ) ;
154+ }
155+ }
156+
157+ /// <summary>
158+ /// SupportByVersion Excel 16
159+ /// Get
160+ /// </summary>
161+ /// <param name="index">object index</param>
162+ [ SupportByVersion ( "Excel" , 16 ) ]
163+ [ NetRuntimeSystem . Runtime . CompilerServices . IndexerName ( "Item" ) , IndexProperty ]
164+ public NetOffice . ExcelApi . WorkbookQuery this [ object index ]
165+ {
166+ get
167+ {
168+ return Factory . ExecuteKnownReferencePropertyGet < NetOffice . ExcelApi . WorkbookQuery > ( this , "_Default" , NetOffice . ExcelApi . WorkbookQuery . LateBindingApiWrapperType , index ) ;
169+ }
170+ }
171+
172+ /// <summary>
173+ /// SupportByVersion Excel 16
174+ /// Get
175+ /// </summary>
176+ /// <remarks> Docs: <see href="https://docs.microsoft.com/en-us/office/vba/api/Excel.Queries.Count"/> </remarks>
177+ [ SupportByVersion ( "Excel" , 16 ) ]
178+ public Int32 Count
179+ {
180+ get
181+ {
182+ return Factory . ExecuteInt32PropertyGet ( this , "Count" ) ;
183+ }
184+ }
185+
186+ /// <summary>
187+ /// SupportByVersion Excel 16
188+ /// Get
189+ /// </summary>
190+ /// <remarks> Docs: <see href="https://docs.microsoft.com/en-us/office/vba/api/Excel.Queries.FastCombine"/> </remarks>
191+ [ SupportByVersion ( "Excel" , 16 ) ]
192+ public bool FastCombine
193+ {
194+ get
195+ {
196+ return Factory . ExecuteBoolPropertyGet ( this , "FastCombine" ) ;
197+ }
198+ }
199+
200+ #endregion
201+
202+ #region Methods
203+
204+ /// <summary>
205+ /// SupportByVersion Excel 16
206+ /// </summary>
207+ /// <remarks> Docs: <see href="https://docs.microsoft.com/en-us/office/vba/api/Excel.Queries.Add"/> </remarks>
208+ /// <param name="name">name of the query</param>
209+ /// <param name="formula">Power Query M formula for the new query</param>
210+ /// <param name="description">optional description of the query</param>
211+ [ SupportByVersion ( "Excel" , 16 ) ]
212+ public NetOffice . ExcelApi . WorkbookQuery Add ( string name , string formula , object description )
213+ {
214+ return Factory . ExecuteKnownReferenceMethodGet < NetOffice . ExcelApi . WorkbookQuery > ( this , "Add" , NetOffice . ExcelApi . WorkbookQuery . LateBindingApiWrapperType , name , formula , description ) ;
215+ }
216+
217+ /// <summary>
218+ /// SupportByVersion Excel 16
219+ /// </summary>
220+ /// <remarks> Docs: <see href="https://docs.microsoft.com/en-us/office/vba/api/Excel.Queries.Add"/> </remarks>
221+ /// <param name="name">name of the query</param>
222+ /// <param name="formula">Power Query M formula for the new query</param>
223+ [ SupportByVersion ( "Excel" , 16 ) ]
224+ public NetOffice . ExcelApi . WorkbookQuery Add ( string name , string formula )
225+ {
226+ return Factory . ExecuteKnownReferenceMethodGet < NetOffice . ExcelApi . WorkbookQuery > ( this , "Add" , NetOffice . ExcelApi . WorkbookQuery . LateBindingApiWrapperType , name , formula ) ;
227+ }
228+
229+ #endregion
230+
231+ #region IEnumerableProvider<NetOffice.ExcelApi.WorkbookQuery>
232+
233+ ICOMObject IEnumerableProvider < NetOffice . ExcelApi . WorkbookQuery > . GetComObjectEnumerator ( ICOMObject parent )
234+ {
235+ return NetOffice . Utils . GetComObjectEnumeratorAsProperty ( parent , this ) ;
236+ }
237+
238+ IEnumerable IEnumerableProvider < NetOffice . ExcelApi . WorkbookQuery > . FetchVariantComObjectEnumerator ( ICOMObject parent , ICOMObject enumerator )
239+ {
240+ return NetOffice . Utils . FetchVariantComObjectEnumerator ( parent , enumerator , false ) ;
241+ }
242+
243+ #endregion
244+
245+ #region IEnumerable<NetOffice.ExcelApi.WorkbookQuery>
246+
247+ /// <summary>
248+ /// SupportByVersion Excel, 16
249+ /// </summary>
250+ [ SupportByVersion ( "Excel" , 16 ) ]
251+ public IEnumerator < NetOffice . ExcelApi . WorkbookQuery > GetEnumerator ( )
252+ {
253+ NetRuntimeSystem . Collections . IEnumerable innerEnumerator = ( this as NetRuntimeSystem . Collections . IEnumerable ) ;
254+ foreach ( NetOffice . ExcelApi . WorkbookQuery item in innerEnumerator )
255+ yield return item ;
256+ }
257+
258+ #endregion
259+
260+ #region IEnumerable
261+
262+ /// <summary>
263+ /// SupportByVersion Excel, 16
264+ /// </summary>
265+ [ SupportByVersion ( "Excel" , 16 ) ]
266+ IEnumerator NetRuntimeSystem . Collections . IEnumerable . GetEnumerator ( )
267+ {
268+ return NetOffice . Utils . GetProxyEnumeratorAsProperty ( this ) ;
269+ }
270+
271+ #endregion
272+
273+ #pragma warning restore
274+ }
275+ }
0 commit comments