win_wrap/uia/
property.rs

1/*
2 * Copyright (c) 2024. The RigelA open source project team and
3 * its contributors reserve all rights.
4 *
5 * Licensed under the Apache License, Version 2.0 (the "License");
6 * you may not use this file except in compliance with the License.
7 * You may obtain a copy of the License at
8 * http://www.apache.org/licenses/LICENSE-2.0
9 * Unless required by applicable law or agreed to in writing, software distributed under the
10 * License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
11 * See the License for the specific language governing permissions and limitations under the License.
12 */
13
14pub use windows::Win32::UI::Accessibility::{
15    UIA_AcceleratorKeyPropertyId, UIA_AccessKeyPropertyId,
16    UIA_AnnotationAnnotationTypeIdPropertyId, UIA_AnnotationAnnotationTypeNamePropertyId,
17    UIA_AnnotationAuthorPropertyId, UIA_AnnotationDateTimePropertyId,
18    UIA_AnnotationObjectsPropertyId, UIA_AnnotationTargetPropertyId, UIA_AnnotationTypesPropertyId,
19    UIA_AriaPropertiesPropertyId, UIA_AriaRolePropertyId, UIA_AutomationIdPropertyId,
20    UIA_BoundingRectanglePropertyId, UIA_CenterPointPropertyId, UIA_ClassNamePropertyId,
21    UIA_ClickablePointPropertyId, UIA_ControlTypePropertyId, UIA_ControllerForPropertyId,
22    UIA_CulturePropertyId, UIA_DescribedByPropertyId, UIA_DockDockPositionPropertyId,
23    UIA_DragDropEffectPropertyId, UIA_DragDropEffectsPropertyId, UIA_DragGrabbedItemsPropertyId,
24    UIA_DragIsGrabbedPropertyId, UIA_DropTargetDropTargetEffectPropertyId,
25    UIA_DropTargetDropTargetEffectsPropertyId, UIA_ExpandCollapseExpandCollapseStatePropertyId,
26    UIA_FillColorPropertyId, UIA_FillTypePropertyId, UIA_FlowsFromPropertyId,
27    UIA_FlowsToPropertyId, UIA_FrameworkIdPropertyId, UIA_FullDescriptionPropertyId,
28    UIA_GridColumnCountPropertyId, UIA_GridItemColumnPropertyId, UIA_GridItemColumnSpanPropertyId,
29    UIA_GridItemContainingGridPropertyId, UIA_GridItemRowPropertyId, UIA_GridItemRowSpanPropertyId,
30    UIA_GridRowCountPropertyId, UIA_HasKeyboardFocusPropertyId, UIA_HeadingLevelPropertyId,
31    UIA_HelpTextPropertyId, UIA_IsAnnotationPatternAvailablePropertyId,
32    UIA_IsContentElementPropertyId, UIA_IsControlElementPropertyId,
33    UIA_IsCustomNavigationPatternAvailablePropertyId, UIA_IsDataValidForFormPropertyId,
34    UIA_IsDialogPropertyId, UIA_IsDockPatternAvailablePropertyId,
35    UIA_IsDragPatternAvailablePropertyId, UIA_IsDropTargetPatternAvailablePropertyId,
36    UIA_IsEnabledPropertyId, UIA_IsExpandCollapsePatternAvailablePropertyId,
37    UIA_IsGridItemPatternAvailablePropertyId, UIA_IsGridPatternAvailablePropertyId,
38    UIA_IsInvokePatternAvailablePropertyId, UIA_IsItemContainerPatternAvailablePropertyId,
39    UIA_IsKeyboardFocusablePropertyId, UIA_IsLegacyIAccessiblePatternAvailablePropertyId,
40    UIA_IsMultipleViewPatternAvailablePropertyId, UIA_IsObjectModelPatternAvailablePropertyId,
41    UIA_IsOffscreenPropertyId, UIA_IsPasswordPropertyId, UIA_IsPeripheralPropertyId,
42    UIA_IsRangeValuePatternAvailablePropertyId, UIA_IsRequiredForFormPropertyId,
43    UIA_IsScrollItemPatternAvailablePropertyId, UIA_IsScrollPatternAvailablePropertyId,
44    UIA_IsSelectionItemPatternAvailablePropertyId, UIA_IsSelectionPattern2AvailablePropertyId,
45    UIA_IsSelectionPatternAvailablePropertyId, UIA_IsSpreadsheetItemPatternAvailablePropertyId,
46    UIA_IsSpreadsheetPatternAvailablePropertyId, UIA_IsStylesPatternAvailablePropertyId,
47    UIA_IsSynchronizedInputPatternAvailablePropertyId, UIA_IsTableItemPatternAvailablePropertyId,
48    UIA_IsTablePatternAvailablePropertyId, UIA_IsTextChildPatternAvailablePropertyId,
49    UIA_IsTextEditPatternAvailablePropertyId, UIA_IsTextPattern2AvailablePropertyId,
50    UIA_IsTextPatternAvailablePropertyId, UIA_IsTogglePatternAvailablePropertyId,
51    UIA_IsTransformPattern2AvailablePropertyId, UIA_IsTransformPatternAvailablePropertyId,
52    UIA_IsValuePatternAvailablePropertyId, UIA_IsVirtualizedItemPatternAvailablePropertyId,
53    UIA_IsWindowPatternAvailablePropertyId, UIA_ItemStatusPropertyId, UIA_ItemTypePropertyId,
54    UIA_LabeledByPropertyId, UIA_LandmarkTypePropertyId, UIA_LegacyIAccessibleChildIdPropertyId,
55    UIA_LegacyIAccessibleDefaultActionPropertyId, UIA_LegacyIAccessibleDescriptionPropertyId,
56    UIA_LegacyIAccessibleHelpPropertyId, UIA_LegacyIAccessibleKeyboardShortcutPropertyId,
57    UIA_LegacyIAccessibleNamePropertyId, UIA_LegacyIAccessibleRolePropertyId,
58    UIA_LegacyIAccessibleSelectionPropertyId, UIA_LegacyIAccessibleStatePropertyId,
59    UIA_LegacyIAccessibleValuePropertyId, UIA_LevelPropertyId, UIA_LiveSettingPropertyId,
60    UIA_LocalizedControlTypePropertyId, UIA_LocalizedLandmarkTypePropertyId,
61    UIA_MultipleViewCurrentViewPropertyId, UIA_MultipleViewSupportedViewsPropertyId,
62    UIA_NamePropertyId, UIA_NativeWindowHandlePropertyId, UIA_OptimizeForVisualContentPropertyId,
63    UIA_OrientationPropertyId, UIA_OutlineColorPropertyId, UIA_OutlineThicknessPropertyId,
64    UIA_PositionInSetPropertyId, UIA_ProcessIdPropertyId, UIA_ProviderDescriptionPropertyId,
65    UIA_RangeValueIsReadOnlyPropertyId, UIA_RangeValueLargeChangePropertyId,
66    UIA_RangeValueMaximumPropertyId, UIA_RangeValueMinimumPropertyId,
67    UIA_RangeValueSmallChangePropertyId, UIA_RangeValueValuePropertyId, UIA_RotationPropertyId,
68    UIA_RuntimeIdPropertyId, UIA_ScrollHorizontalScrollPercentPropertyId,
69    UIA_ScrollHorizontalViewSizePropertyId, UIA_ScrollHorizontallyScrollablePropertyId,
70    UIA_ScrollVerticalScrollPercentPropertyId, UIA_ScrollVerticalViewSizePropertyId,
71    UIA_ScrollVerticallyScrollablePropertyId, UIA_Selection2CurrentSelectedItemPropertyId,
72    UIA_Selection2FirstSelectedItemPropertyId, UIA_Selection2ItemCountPropertyId,
73    UIA_Selection2LastSelectedItemPropertyId, UIA_SelectionCanSelectMultiplePropertyId,
74    UIA_SelectionIsSelectionRequiredPropertyId, UIA_SelectionItemIsSelectedPropertyId,
75    UIA_SelectionItemSelectionContainerPropertyId, UIA_SelectionSelectionPropertyId,
76    UIA_SizeOfSetPropertyId, UIA_SizePropertyId, UIA_SpreadsheetItemAnnotationObjectsPropertyId,
77    UIA_SpreadsheetItemAnnotationTypesPropertyId, UIA_SpreadsheetItemFormulaPropertyId,
78    UIA_StylesExtendedPropertiesPropertyId, UIA_StylesFillColorPropertyId,
79    UIA_StylesFillPatternColorPropertyId, UIA_StylesFillPatternStylePropertyId,
80    UIA_StylesShapePropertyId, UIA_StylesStyleIdPropertyId, UIA_StylesStyleNamePropertyId,
81    UIA_TableColumnHeadersPropertyId, UIA_TableItemColumnHeaderItemsPropertyId,
82    UIA_TableItemRowHeaderItemsPropertyId, UIA_TableRowHeadersPropertyId,
83    UIA_TableRowOrColumnMajorPropertyId, UIA_ToggleToggleStatePropertyId,
84    UIA_Transform2CanZoomPropertyId, UIA_Transform2ZoomLevelPropertyId,
85    UIA_Transform2ZoomMaximumPropertyId, UIA_Transform2ZoomMinimumPropertyId,
86    UIA_TransformCanMovePropertyId, UIA_TransformCanResizePropertyId,
87    UIA_TransformCanRotatePropertyId, UIA_ValueIsReadOnlyPropertyId, UIA_ValueValuePropertyId,
88    UIA_VisualEffectsPropertyId, UIA_WindowCanMaximizePropertyId, UIA_WindowCanMinimizePropertyId,
89    UIA_WindowIsModalPropertyId, UIA_WindowIsTopmostPropertyId,
90    UIA_WindowWindowInteractionStatePropertyId, UIA_WindowWindowVisualStatePropertyId,
91    UIA_PROPERTY_ID,
92};
93
94/// UIA元素属性枚举。
95pub enum UiaPropertyId {
96    AcceleratorKey,
97    AccessKey,
98    AnnotationAnnotationTypeId,
99    AnnotationAnnotationTypeName,
100    AnnotationAuthor,
101    AnnotationDateTime,
102    AnnotationObjects,
103    AnnotationTarget,
104    AnnotationTypes,
105    AriaProperties,
106    AriaRole,
107    AutomationId,
108    BoundingRectangle,
109    CenterPoint,
110    ClassName,
111    ClickablePoint,
112    ControlType,
113    ControllerFor,
114    Culture,
115    DescribedBy,
116    DockDockPosition,
117    DragDropEffect,
118    DragDropEffects,
119    DragGrabbedItems,
120    DragIsGrabbed,
121    DropTargetDropTargetEffect,
122    DropTargetDropTargetEffects,
123    ExpandCollapseExpandCollapseState,
124    FillColor,
125    FillType,
126    FlowsFrom,
127    FlowsTo,
128    FrameworkId,
129    FullDescription,
130    GridColumnCount,
131    GridItemColumn,
132    GridItemColumnSpan,
133    GridItemContainingGrid,
134    GridItemRow,
135    GridItemRowSpan,
136    GridRowCount,
137    HasKeyboardFocus,
138    HeadingLevel,
139    HelpText,
140    IsAnnotationPatternAvailable,
141    IsContentElement,
142    IsControlElement,
143    IsCustomNavigationPatternAvailable,
144    IsDataValidForForm,
145    IsDialog,
146    IsDockPatternAvailable,
147    IsDragPatternAvailable,
148    IsDropTargetPatternAvailable,
149    IsEnabled,
150    IsExpandCollapsePatternAvailable,
151    IsGridItemPatternAvailable,
152    IsGridPatternAvailable,
153    IsInvokePatternAvailable,
154    IsItemContainerPatternAvailable,
155    IsKeyboardFocusable,
156    IsLegacyIAccessiblePatternAvailable,
157    IsMultipleViewPatternAvailable,
158    IsObjectModelPatternAvailable,
159    IsOffscreen,
160    IsPassword,
161    IsPeripheral,
162    IsRangeValuePatternAvailable,
163    IsRequiredForForm,
164    IsScrollItemPatternAvailable,
165    IsScrollPatternAvailable,
166    IsSelectionItemPatternAvailable,
167    IsSelectionPattern2Available,
168    IsSelectionPatternAvailable,
169    IsSpreadsheetItemPatternAvailable,
170    IsSpreadsheetPatternAvailable,
171    IsStylesPatternAvailable,
172    IsSynchronizedInputPatternAvailable,
173    IsTableItemPatternAvailable,
174    IsTablePatternAvailable,
175    IsTextChildPatternAvailable,
176    IsTextEditPatternAvailable,
177    IsTextPattern2Available,
178    IsTextPatternAvailable,
179    IsTogglePatternAvailable,
180    IsTransformPattern2Available,
181    IsTransformPatternAvailable,
182    IsValuePatternAvailable,
183    IsVirtualizedItemPatternAvailable,
184    IsWindowPatternAvailable,
185    ItemStatus,
186    ItemType,
187    LabeledBy,
188    LandmarkType,
189    LegacyIAccessibleChildId,
190    LegacyIAccessibleDefaultAction,
191    LegacyIAccessibleDescription,
192    LegacyIAccessibleHelp,
193    LegacyIAccessibleKeyboardShortcut,
194    LegacyIAccessibleName,
195    LegacyIAccessibleRole,
196    LegacyIAccessibleSelection,
197    LegacyIAccessibleState,
198    LegacyIAccessibleValue,
199    Level,
200    LiveSetting,
201    LocalizedControlType,
202    LocalizedLandmarkType,
203    MultipleViewCurrentView,
204    MultipleViewSupportedViews,
205    Name,
206    NativeWindowHandle,
207    OptimizeForVisualContent,
208    Orientation,
209    OutlineColor,
210    OutlineThickness,
211    PositionInSet,
212    ProcessId,
213    ProviderDescription,
214    RangeValueIsReadOnly,
215    RangeValueLargeChange,
216    RangeValueMaximum,
217    RangeValueMinimum,
218    RangeValueSmallChange,
219    RangeValueValue,
220    Rotation,
221    RuntimeId,
222    ScrollHorizontalScrollPercent,
223    ScrollHorizontalViewSize,
224    ScrollHorizontallyScrollable,
225    ScrollVerticalScrollPercent,
226    ScrollVerticalViewSize,
227    ScrollVerticallyScrollable,
228    Selection2CurrentSelectedItem,
229    Selection2FirstSelectedItem,
230    Selection2ItemCount,
231    Selection2LastSelectedItem,
232    SelectionCanSelectMultiple,
233    SelectionIsSelectionRequired,
234    SelectionItemIsSelected,
235    SelectionItemSelectionContainer,
236    SelectionSelection,
237    SizeOfSet,
238    Size,
239    SpreadsheetItemAnnotationObjects,
240    SpreadsheetItemAnnotationTypes,
241    SpreadsheetItemFormula,
242    StylesExtendedProperties,
243    StylesFillColor,
244    StylesFillPatternColor,
245    StylesFillPatternStyle,
246    StylesShape,
247    StylesStyleId,
248    StylesStyleName,
249    TableColumnHeaders,
250    TableItemColumnHeaderItems,
251    TableItemRowHeaderItems,
252    TableRowHeaders,
253    TableRowOrColumnMajor,
254    ToggleToggleState,
255    Transform2CanZoom,
256    Transform2ZoomLevel,
257    Transform2ZoomMaximum,
258    Transform2ZoomMinimum,
259    TransformCanMove,
260    TransformCanResize,
261    TransformCanRotate,
262    ValueIsReadOnly,
263    ValueValue,
264    VisualEffects,
265    WindowCanMaximize,
266    WindowCanMinimize,
267    WindowIsModal,
268    WindowIsTopmost,
269    WindowWindowInteractionState,
270    WindowWindowVisualState,
271}
272
273impl Into<UIA_PROPERTY_ID> for UiaPropertyId {
274    fn into(self) -> UIA_PROPERTY_ID {
275        match self {
276            Self::AcceleratorKey => UIA_AcceleratorKeyPropertyId,
277            Self::AccessKey => UIA_AccessKeyPropertyId,
278            Self::AnnotationAnnotationTypeId => UIA_AnnotationAnnotationTypeIdPropertyId,
279            Self::AnnotationAnnotationTypeName => UIA_AnnotationAnnotationTypeNamePropertyId,
280            Self::AnnotationAuthor => UIA_AnnotationAuthorPropertyId,
281            Self::AnnotationDateTime => UIA_AnnotationDateTimePropertyId,
282            Self::AnnotationObjects => UIA_AnnotationObjectsPropertyId,
283            Self::AnnotationTarget => UIA_AnnotationTargetPropertyId,
284            Self::AnnotationTypes => UIA_AnnotationTypesPropertyId,
285            Self::AriaProperties => UIA_AriaPropertiesPropertyId,
286            Self::AriaRole => UIA_AriaRolePropertyId,
287            Self::AutomationId => UIA_AutomationIdPropertyId,
288            Self::BoundingRectangle => UIA_BoundingRectanglePropertyId,
289            Self::CenterPoint => UIA_CenterPointPropertyId,
290            Self::ClassName => UIA_ClassNamePropertyId,
291            Self::ClickablePoint => UIA_ClickablePointPropertyId,
292            Self::ControlType => UIA_ControlTypePropertyId,
293            Self::ControllerFor => UIA_ControllerForPropertyId,
294            Self::Culture => UIA_CulturePropertyId,
295            Self::DescribedBy => UIA_DescribedByPropertyId,
296            Self::DockDockPosition => UIA_DockDockPositionPropertyId,
297            Self::DragDropEffect => UIA_DragDropEffectPropertyId,
298            Self::DragDropEffects => UIA_DragDropEffectsPropertyId,
299            Self::DragGrabbedItems => UIA_DragGrabbedItemsPropertyId,
300            Self::DragIsGrabbed => UIA_DragIsGrabbedPropertyId,
301            Self::DropTargetDropTargetEffect => UIA_DropTargetDropTargetEffectPropertyId,
302            Self::DropTargetDropTargetEffects => UIA_DropTargetDropTargetEffectsPropertyId,
303            Self::ExpandCollapseExpandCollapseState => {
304                UIA_ExpandCollapseExpandCollapseStatePropertyId
305            }
306            Self::FillColor => UIA_FillColorPropertyId,
307            Self::FillType => UIA_FillTypePropertyId,
308            Self::FlowsFrom => UIA_FlowsFromPropertyId,
309            Self::FlowsTo => UIA_FlowsToPropertyId,
310            Self::FrameworkId => UIA_FrameworkIdPropertyId,
311            Self::FullDescription => UIA_FullDescriptionPropertyId,
312            Self::GridColumnCount => UIA_GridColumnCountPropertyId,
313            Self::GridItemColumn => UIA_GridItemColumnPropertyId,
314            Self::GridItemColumnSpan => UIA_GridItemColumnSpanPropertyId,
315            Self::GridItemContainingGrid => UIA_GridItemContainingGridPropertyId,
316            Self::GridItemRow => UIA_GridItemRowPropertyId,
317            Self::GridItemRowSpan => UIA_GridItemRowSpanPropertyId,
318            Self::GridRowCount => UIA_GridRowCountPropertyId,
319            Self::HasKeyboardFocus => UIA_HasKeyboardFocusPropertyId,
320            Self::HeadingLevel => UIA_HeadingLevelPropertyId,
321            Self::HelpText => UIA_HelpTextPropertyId,
322            Self::IsAnnotationPatternAvailable => UIA_IsAnnotationPatternAvailablePropertyId,
323            Self::IsContentElement => UIA_IsContentElementPropertyId,
324            Self::IsControlElement => UIA_IsControlElementPropertyId,
325            Self::IsCustomNavigationPatternAvailable => {
326                UIA_IsCustomNavigationPatternAvailablePropertyId
327            }
328            Self::IsDataValidForForm => UIA_IsDataValidForFormPropertyId,
329            Self::IsDialog => UIA_IsDialogPropertyId,
330            Self::IsDockPatternAvailable => UIA_IsDockPatternAvailablePropertyId,
331            Self::IsDragPatternAvailable => UIA_IsDragPatternAvailablePropertyId,
332            Self::IsDropTargetPatternAvailable => UIA_IsDropTargetPatternAvailablePropertyId,
333            Self::IsEnabled => UIA_IsEnabledPropertyId,
334            Self::IsExpandCollapsePatternAvailable => {
335                UIA_IsExpandCollapsePatternAvailablePropertyId
336            }
337            Self::IsGridItemPatternAvailable => UIA_IsGridItemPatternAvailablePropertyId,
338            Self::IsGridPatternAvailable => UIA_IsGridPatternAvailablePropertyId,
339            Self::IsInvokePatternAvailable => UIA_IsInvokePatternAvailablePropertyId,
340            Self::IsItemContainerPatternAvailable => UIA_IsItemContainerPatternAvailablePropertyId,
341            Self::IsKeyboardFocusable => UIA_IsKeyboardFocusablePropertyId,
342            Self::IsLegacyIAccessiblePatternAvailable => {
343                UIA_IsLegacyIAccessiblePatternAvailablePropertyId
344            }
345            Self::IsMultipleViewPatternAvailable => UIA_IsMultipleViewPatternAvailablePropertyId,
346            Self::IsObjectModelPatternAvailable => UIA_IsObjectModelPatternAvailablePropertyId,
347            Self::IsOffscreen => UIA_IsOffscreenPropertyId,
348            Self::IsPassword => UIA_IsPasswordPropertyId,
349            Self::IsPeripheral => UIA_IsPeripheralPropertyId,
350            Self::IsRangeValuePatternAvailable => UIA_IsRangeValuePatternAvailablePropertyId,
351            Self::IsRequiredForForm => UIA_IsRequiredForFormPropertyId,
352            Self::IsScrollItemPatternAvailable => UIA_IsScrollItemPatternAvailablePropertyId,
353            Self::IsScrollPatternAvailable => UIA_IsScrollPatternAvailablePropertyId,
354            Self::IsSelectionItemPatternAvailable => UIA_IsSelectionItemPatternAvailablePropertyId,
355            Self::IsSelectionPattern2Available => UIA_IsSelectionPattern2AvailablePropertyId,
356            Self::IsSelectionPatternAvailable => UIA_IsSelectionPatternAvailablePropertyId,
357            Self::IsSpreadsheetItemPatternAvailable => {
358                UIA_IsSpreadsheetItemPatternAvailablePropertyId
359            }
360            Self::IsSpreadsheetPatternAvailable => UIA_IsSpreadsheetPatternAvailablePropertyId,
361            Self::IsStylesPatternAvailable => UIA_IsStylesPatternAvailablePropertyId,
362            Self::IsSynchronizedInputPatternAvailable => {
363                UIA_IsSynchronizedInputPatternAvailablePropertyId
364            }
365            Self::IsTableItemPatternAvailable => UIA_IsTableItemPatternAvailablePropertyId,
366            Self::IsTablePatternAvailable => UIA_IsTablePatternAvailablePropertyId,
367            Self::IsTextChildPatternAvailable => UIA_IsTextChildPatternAvailablePropertyId,
368            Self::IsTextEditPatternAvailable => UIA_IsTextEditPatternAvailablePropertyId,
369            Self::IsTextPattern2Available => UIA_IsTextPattern2AvailablePropertyId,
370            Self::IsTextPatternAvailable => UIA_IsTextPatternAvailablePropertyId,
371            Self::IsTogglePatternAvailable => UIA_IsTogglePatternAvailablePropertyId,
372            Self::IsTransformPattern2Available => UIA_IsTransformPattern2AvailablePropertyId,
373            Self::IsTransformPatternAvailable => UIA_IsTransformPatternAvailablePropertyId,
374            Self::IsValuePatternAvailable => UIA_IsValuePatternAvailablePropertyId,
375            Self::IsVirtualizedItemPatternAvailable => {
376                UIA_IsVirtualizedItemPatternAvailablePropertyId
377            }
378            Self::IsWindowPatternAvailable => UIA_IsWindowPatternAvailablePropertyId,
379            Self::ItemStatus => UIA_ItemStatusPropertyId,
380            Self::ItemType => UIA_ItemTypePropertyId,
381            Self::LabeledBy => UIA_LabeledByPropertyId,
382            Self::LandmarkType => UIA_LandmarkTypePropertyId,
383            Self::LegacyIAccessibleChildId => UIA_LegacyIAccessibleChildIdPropertyId,
384            Self::LegacyIAccessibleDefaultAction => UIA_LegacyIAccessibleDefaultActionPropertyId,
385            Self::LegacyIAccessibleDescription => UIA_LegacyIAccessibleDescriptionPropertyId,
386            Self::LegacyIAccessibleHelp => UIA_LegacyIAccessibleHelpPropertyId,
387            Self::LegacyIAccessibleKeyboardShortcut => {
388                UIA_LegacyIAccessibleKeyboardShortcutPropertyId
389            }
390            Self::LegacyIAccessibleName => UIA_LegacyIAccessibleNamePropertyId,
391            Self::LegacyIAccessibleRole => UIA_LegacyIAccessibleRolePropertyId,
392            Self::LegacyIAccessibleSelection => UIA_LegacyIAccessibleSelectionPropertyId,
393            Self::LegacyIAccessibleState => UIA_LegacyIAccessibleStatePropertyId,
394            Self::LegacyIAccessibleValue => UIA_LegacyIAccessibleValuePropertyId,
395            Self::Level => UIA_LevelPropertyId,
396            Self::LiveSetting => UIA_LiveSettingPropertyId,
397            Self::LocalizedControlType => UIA_LocalizedControlTypePropertyId,
398            Self::LocalizedLandmarkType => UIA_LocalizedLandmarkTypePropertyId,
399            Self::MultipleViewCurrentView => UIA_MultipleViewCurrentViewPropertyId,
400            Self::MultipleViewSupportedViews => UIA_MultipleViewSupportedViewsPropertyId,
401            Self::Name => UIA_NamePropertyId,
402            Self::NativeWindowHandle => UIA_NativeWindowHandlePropertyId,
403            Self::OptimizeForVisualContent => UIA_OptimizeForVisualContentPropertyId,
404            Self::Orientation => UIA_OrientationPropertyId,
405            Self::OutlineColor => UIA_OutlineColorPropertyId,
406            Self::OutlineThickness => UIA_OutlineThicknessPropertyId,
407            Self::PositionInSet => UIA_PositionInSetPropertyId,
408            Self::ProcessId => UIA_ProcessIdPropertyId,
409            Self::ProviderDescription => UIA_ProviderDescriptionPropertyId,
410            Self::RangeValueIsReadOnly => UIA_RangeValueIsReadOnlyPropertyId,
411            Self::RangeValueLargeChange => UIA_RangeValueLargeChangePropertyId,
412            Self::RangeValueMaximum => UIA_RangeValueMaximumPropertyId,
413            Self::RangeValueMinimum => UIA_RangeValueMinimumPropertyId,
414            Self::RangeValueSmallChange => UIA_RangeValueSmallChangePropertyId,
415            Self::RangeValueValue => UIA_RangeValueValuePropertyId,
416            Self::Rotation => UIA_RotationPropertyId,
417            Self::RuntimeId => UIA_RuntimeIdPropertyId,
418            Self::ScrollHorizontalScrollPercent => UIA_ScrollHorizontalScrollPercentPropertyId,
419            Self::ScrollHorizontalViewSize => UIA_ScrollHorizontalViewSizePropertyId,
420            Self::ScrollHorizontallyScrollable => UIA_ScrollHorizontallyScrollablePropertyId,
421            Self::ScrollVerticalScrollPercent => UIA_ScrollVerticalScrollPercentPropertyId,
422            Self::ScrollVerticalViewSize => UIA_ScrollVerticalViewSizePropertyId,
423            Self::ScrollVerticallyScrollable => UIA_ScrollVerticallyScrollablePropertyId,
424            Self::Selection2CurrentSelectedItem => UIA_Selection2CurrentSelectedItemPropertyId,
425            Self::Selection2FirstSelectedItem => UIA_Selection2FirstSelectedItemPropertyId,
426            Self::Selection2ItemCount => UIA_Selection2ItemCountPropertyId,
427            Self::Selection2LastSelectedItem => UIA_Selection2LastSelectedItemPropertyId,
428            Self::SelectionCanSelectMultiple => UIA_SelectionCanSelectMultiplePropertyId,
429            Self::SelectionIsSelectionRequired => UIA_SelectionIsSelectionRequiredPropertyId,
430            Self::SelectionItemIsSelected => UIA_SelectionItemIsSelectedPropertyId,
431            Self::SelectionItemSelectionContainer => UIA_SelectionItemSelectionContainerPropertyId,
432            Self::SelectionSelection => UIA_SelectionSelectionPropertyId,
433            Self::SizeOfSet => UIA_SizeOfSetPropertyId,
434            Self::Size => UIA_SizePropertyId,
435            Self::SpreadsheetItemAnnotationObjects => {
436                UIA_SpreadsheetItemAnnotationObjectsPropertyId
437            }
438            Self::SpreadsheetItemAnnotationTypes => UIA_SpreadsheetItemAnnotationTypesPropertyId,
439            Self::SpreadsheetItemFormula => UIA_SpreadsheetItemFormulaPropertyId,
440            Self::StylesExtendedProperties => UIA_StylesExtendedPropertiesPropertyId,
441            Self::StylesFillColor => UIA_StylesFillColorPropertyId,
442            Self::StylesFillPatternColor => UIA_StylesFillPatternColorPropertyId,
443            Self::StylesFillPatternStyle => UIA_StylesFillPatternStylePropertyId,
444            Self::StylesShape => UIA_StylesShapePropertyId,
445            Self::StylesStyleId => UIA_StylesStyleIdPropertyId,
446            Self::StylesStyleName => UIA_StylesStyleNamePropertyId,
447            Self::TableColumnHeaders => UIA_TableColumnHeadersPropertyId,
448            Self::TableItemColumnHeaderItems => UIA_TableItemColumnHeaderItemsPropertyId,
449            Self::TableItemRowHeaderItems => UIA_TableItemRowHeaderItemsPropertyId,
450            Self::TableRowHeaders => UIA_TableRowHeadersPropertyId,
451            Self::TableRowOrColumnMajor => UIA_TableRowOrColumnMajorPropertyId,
452            Self::ToggleToggleState => UIA_ToggleToggleStatePropertyId,
453            Self::Transform2CanZoom => UIA_Transform2CanZoomPropertyId,
454            Self::Transform2ZoomLevel => UIA_Transform2ZoomLevelPropertyId,
455            Self::Transform2ZoomMaximum => UIA_Transform2ZoomMaximumPropertyId,
456            Self::Transform2ZoomMinimum => UIA_Transform2ZoomMinimumPropertyId,
457            Self::TransformCanMove => UIA_TransformCanMovePropertyId,
458            Self::TransformCanResize => UIA_TransformCanResizePropertyId,
459            Self::TransformCanRotate => UIA_TransformCanRotatePropertyId,
460            Self::ValueIsReadOnly => UIA_ValueIsReadOnlyPropertyId,
461            Self::ValueValue => UIA_ValueValuePropertyId,
462            Self::VisualEffects => UIA_VisualEffectsPropertyId,
463            Self::WindowCanMaximize => UIA_WindowCanMaximizePropertyId,
464            Self::WindowCanMinimize => UIA_WindowCanMinimizePropertyId,
465            Self::WindowIsModal => UIA_WindowIsModalPropertyId,
466            Self::WindowIsTopmost => UIA_WindowIsTopmostPropertyId,
467            Self::WindowWindowInteractionState => UIA_WindowWindowInteractionStatePropertyId,
468            Self::WindowWindowVisualState => UIA_WindowWindowVisualStatePropertyId,
469        }
470    }
471}