/
AutomationElement.xml
4278 lines (3674 loc) · 288 KB
/
AutomationElement.xml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
813
814
815
816
817
818
819
820
821
822
823
824
825
826
827
828
829
830
831
832
833
834
835
836
837
838
839
840
841
842
843
844
845
846
847
848
849
850
851
852
853
854
855
856
857
858
859
860
861
862
863
864
865
866
867
868
869
870
871
872
873
874
875
876
877
878
879
880
881
882
883
884
885
886
887
888
889
890
891
892
893
894
895
896
897
898
899
900
901
902
903
904
905
906
907
908
909
910
911
912
913
914
915
916
917
918
919
920
921
922
923
924
925
926
927
928
929
930
931
932
933
934
935
936
937
938
939
940
941
942
943
944
945
946
947
948
949
950
951
952
953
954
955
956
957
958
959
960
961
962
963
964
965
966
967
968
969
970
971
972
973
974
975
976
977
978
979
980
981
982
983
984
985
986
987
988
989
990
991
992
993
994
995
996
997
998
999
1000
<Type Name="AutomationElement" FullName="System.Windows.Automation.AutomationElement">
<TypeSignature Language="C#" Value="public sealed class AutomationElement" />
<TypeSignature Language="ILAsm" Value=".class public auto ansi sealed beforefieldinit AutomationElement extends System.Object" />
<TypeSignature Language="DocId" Value="T:System.Windows.Automation.AutomationElement" />
<TypeSignature Language="VB.NET" Value="Public NotInheritable Class AutomationElement" />
<TypeSignature Language="F#" Value="type AutomationElement = class" />
<TypeSignature Language="C++ CLI" Value="public ref class AutomationElement sealed" />
<AssemblyInfo>
<AssemblyName>UIAutomationClient</AssemblyName>
<AssemblyVersion>3.0.0.0</AssemblyVersion>
<AssemblyVersion>4.0.0.0</AssemblyVersion>
<AssemblyVersion>5.0.0.0</AssemblyVersion>
<AssemblyVersion>6.0.0.0</AssemblyVersion>
<AssemblyVersion>7.0.0.0</AssemblyVersion>
<AssemblyVersion>8.0.0.0</AssemblyVersion>
<AssemblyVersion>9.0.0.0</AssemblyVersion>
</AssemblyInfo>
<Base>
<BaseTypeName>System.Object</BaseTypeName>
</Base>
<Interfaces />
<Docs>
<summary>Represents a UI Automation element in the UI Automation tree, and contains values used as identifiers by UI Automation client applications.</summary>
<remarks>
<format type="text/markdown"><![CDATA[
## Remarks
An <xref:System.Windows.Automation.AutomationElement> corresponds to a piece of user interface (UI), regardless of underlying implementation (such as Windows Presentation Foundation (WPF) or Win32).
]]></format>
</remarks>
<related type="Article" href="/dotnet/framework/ui-automation/ui-automation-overview">UI Automation Overview</related>
</Docs>
<Members>
<Member MemberName="AcceleratorKeyProperty">
<MemberSignature Language="C#" Value="public static readonly System.Windows.Automation.AutomationProperty AcceleratorKeyProperty;" />
<MemberSignature Language="ILAsm" Value=".field public static initonly class System.Windows.Automation.AutomationProperty AcceleratorKeyProperty" />
<MemberSignature Language="DocId" Value="F:System.Windows.Automation.AutomationElement.AcceleratorKeyProperty" />
<MemberSignature Language="VB.NET" Value="Public Shared ReadOnly AcceleratorKeyProperty As AutomationProperty " />
<MemberSignature Language="F#" Value=" staticval mutable AcceleratorKeyProperty : System.Windows.Automation.AutomationProperty" Usage="System.Windows.Automation.AutomationElement.AcceleratorKeyProperty" />
<MemberSignature Language="C++ CLI" Value="public: static initonly System::Windows::Automation::AutomationProperty ^ AcceleratorKeyProperty;" />
<MemberType>Field</MemberType>
<AssemblyInfo>
<AssemblyName>UIAutomationClient</AssemblyName>
<AssemblyVersion>3.0.0.0</AssemblyVersion>
<AssemblyVersion>4.0.0.0</AssemblyVersion>
<AssemblyVersion>5.0.0.0</AssemblyVersion>
<AssemblyVersion>6.0.0.0</AssemblyVersion>
<AssemblyVersion>7.0.0.0</AssemblyVersion>
<AssemblyVersion>8.0.0.0</AssemblyVersion>
<AssemblyVersion>9.0.0.0</AssemblyVersion>
</AssemblyInfo>
<ReturnValue>
<ReturnType>System.Windows.Automation.AutomationProperty</ReturnType>
</ReturnValue>
<Docs>
<summary>Identifies the <see cref="P:System.Windows.Automation.AutomationElement.AutomationElementInformation.AcceleratorKey" /> property.</summary>
<remarks>
<format type="text/markdown"><![CDATA[
## Remarks
This identifier is used by UI Automation client applications. UI Automation providers should use the equivalent identifier in <xref:System.Windows.Automation.AutomationElementIdentifiers>.
This property can also be retrieved from the <xref:System.Windows.Automation.AutomationElement.Current%2A> or <xref:System.Windows.Automation.AutomationElement.Cached%2A> properties.
Accelerator key combinations invoke an action. For example, CTRL+O is often used to invoke the **Open** file common dialog box. An <xref:System.Windows.Automation.AutomationElement> that has the accelerator key property set always implements the <xref:System.Windows.Automation.InvokePattern> class.
Return values of the property are of type <xref:System.String>. The default value for the property is an empty string.
## Examples
The following example retrieves the current value of the property. The default value is returned if the element does not provide one.
:::code language="csharp" source="~/snippets/csharp/System.Windows.Automation/AndCondition/.ctor/PropertySnips.cs" id="Snippet124":::
:::code language="vb" source="~/snippets/visualbasic/VS_Snippets_Wpf/UIAClient_snip/VisualBasic/PropertySnips.vb" id="Snippet124":::
The following example retrieves the current value of the property, but specifies that if the element itself does not provide a value for the property, <xref:System.Windows.Automation.AutomationElement.NotSupported> is to be returned instead of a default value.
:::code language="csharp" source="~/snippets/csharp/System.Windows.Automation/AndCondition/.ctor/PropertySnips.cs" id="Snippet125":::
:::code language="vb" source="~/snippets/visualbasic/VS_Snippets_Wpf/UIAClient_snip/VisualBasic/PropertySnips.vb" id="Snippet125":::
]]></format>
</remarks>
<related type="Article" href="/dotnet/framework/ui-automation/ui-automation-properties-for-clients">UI Automation Properties Overview</related>
</Docs>
</Member>
<Member MemberName="AccessKeyProperty">
<MemberSignature Language="C#" Value="public static readonly System.Windows.Automation.AutomationProperty AccessKeyProperty;" />
<MemberSignature Language="ILAsm" Value=".field public static initonly class System.Windows.Automation.AutomationProperty AccessKeyProperty" />
<MemberSignature Language="DocId" Value="F:System.Windows.Automation.AutomationElement.AccessKeyProperty" />
<MemberSignature Language="VB.NET" Value="Public Shared ReadOnly AccessKeyProperty As AutomationProperty " />
<MemberSignature Language="F#" Value=" staticval mutable AccessKeyProperty : System.Windows.Automation.AutomationProperty" Usage="System.Windows.Automation.AutomationElement.AccessKeyProperty" />
<MemberSignature Language="C++ CLI" Value="public: static initonly System::Windows::Automation::AutomationProperty ^ AccessKeyProperty;" />
<MemberType>Field</MemberType>
<AssemblyInfo>
<AssemblyName>UIAutomationClient</AssemblyName>
<AssemblyVersion>3.0.0.0</AssemblyVersion>
<AssemblyVersion>4.0.0.0</AssemblyVersion>
<AssemblyVersion>5.0.0.0</AssemblyVersion>
<AssemblyVersion>6.0.0.0</AssemblyVersion>
<AssemblyVersion>7.0.0.0</AssemblyVersion>
<AssemblyVersion>8.0.0.0</AssemblyVersion>
<AssemblyVersion>9.0.0.0</AssemblyVersion>
</AssemblyInfo>
<ReturnValue>
<ReturnType>System.Windows.Automation.AutomationProperty</ReturnType>
</ReturnValue>
<Docs>
<summary>Identifies the <see cref="P:System.Windows.Automation.AutomationElement.AutomationElementInformation.AccessKey" /> property.</summary>
<remarks>
<format type="text/markdown"><![CDATA[
## Remarks
This identifier is used by UI Automation client applications. UI Automation providers should use the equivalent identifier in <xref:System.Windows.Automation.AutomationElementIdentifiers>.
This property can also be retrieved from the <xref:System.Windows.Automation.AutomationElement.Current%2A> or <xref:System.Windows.Automation.AutomationElement.Cached%2A> properties.
An access key is a character in the text of a menu, menu item, or label of a control such as a button that activates the attached menu function. For example, the letter "O" is often used to invoke the **File Open** common dialog box from a **File** menu.
Access key values are of type <xref:System.String> and contain the character registered as the access key for the element. The default value for the string is an empty string.
## Examples
The following example retrieves the current value of the property. The default value is returned if the element does not provide one.
:::code language="csharp" source="~/snippets/csharp/System.Windows.Automation/AndCondition/.ctor/PropertySnips.cs" id="Snippet127":::
:::code language="vb" source="~/snippets/visualbasic/VS_Snippets_Wpf/UIAClient_snip/VisualBasic/PropertySnips.vb" id="Snippet127":::
The following example retrieves the current value of the property, but specifies that if the element itself does not provide a value for the property, <xref:System.Windows.Automation.AutomationElement.NotSupported> is to be returned instead of a default value.
:::code language="csharp" source="~/snippets/csharp/System.Windows.Automation/AndCondition/.ctor/PropertySnips.cs" id="Snippet128":::
:::code language="vb" source="~/snippets/visualbasic/VS_Snippets_Wpf/UIAClient_snip/VisualBasic/PropertySnips.vb" id="Snippet128":::
]]></format>
</remarks>
<related type="Article" href="/dotnet/framework/ui-automation/ui-automation-properties-for-clients">UI Automation Properties Overview</related>
</Docs>
</Member>
<Member MemberName="ActiveTextPositionChangedEvent">
<MemberSignature Language="C#" Value="public static readonly System.Windows.Automation.AutomationEvent ActiveTextPositionChangedEvent;" />
<MemberSignature Language="ILAsm" Value=".field public static initonly class System.Windows.Automation.AutomationEvent ActiveTextPositionChangedEvent" />
<MemberSignature Language="DocId" Value="F:System.Windows.Automation.AutomationElement.ActiveTextPositionChangedEvent" />
<MemberSignature Language="VB.NET" Value="Public Shared ReadOnly ActiveTextPositionChangedEvent As AutomationEvent " />
<MemberSignature Language="F#" Value=" staticval mutable ActiveTextPositionChangedEvent : System.Windows.Automation.AutomationEvent" Usage="System.Windows.Automation.AutomationElement.ActiveTextPositionChangedEvent" />
<MemberSignature Language="C++ CLI" Value="public: static initonly System::Windows::Automation::AutomationEvent ^ ActiveTextPositionChangedEvent;" />
<MemberType>Field</MemberType>
<AssemblyInfo>
<AssemblyName>UIAutomationClient</AssemblyName>
<AssemblyVersion>4.0.0.0</AssemblyVersion>
<AssemblyVersion>6.0.0.0</AssemblyVersion>
<AssemblyVersion>7.0.0.0</AssemblyVersion>
<AssemblyVersion>8.0.0.0</AssemblyVersion>
<AssemblyVersion>9.0.0.0</AssemblyVersion>
</AssemblyInfo>
<ReturnValue>
<ReturnType>System.Windows.Automation.AutomationEvent</ReturnType>
</ReturnValue>
<Docs>
<summary>Event ID: ActiveTextPositionChanged - Indicates that the active position within a text element has changed.</summary>
<remarks>To be added.</remarks>
</Docs>
</Member>
<Member MemberName="AsyncContentLoadedEvent">
<MemberSignature Language="C#" Value="public static readonly System.Windows.Automation.AutomationEvent AsyncContentLoadedEvent;" />
<MemberSignature Language="ILAsm" Value=".field public static initonly class System.Windows.Automation.AutomationEvent AsyncContentLoadedEvent" />
<MemberSignature Language="DocId" Value="F:System.Windows.Automation.AutomationElement.AsyncContentLoadedEvent" />
<MemberSignature Language="VB.NET" Value="Public Shared ReadOnly AsyncContentLoadedEvent As AutomationEvent " />
<MemberSignature Language="F#" Value=" staticval mutable AsyncContentLoadedEvent : System.Windows.Automation.AutomationEvent" Usage="System.Windows.Automation.AutomationElement.AsyncContentLoadedEvent" />
<MemberSignature Language="C++ CLI" Value="public: static initonly System::Windows::Automation::AutomationEvent ^ AsyncContentLoadedEvent;" />
<MemberType>Field</MemberType>
<AssemblyInfo>
<AssemblyName>UIAutomationClient</AssemblyName>
<AssemblyVersion>3.0.0.0</AssemblyVersion>
<AssemblyVersion>4.0.0.0</AssemblyVersion>
<AssemblyVersion>5.0.0.0</AssemblyVersion>
<AssemblyVersion>6.0.0.0</AssemblyVersion>
<AssemblyVersion>7.0.0.0</AssemblyVersion>
<AssemblyVersion>8.0.0.0</AssemblyVersion>
<AssemblyVersion>9.0.0.0</AssemblyVersion>
</AssemblyInfo>
<ReturnValue>
<ReturnType>System.Windows.Automation.AutomationEvent</ReturnType>
</ReturnValue>
<Docs>
<summary>Identifies an event raised during asynchronous content-loading.</summary>
<remarks>
<format type="text/markdown"><![CDATA[
## Remarks
This identifier is used by UI Automation client applications. UI Automation providers should use the equivalent identifier in <xref:System.Windows.Automation.AutomationElementIdentifiers>.
This event is used mainly by providers to indicate that asynchronous content-loading events have occurred.
]]></format>
</remarks>
<altmember cref="T:System.Windows.Automation.AsyncContentLoadedEventArgs" />
</Docs>
</Member>
<Member MemberName="AutomationFocusChangedEvent">
<MemberSignature Language="C#" Value="public static readonly System.Windows.Automation.AutomationEvent AutomationFocusChangedEvent;" />
<MemberSignature Language="ILAsm" Value=".field public static initonly class System.Windows.Automation.AutomationEvent AutomationFocusChangedEvent" />
<MemberSignature Language="DocId" Value="F:System.Windows.Automation.AutomationElement.AutomationFocusChangedEvent" />
<MemberSignature Language="VB.NET" Value="Public Shared ReadOnly AutomationFocusChangedEvent As AutomationEvent " />
<MemberSignature Language="F#" Value=" staticval mutable AutomationFocusChangedEvent : System.Windows.Automation.AutomationEvent" Usage="System.Windows.Automation.AutomationElement.AutomationFocusChangedEvent" />
<MemberSignature Language="C++ CLI" Value="public: static initonly System::Windows::Automation::AutomationEvent ^ AutomationFocusChangedEvent;" />
<MemberType>Field</MemberType>
<AssemblyInfo>
<AssemblyName>UIAutomationClient</AssemblyName>
<AssemblyVersion>3.0.0.0</AssemblyVersion>
<AssemblyVersion>4.0.0.0</AssemblyVersion>
<AssemblyVersion>5.0.0.0</AssemblyVersion>
<AssemblyVersion>6.0.0.0</AssemblyVersion>
<AssemblyVersion>7.0.0.0</AssemblyVersion>
<AssemblyVersion>8.0.0.0</AssemblyVersion>
<AssemblyVersion>9.0.0.0</AssemblyVersion>
</AssemblyInfo>
<ReturnValue>
<ReturnType>System.Windows.Automation.AutomationEvent</ReturnType>
</ReturnValue>
<Docs>
<summary>Identifies an event that is raised when the focus has changed.</summary>
<remarks>
<format type="text/markdown"><![CDATA[
## Remarks
This identifier is used by UI Automation client applications. UI Automation providers should use the equivalent identifier in <xref:System.Windows.Automation.AutomationElementIdentifiers>.
]]></format>
</remarks>
<altmember cref="T:System.Windows.Automation.AutomationFocusChangedEventArgs" />
<related type="Article" href="https://docs.microsoft.com/previous-versions/dotnet/netframework-3.5/ms771428(v=vs.90)">TrackFocus Sample</related>
</Docs>
</Member>
<Member MemberName="AutomationIdProperty">
<MemberSignature Language="C#" Value="public static readonly System.Windows.Automation.AutomationProperty AutomationIdProperty;" />
<MemberSignature Language="ILAsm" Value=".field public static initonly class System.Windows.Automation.AutomationProperty AutomationIdProperty" />
<MemberSignature Language="DocId" Value="F:System.Windows.Automation.AutomationElement.AutomationIdProperty" />
<MemberSignature Language="VB.NET" Value="Public Shared ReadOnly AutomationIdProperty As AutomationProperty " />
<MemberSignature Language="F#" Value=" staticval mutable AutomationIdProperty : System.Windows.Automation.AutomationProperty" Usage="System.Windows.Automation.AutomationElement.AutomationIdProperty" />
<MemberSignature Language="C++ CLI" Value="public: static initonly System::Windows::Automation::AutomationProperty ^ AutomationIdProperty;" />
<MemberType>Field</MemberType>
<AssemblyInfo>
<AssemblyName>UIAutomationClient</AssemblyName>
<AssemblyVersion>3.0.0.0</AssemblyVersion>
<AssemblyVersion>4.0.0.0</AssemblyVersion>
<AssemblyVersion>5.0.0.0</AssemblyVersion>
<AssemblyVersion>6.0.0.0</AssemblyVersion>
<AssemblyVersion>7.0.0.0</AssemblyVersion>
<AssemblyVersion>8.0.0.0</AssemblyVersion>
<AssemblyVersion>9.0.0.0</AssemblyVersion>
</AssemblyInfo>
<ReturnValue>
<ReturnType>System.Windows.Automation.AutomationProperty</ReturnType>
</ReturnValue>
<Docs>
<summary>Identifies the <see cref="P:System.Windows.Automation.AutomationElement.AutomationElementInformation.AutomationId" /> property, which is used to identify elements.</summary>
<remarks>
<format type="text/markdown"><![CDATA[
## Remarks
This identifier is used by UI Automation client applications. UI Automation providers should use the equivalent identifier in <xref:System.Windows.Automation.AutomationElementIdentifiers>.
This property can also be retrieved from the <xref:System.Windows.Automation.AutomationElement.Current%2A> or <xref:System.Windows.Automation.AutomationElement.Cached%2A> properties.
Return values of the property are of type <xref:System.String>. The default value for the property is an empty string.
When it is available the <xref:System.Windows.Automation.AutomationElement.AutomationIdProperty> of an element is expected to always be the same in any instance of the application regardless of the local language. The value should be unique among sibling elements but not necessarily unique across the entire desktop. For example, multiple instances of an application, or multiple folder views in Microsoft Windows Explorer, may contain elements with the same <xref:System.Windows.Automation.AutomationElement.AutomationIdProperty>, such as "SystemMenuBar".
While support of an <xref:System.Windows.Automation.AutomationElement.AutomationElementInformation.AutomationId%2A> is always recommended for better testability, this property is not mandatory. Where it is supported, an <xref:System.Windows.Automation.AutomationElement.AutomationElementInformation.AutomationId%2A> is useful for creating test automation scripts that run regardless of UI language. Clients should make no assumptions regarding the <xref:System.Windows.Automation.AutomationElement.AutomationElementInformation.AutomationId%2A>s exposed by other applications. An <xref:System.Windows.Automation.AutomationElement.AutomationElementInformation.AutomationId%2A> is not necessarily guaranteed to be stable across different releases or builds of an application.
Instances of user interface (UI) elements are uniquely identified on the desktop by their <xref:System.Windows.Automation.AutomationElement.RuntimeIdProperty> properties.
> [!NOTE]
> <xref:System.Windows.Automation.AutomationElement.AutomationIdProperty> is supported by all UI Automation elements in the control view except top-level application windows, UI Automation elements derived from Windows Presentation Foundation (WPF) controls that do not have an ID or x:Uid, and UI Automation elements derived from Win32 controls that do not have a control ID.
## Examples
The following example retrieves the current value of the property. The default value is returned if the element does not provide one.
:::code language="csharp" source="~/snippets/csharp/System.Windows.Automation/AndCondition/.ctor/PropertySnips.cs" id="Snippet129":::
:::code language="vb" source="~/snippets/visualbasic/VS_Snippets_Wpf/UIAClient_snip/VisualBasic/PropertySnips.vb" id="Snippet129":::
The following example retrieves the current value of the property, but specifies that if the element itself does not provide a value for the property, <xref:System.Windows.Automation.AutomationElement.NotSupported> is to be returned instead of a default value.
:::code language="csharp" source="~/snippets/csharp/System.Windows.Automation/AndCondition/.ctor/PropertySnips.cs" id="Snippet130":::
:::code language="vb" source="~/snippets/visualbasic/VS_Snippets_Wpf/UIAClient_snip/VisualBasic/PropertySnips.vb" id="Snippet130":::
]]></format>
</remarks>
<altmember cref="F:System.Windows.Automation.AutomationElement.RuntimeIdProperty" />
<related type="Article" href="/dotnet/framework/ui-automation/ui-automation-properties-for-clients">UI Automation Properties Overview</related>
<related type="Article" href="/dotnet/framework/ui-automation/obtaining-ui-automation-elements">Obtaining UI Automation Elements</related>
</Docs>
</Member>
<Member MemberName="AutomationPropertyChangedEvent">
<MemberSignature Language="C#" Value="public static readonly System.Windows.Automation.AutomationEvent AutomationPropertyChangedEvent;" />
<MemberSignature Language="ILAsm" Value=".field public static initonly class System.Windows.Automation.AutomationEvent AutomationPropertyChangedEvent" />
<MemberSignature Language="DocId" Value="F:System.Windows.Automation.AutomationElement.AutomationPropertyChangedEvent" />
<MemberSignature Language="VB.NET" Value="Public Shared ReadOnly AutomationPropertyChangedEvent As AutomationEvent " />
<MemberSignature Language="F#" Value=" staticval mutable AutomationPropertyChangedEvent : System.Windows.Automation.AutomationEvent" Usage="System.Windows.Automation.AutomationElement.AutomationPropertyChangedEvent" />
<MemberSignature Language="C++ CLI" Value="public: static initonly System::Windows::Automation::AutomationEvent ^ AutomationPropertyChangedEvent;" />
<MemberType>Field</MemberType>
<AssemblyInfo>
<AssemblyName>UIAutomationClient</AssemblyName>
<AssemblyVersion>3.0.0.0</AssemblyVersion>
<AssemblyVersion>4.0.0.0</AssemblyVersion>
<AssemblyVersion>5.0.0.0</AssemblyVersion>
<AssemblyVersion>6.0.0.0</AssemblyVersion>
<AssemblyVersion>7.0.0.0</AssemblyVersion>
<AssemblyVersion>8.0.0.0</AssemblyVersion>
<AssemblyVersion>9.0.0.0</AssemblyVersion>
</AssemblyInfo>
<ReturnValue>
<ReturnType>System.Windows.Automation.AutomationEvent</ReturnType>
</ReturnValue>
<Docs>
<summary>Identifies a property-changed event.</summary>
<remarks>
<format type="text/markdown"><![CDATA[
## Remarks
This identifier is used by UI Automation client applications. UI Automation providers should use the equivalent identifier in <xref:System.Windows.Automation.AutomationElementIdentifiers>.
]]></format>
</remarks>
<altmember cref="T:System.Windows.Automation.AutomationPropertyChangedEventArgs" />
</Docs>
</Member>
<Member MemberName="BoundingRectangleProperty">
<MemberSignature Language="C#" Value="public static readonly System.Windows.Automation.AutomationProperty BoundingRectangleProperty;" />
<MemberSignature Language="ILAsm" Value=".field public static initonly class System.Windows.Automation.AutomationProperty BoundingRectangleProperty" />
<MemberSignature Language="DocId" Value="F:System.Windows.Automation.AutomationElement.BoundingRectangleProperty" />
<MemberSignature Language="VB.NET" Value="Public Shared ReadOnly BoundingRectangleProperty As AutomationProperty " />
<MemberSignature Language="F#" Value=" staticval mutable BoundingRectangleProperty : System.Windows.Automation.AutomationProperty" Usage="System.Windows.Automation.AutomationElement.BoundingRectangleProperty" />
<MemberSignature Language="C++ CLI" Value="public: static initonly System::Windows::Automation::AutomationProperty ^ BoundingRectangleProperty;" />
<MemberType>Field</MemberType>
<AssemblyInfo>
<AssemblyName>UIAutomationClient</AssemblyName>
<AssemblyVersion>3.0.0.0</AssemblyVersion>
<AssemblyVersion>4.0.0.0</AssemblyVersion>
<AssemblyVersion>5.0.0.0</AssemblyVersion>
<AssemblyVersion>6.0.0.0</AssemblyVersion>
<AssemblyVersion>7.0.0.0</AssemblyVersion>
<AssemblyVersion>8.0.0.0</AssemblyVersion>
<AssemblyVersion>9.0.0.0</AssemblyVersion>
</AssemblyInfo>
<ReturnValue>
<ReturnType>System.Windows.Automation.AutomationProperty</ReturnType>
</ReturnValue>
<Docs>
<summary>Identifies the <see cref="P:System.Windows.Automation.AutomationElement.AutomationElementInformation.BoundingRectangle" /> property.</summary>
<remarks>
<format type="text/markdown"><![CDATA[
## Remarks
This identifier is used by UI Automation client applications. UI Automation providers should use the equivalent identifier in <xref:System.Windows.Automation.AutomationElementIdentifiers>.
This property can also be retrieved from the <xref:System.Windows.Automation.AutomationElement.Current%2A> or <xref:System.Windows.Automation.AutomationElement.Cached%2A> properties.
Bounding rectangles are of type <xref:System.Windows.Rect>. The returned rectangle is in physical screen coordinates. The default value is <xref:System.Windows.Rect.Empty%2A>. <xref:System.Windows.Rect.Empty%2A> is returned if the item is not currently displaying a user interface (UI).
The returned rectangle can contain points that are not clickable. Instances where this could happen include when the UI item has an irregular shape or clickable region, or it is obscured by other UI elements.
## Examples
The following example retrieves the current value of the property. The default value is returned if the element does not provide one.
:::code language="csharp" source="~/snippets/csharp/System.Windows.Automation/AndCondition/.ctor/PropertySnips.cs" id="Snippet131":::
:::code language="vb" source="~/snippets/visualbasic/VS_Snippets_Wpf/UIAClient_snip/VisualBasic/PropertySnips.vb" id="Snippet131":::
The following example retrieves the current value of the property, but specifies that if the element itself does not provide a value for the property, <xref:System.Windows.Automation.AutomationElement.NotSupported> is to be returned instead of a default value.
:::code language="csharp" source="~/snippets/csharp/System.Windows.Automation/AndCondition/.ctor/PropertySnips.cs" id="Snippet132":::
:::code language="vb" source="~/snippets/visualbasic/VS_Snippets_Wpf/UIAClient_snip/VisualBasic/PropertySnips.vb" id="Snippet132":::
]]></format>
</remarks>
<related type="Article" href="/dotnet/framework/ui-automation/ui-automation-properties-for-clients">UI Automation Properties Overview</related>
<related type="Article" href="/dotnet/framework/ui-automation/ui-automation-and-screen-scaling">UI Automation and Screen Scaling</related>
</Docs>
</Member>
<Member MemberName="Cached">
<MemberSignature Language="C#" Value="public System.Windows.Automation.AutomationElement.AutomationElementInformation Cached { get; }" />
<MemberSignature Language="ILAsm" Value=".property instance valuetype System.Windows.Automation.AutomationElement/AutomationElementInformation Cached" />
<MemberSignature Language="DocId" Value="P:System.Windows.Automation.AutomationElement.Cached" />
<MemberSignature Language="VB.NET" Value="Public ReadOnly Property Cached As AutomationElement.AutomationElementInformation" />
<MemberSignature Language="F#" Value="member this.Cached : System.Windows.Automation.AutomationElement.AutomationElementInformation" Usage="System.Windows.Automation.AutomationElement.Cached" />
<MemberSignature Language="C++ CLI" Value="public:
 property System::Windows::Automation::AutomationElement::AutomationElementInformation Cached { System::Windows::Automation::AutomationElement::AutomationElementInformation get(); };" />
<MemberType>Property</MemberType>
<AssemblyInfo>
<AssemblyName>UIAutomationClient</AssemblyName>
<AssemblyVersion>3.0.0.0</AssemblyVersion>
<AssemblyVersion>4.0.0.0</AssemblyVersion>
<AssemblyVersion>5.0.0.0</AssemblyVersion>
<AssemblyVersion>6.0.0.0</AssemblyVersion>
<AssemblyVersion>7.0.0.0</AssemblyVersion>
<AssemblyVersion>8.0.0.0</AssemblyVersion>
<AssemblyVersion>9.0.0.0</AssemblyVersion>
</AssemblyInfo>
<ReturnValue>
<ReturnType>System.Windows.Automation.AutomationElement+AutomationElementInformation</ReturnType>
</ReturnValue>
<Docs>
<summary>Gets the cached UI Automation property values for this <see cref="T:System.Windows.Automation.AutomationElement" /> object.</summary>
<value>A structure containing the cached property values for the <see cref="T:System.Windows.Automation.AutomationElement" />.</value>
<remarks>
<format type="text/markdown"><![CDATA[
## Remarks
The accessors for UI Automation properties are represented as properties of the structure returned by <xref:System.Windows.Automation.AutomationElement.Cached%2A>. You do not need to retrieve the structure; you can access its members directly, as in the example below. For specific information on the properties available and their use, see <xref:System.Windows.Automation.AutomationElement.AutomationElementInformation>.
To get the current value of UI Automation properties on this element use the <xref:System.Windows.Automation.AutomationElement.Current%2A> property.
## Examples
The following example shows how the <xref:System.Windows.Automation.AutomationElement.AutomationElementInformation.Name%2A> property can be cached and then retrieved by using the <xref:System.Windows.Automation.AutomationElement.Cached%2A> property.
:::code language="csharp" source="~/snippets/csharp/System.Windows.Automation/AndCondition/.ctor/ClientForm.cs" id="Snippet119":::
:::code language="vb" source="~/snippets/visualbasic/VS_Snippets_Wpf/UIAClient_snip/VisualBasic/ClientForm.vb" id="Snippet119":::
]]></format>
</remarks>
<exception cref="T:System.InvalidOperationException">There are no cached properties.</exception>
<exception cref="T:System.Windows.Automation.ElementNotAvailableException">The UI for the <see cref="T:System.Windows.Automation.AutomationElement" /> no longer exists.</exception>
<related type="Article" href="/dotnet/framework/ui-automation/ui-automation-properties-for-clients">UI Automation Properties Overview</related>
<related type="Article" href="/dotnet/framework/ui-automation/caching-in-ui-automation-clients">Caching in UI Automation Clients</related>
</Docs>
</Member>
<Member MemberName="CachedChildren">
<MemberSignature Language="C#" Value="public System.Windows.Automation.AutomationElementCollection CachedChildren { get; }" />
<MemberSignature Language="ILAsm" Value=".property instance class System.Windows.Automation.AutomationElementCollection CachedChildren" />
<MemberSignature Language="DocId" Value="P:System.Windows.Automation.AutomationElement.CachedChildren" />
<MemberSignature Language="VB.NET" Value="Public ReadOnly Property CachedChildren As AutomationElementCollection" />
<MemberSignature Language="F#" Value="member this.CachedChildren : System.Windows.Automation.AutomationElementCollection" Usage="System.Windows.Automation.AutomationElement.CachedChildren" />
<MemberSignature Language="C++ CLI" Value="public:
 property System::Windows::Automation::AutomationElementCollection ^ CachedChildren { System::Windows::Automation::AutomationElementCollection ^ get(); };" />
<MemberType>Property</MemberType>
<AssemblyInfo>
<AssemblyName>UIAutomationClient</AssemblyName>
<AssemblyVersion>3.0.0.0</AssemblyVersion>
<AssemblyVersion>4.0.0.0</AssemblyVersion>
<AssemblyVersion>5.0.0.0</AssemblyVersion>
<AssemblyVersion>6.0.0.0</AssemblyVersion>
<AssemblyVersion>7.0.0.0</AssemblyVersion>
<AssemblyVersion>8.0.0.0</AssemblyVersion>
<AssemblyVersion>9.0.0.0</AssemblyVersion>
</AssemblyInfo>
<ReturnValue>
<ReturnType>System.Windows.Automation.AutomationElementCollection</ReturnType>
</ReturnValue>
<Docs>
<summary>Gets the cached child elements of this <see cref="T:System.Windows.Automation.AutomationElement" />.</summary>
<value>The collection of child elements. This collection can be empty if the element has no children.</value>
<remarks>
<format type="text/markdown"><![CDATA[
## Remarks
The view of the returned collection is determined by the <xref:System.Windows.Automation.CacheRequest.TreeFilter%2A> condition of the <xref:System.Windows.Automation.CacheRequest> that was active when this <xref:System.Windows.Automation.AutomationElement> object was obtained.
Children are cached only if the scope of the <xref:System.Windows.Automation.CacheRequest> included <xref:System.Windows.Automation.TreeScope.Subtree>, <xref:System.Windows.Automation.TreeScope.Children>, or <xref:System.Windows.Automation.TreeScope.Descendants>.
If the <xref:System.Windows.Automation.CacheRequest> specified that children were to be cached at this level, but there are no children, then the value of this property is 0. However, if no request was made to cache children at this level, an attempt to retrieve the property raises an exception.
## Examples
In the following example, a list box element is obtained from the parent window element while a <xref:System.Windows.Automation.CacheRequest> is active and <xref:System.Windows.Automation.CacheRequest.TreeScope%2A> is <xref:System.Windows.Automation.TreeScope.Children>. The specified properties of the child elements (that is, the list items) are stored in the cache and can be retrieved from the <xref:System.Windows.Automation.AutomationElement.CachedChildren%2A> of the list box.
:::code language="csharp" source="~/snippets/csharp/System.Windows.Automation/AndCondition/.ctor/ClientForm.cs" id="Snippet119":::
:::code language="vb" source="~/snippets/visualbasic/VS_Snippets_Wpf/UIAClient_snip/VisualBasic/ClientForm.vb" id="Snippet119":::
]]></format>
</remarks>
<exception cref="T:System.Windows.Automation.ElementNotAvailableException">The UI for the <see cref="T:System.Windows.Automation.AutomationElement" /> no longer exists.</exception>
<exception cref="T:System.InvalidOperationException">No request was made to cache the children of this element.</exception>
<related type="Article" href="/dotnet/framework/ui-automation/caching-in-ui-automation-clients">Caching in UI Automation Clients</related>
</Docs>
</Member>
<Member MemberName="CachedParent">
<MemberSignature Language="C#" Value="public System.Windows.Automation.AutomationElement CachedParent { get; }" />
<MemberSignature Language="ILAsm" Value=".property instance class System.Windows.Automation.AutomationElement CachedParent" />
<MemberSignature Language="DocId" Value="P:System.Windows.Automation.AutomationElement.CachedParent" />
<MemberSignature Language="VB.NET" Value="Public ReadOnly Property CachedParent As AutomationElement" />
<MemberSignature Language="F#" Value="member this.CachedParent : System.Windows.Automation.AutomationElement" Usage="System.Windows.Automation.AutomationElement.CachedParent" />
<MemberSignature Language="C++ CLI" Value="public:
 property System::Windows::Automation::AutomationElement ^ CachedParent { System::Windows::Automation::AutomationElement ^ get(); };" />
<MemberType>Property</MemberType>
<AssemblyInfo>
<AssemblyName>UIAutomationClient</AssemblyName>
<AssemblyVersion>3.0.0.0</AssemblyVersion>
<AssemblyVersion>4.0.0.0</AssemblyVersion>
<AssemblyVersion>5.0.0.0</AssemblyVersion>
<AssemblyVersion>6.0.0.0</AssemblyVersion>
<AssemblyVersion>7.0.0.0</AssemblyVersion>
<AssemblyVersion>8.0.0.0</AssemblyVersion>
<AssemblyVersion>9.0.0.0</AssemblyVersion>
</AssemblyInfo>
<ReturnValue>
<ReturnType>System.Windows.Automation.AutomationElement</ReturnType>
</ReturnValue>
<Docs>
<summary>Gets the cached parent of this <see cref="T:System.Windows.Automation.AutomationElement" />.</summary>
<value>The parent element. The return value can be <see langword="null" /> if the specified element has no parent - for example, if this element is the root node.</value>
<remarks>
<format type="text/markdown"><![CDATA[
## Examples
In the following example, the <xref:System.Windows.Automation.AutomationElement.AutomationElementInformation.Name%2A> properties of a list box and its list items are cached. The list box element is available in the <xref:System.Windows.Automation.AutomationElement.CachedParent%2A> property of each list item element.
:::code language="csharp" source="~/snippets/csharp/System.Windows.Automation/AndCondition/.ctor/ClientForm.cs" id="Snippet119":::
:::code language="vb" source="~/snippets/visualbasic/VS_Snippets_Wpf/UIAClient_snip/VisualBasic/ClientForm.vb" id="Snippet119":::
]]></format>
</remarks>
<exception cref="T:System.InvalidOperationException">No parent element is cached.</exception>
<exception cref="T:System.Windows.Automation.ElementNotAvailableException">The UI for the <see cref="T:System.Windows.Automation.AutomationElement" /> no longer exists.</exception>
<related type="Article" href="/dotnet/framework/ui-automation/caching-in-ui-automation-clients">Caching in UI Automation Clients</related>
</Docs>
</Member>
<Member MemberName="ClassNameProperty">
<MemberSignature Language="C#" Value="public static readonly System.Windows.Automation.AutomationProperty ClassNameProperty;" />
<MemberSignature Language="ILAsm" Value=".field public static initonly class System.Windows.Automation.AutomationProperty ClassNameProperty" />
<MemberSignature Language="DocId" Value="F:System.Windows.Automation.AutomationElement.ClassNameProperty" />
<MemberSignature Language="VB.NET" Value="Public Shared ReadOnly ClassNameProperty As AutomationProperty " />
<MemberSignature Language="F#" Value=" staticval mutable ClassNameProperty : System.Windows.Automation.AutomationProperty" Usage="System.Windows.Automation.AutomationElement.ClassNameProperty" />
<MemberSignature Language="C++ CLI" Value="public: static initonly System::Windows::Automation::AutomationProperty ^ ClassNameProperty;" />
<MemberType>Field</MemberType>
<AssemblyInfo>
<AssemblyName>UIAutomationClient</AssemblyName>
<AssemblyVersion>3.0.0.0</AssemblyVersion>
<AssemblyVersion>4.0.0.0</AssemblyVersion>
<AssemblyVersion>5.0.0.0</AssemblyVersion>
<AssemblyVersion>6.0.0.0</AssemblyVersion>
<AssemblyVersion>7.0.0.0</AssemblyVersion>
<AssemblyVersion>8.0.0.0</AssemblyVersion>
<AssemblyVersion>9.0.0.0</AssemblyVersion>
</AssemblyInfo>
<ReturnValue>
<ReturnType>System.Windows.Automation.AutomationProperty</ReturnType>
</ReturnValue>
<Docs>
<summary>Identifies the <see cref="P:System.Windows.Automation.AutomationElement.AutomationElementInformation.ClassName" /> property.</summary>
<remarks>
<format type="text/markdown"><![CDATA[
## Remarks
This identifier is used by UI Automation client applications. UI Automation providers should use the equivalent identifier in <xref:System.Windows.Automation.AutomationElementIdentifiers>.
This property can also be retrieved from the <xref:System.Windows.Automation.AutomationElement.Current%2A> or <xref:System.Windows.Automation.AutomationElement.Cached%2A> properties.
The class name depends on the implementation of the UI Automation provider and therefore cannot be counted upon to be in a standard format. However, if you know the class name you can use it to verify that your application is working with the expected UI Automation element.
Return values of the property are of type <xref:System.String>. The default value is an empty string.
## Examples
The following example retrieves the current value of the property. The default value is returned if the element does not provide one.
:::code language="csharp" source="~/snippets/csharp/System.Windows.Automation/AndCondition/.ctor/PropertySnips.cs" id="Snippet133":::
:::code language="vb" source="~/snippets/visualbasic/VS_Snippets_Wpf/UIAClient_snip/VisualBasic/PropertySnips.vb" id="Snippet133":::
The following example retrieves the current value of the property, but specifies that if the element itself does not provide a value for the property, <xref:System.Windows.Automation.AutomationElement.NotSupported> is to be returned instead of a default value.
:::code language="csharp" source="~/snippets/csharp/System.Windows.Automation/AndCondition/.ctor/PropertySnips.cs" id="Snippet134":::
:::code language="vb" source="~/snippets/visualbasic/VS_Snippets_Wpf/UIAClient_snip/VisualBasic/PropertySnips.vb" id="Snippet134":::
]]></format>
</remarks>
<related type="Article" href="/dotnet/framework/ui-automation/ui-automation-properties-for-clients">UI Automation Properties Overview</related>
</Docs>
</Member>
<Member MemberName="ClickablePointProperty">
<MemberSignature Language="C#" Value="public static readonly System.Windows.Automation.AutomationProperty ClickablePointProperty;" />
<MemberSignature Language="ILAsm" Value=".field public static initonly class System.Windows.Automation.AutomationProperty ClickablePointProperty" />
<MemberSignature Language="DocId" Value="F:System.Windows.Automation.AutomationElement.ClickablePointProperty" />
<MemberSignature Language="VB.NET" Value="Public Shared ReadOnly ClickablePointProperty As AutomationProperty " />
<MemberSignature Language="F#" Value=" staticval mutable ClickablePointProperty : System.Windows.Automation.AutomationProperty" Usage="System.Windows.Automation.AutomationElement.ClickablePointProperty" />
<MemberSignature Language="C++ CLI" Value="public: static initonly System::Windows::Automation::AutomationProperty ^ ClickablePointProperty;" />
<MemberType>Field</MemberType>
<AssemblyInfo>
<AssemblyName>UIAutomationClient</AssemblyName>
<AssemblyVersion>3.0.0.0</AssemblyVersion>
<AssemblyVersion>4.0.0.0</AssemblyVersion>
<AssemblyVersion>5.0.0.0</AssemblyVersion>
<AssemblyVersion>6.0.0.0</AssemblyVersion>
<AssemblyVersion>7.0.0.0</AssemblyVersion>
<AssemblyVersion>8.0.0.0</AssemblyVersion>
<AssemblyVersion>9.0.0.0</AssemblyVersion>
</AssemblyInfo>
<ReturnValue>
<ReturnType>System.Windows.Automation.AutomationProperty</ReturnType>
</ReturnValue>
<Docs>
<summary>Identifies the clickable point property.</summary>
<remarks>
<format type="text/markdown"><![CDATA[
## Remarks
This identifier is used by UI Automation client applications. UI Automation providers should use the equivalent identifier in <xref:System.Windows.Automation.AutomationElementIdentifiers>.
An <xref:System.Windows.Automation.AutomationElement> is not clickable if it is completely obscured by another window.
Return values of the property are of type <xref:System.Windows.Point>. The default value is `null`.
The value returned is in physical screen coordinates.
## Examples
The following example retrieves the current value of the property.
:::code language="csharp" source="~/snippets/csharp/System.Windows.Automation/AndCondition/.ctor/PropertySnips.cs" id="Snippet135":::
:::code language="vb" source="~/snippets/visualbasic/VS_Snippets_Wpf/UIAClient_snip/VisualBasic/PropertySnips.vb" id="Snippet135":::
The following example retrieves the current value of the property, but specifies that if the element itself does not provide a value for the property, <xref:System.Windows.Automation.AutomationElement.NotSupported> is to be returned instead of a default value.
:::code language="csharp" source="~/snippets/csharp/System.Windows.Automation/AndCondition/.ctor/PropertySnips.cs" id="Snippet166":::
:::code language="vb" source="~/snippets/visualbasic/VS_Snippets_Wpf/UIAClient_snip/VisualBasic/PropertySnips.vb" id="Snippet166":::
]]></format>
</remarks>
<altmember cref="M:System.Windows.Automation.AutomationElement.TryGetClickablePoint(System.Windows.Point@)" />
<altmember cref="M:System.Windows.Automation.AutomationElement.GetClickablePoint" />
<related type="Article" href="/dotnet/framework/ui-automation/ui-automation-properties-for-clients">UI Automation Properties Overview</related>
<related type="Article" href="/dotnet/framework/ui-automation/ui-automation-and-screen-scaling">UI Automation and Screen Scaling</related>
</Docs>
</Member>
<Member MemberName="ControlTypeProperty">
<MemberSignature Language="C#" Value="public static readonly System.Windows.Automation.AutomationProperty ControlTypeProperty;" />
<MemberSignature Language="ILAsm" Value=".field public static initonly class System.Windows.Automation.AutomationProperty ControlTypeProperty" />
<MemberSignature Language="DocId" Value="F:System.Windows.Automation.AutomationElement.ControlTypeProperty" />
<MemberSignature Language="VB.NET" Value="Public Shared ReadOnly ControlTypeProperty As AutomationProperty " />
<MemberSignature Language="F#" Value=" staticval mutable ControlTypeProperty : System.Windows.Automation.AutomationProperty" Usage="System.Windows.Automation.AutomationElement.ControlTypeProperty" />
<MemberSignature Language="C++ CLI" Value="public: static initonly System::Windows::Automation::AutomationProperty ^ ControlTypeProperty;" />
<MemberType>Field</MemberType>
<AssemblyInfo>
<AssemblyName>UIAutomationClient</AssemblyName>
<AssemblyVersion>3.0.0.0</AssemblyVersion>
<AssemblyVersion>4.0.0.0</AssemblyVersion>
<AssemblyVersion>5.0.0.0</AssemblyVersion>
<AssemblyVersion>6.0.0.0</AssemblyVersion>
<AssemblyVersion>7.0.0.0</AssemblyVersion>
<AssemblyVersion>8.0.0.0</AssemblyVersion>
<AssemblyVersion>9.0.0.0</AssemblyVersion>
</AssemblyInfo>
<ReturnValue>
<ReturnType>System.Windows.Automation.AutomationProperty</ReturnType>
</ReturnValue>
<Docs>
<summary>Identifies the <see cref="P:System.Windows.Automation.AutomationElement.AutomationElementInformation.ControlType" /> property.</summary>
<remarks>
<format type="text/markdown"><![CDATA[
## Remarks
This identifier is used by UI Automation client applications. UI Automation providers should use the equivalent identifier in <xref:System.Windows.Automation.AutomationElementIdentifiers>.
This property can also be retrieved from the <xref:System.Windows.Automation.AutomationElement.Current%2A> or <xref:System.Windows.Automation.AutomationElement.Cached%2A> properties.
The default value for the property is <xref:System.Windows.Automation.ControlType.Custom>
## Examples
The following example retrieves the current value of the property. The default value is returned if the element does not provide one.
:::code language="csharp" source="~/snippets/csharp/System.Windows.Automation/AndCondition/.ctor/PropertySnips.cs" id="Snippet136":::
:::code language="vb" source="~/snippets/visualbasic/VS_Snippets_Wpf/UIAClient_snip/VisualBasic/PropertySnips.vb" id="Snippet136":::
The following example retrieves the current value of the property, but specifies that if the element itself does not provide a value for the property, <xref:System.Windows.Automation.AutomationElement.NotSupported> is to be returned instead of a default value.
:::code language="csharp" source="~/snippets/csharp/System.Windows.Automation/AndCondition/.ctor/PropertySnips.cs" id="Snippet137":::
:::code language="vb" source="~/snippets/visualbasic/VS_Snippets_Wpf/UIAClient_snip/VisualBasic/PropertySnips.vb" id="Snippet137":::
]]></format>
</remarks>
<related type="Article" href="/dotnet/framework/ui-automation/ui-automation-properties-for-clients">UI Automation Properties Overview</related>
<related type="Article" href="/dotnet/framework/ui-automation/ui-automation-control-types">UI Automation Control Types</related>
</Docs>
</Member>
<Member MemberName="CultureProperty">
<MemberSignature Language="C#" Value="public static readonly System.Windows.Automation.AutomationProperty CultureProperty;" />
<MemberSignature Language="ILAsm" Value=".field public static initonly class System.Windows.Automation.AutomationProperty CultureProperty" />
<MemberSignature Language="DocId" Value="F:System.Windows.Automation.AutomationElement.CultureProperty" />
<MemberSignature Language="VB.NET" Value="Public Shared ReadOnly CultureProperty As AutomationProperty " />
<MemberSignature Language="F#" Value=" staticval mutable CultureProperty : System.Windows.Automation.AutomationProperty" Usage="System.Windows.Automation.AutomationElement.CultureProperty" />
<MemberSignature Language="C++ CLI" Value="public: static initonly System::Windows::Automation::AutomationProperty ^ CultureProperty;" />
<MemberType>Field</MemberType>
<AssemblyInfo>
<AssemblyName>UIAutomationClient</AssemblyName>
<AssemblyVersion>3.0.0.0</AssemblyVersion>
<AssemblyVersion>4.0.0.0</AssemblyVersion>
<AssemblyVersion>5.0.0.0</AssemblyVersion>
<AssemblyVersion>6.0.0.0</AssemblyVersion>
<AssemblyVersion>7.0.0.0</AssemblyVersion>
<AssemblyVersion>8.0.0.0</AssemblyVersion>
<AssemblyVersion>9.0.0.0</AssemblyVersion>
</AssemblyInfo>
<ReturnValue>
<ReturnType>System.Windows.Automation.AutomationProperty</ReturnType>
</ReturnValue>
<Docs>
<summary>Identifies the culture property.</summary>
<remarks>
<format type="text/markdown"><![CDATA[
## Remarks
This identifier is used by UI Automation client applications. UI Automation providers should use the equivalent identifier in <xref:System.Windows.Automation.AutomationElementIdentifiers>.
Within the Windows Presentation Foundation (WPF) framework, the default value reported will always be `en-US` because the .NET Framework automatically defaults to English. For other user interface (UI) frameworks, this property must be explicitly set or it will not be exposed.
This property can exist on a per-control basis, but typically is only available on an application level.
Return values of the property are of type <xref:System.Globalization.CultureInfo>.
## Examples
The following example retrieves the current value of the property.
:::code language="csharp" source="~/snippets/csharp/System.Windows.Automation/AndCondition/.ctor/PropertySnips.cs" id="Snippet138":::
:::code language="vb" source="~/snippets/visualbasic/VS_Snippets_Wpf/UIAClient_snip/VisualBasic/PropertySnips.vb" id="Snippet138":::
]]></format>
</remarks>
<related type="Article" href="/dotnet/framework/ui-automation/ui-automation-properties-for-clients">UI Automation Properties Overview</related>
</Docs>
</Member>
<Member MemberName="Current">
<MemberSignature Language="C#" Value="public System.Windows.Automation.AutomationElement.AutomationElementInformation Current { get; }" />
<MemberSignature Language="ILAsm" Value=".property instance valuetype System.Windows.Automation.AutomationElement/AutomationElementInformation Current" />
<MemberSignature Language="DocId" Value="P:System.Windows.Automation.AutomationElement.Current" />
<MemberSignature Language="VB.NET" Value="Public ReadOnly Property Current As AutomationElement.AutomationElementInformation" />
<MemberSignature Language="F#" Value="member this.Current : System.Windows.Automation.AutomationElement.AutomationElementInformation" Usage="System.Windows.Automation.AutomationElement.Current" />
<MemberSignature Language="C++ CLI" Value="public:
 property System::Windows::Automation::AutomationElement::AutomationElementInformation Current { System::Windows::Automation::AutomationElement::AutomationElementInformation get(); };" />
<MemberType>Property</MemberType>
<AssemblyInfo>
<AssemblyName>UIAutomationClient</AssemblyName>
<AssemblyVersion>3.0.0.0</AssemblyVersion>
<AssemblyVersion>4.0.0.0</AssemblyVersion>
<AssemblyVersion>5.0.0.0</AssemblyVersion>
<AssemblyVersion>6.0.0.0</AssemblyVersion>
<AssemblyVersion>7.0.0.0</AssemblyVersion>
<AssemblyVersion>8.0.0.0</AssemblyVersion>
<AssemblyVersion>9.0.0.0</AssemblyVersion>
</AssemblyInfo>
<ReturnValue>
<ReturnType>System.Windows.Automation.AutomationElement+AutomationElementInformation</ReturnType>
</ReturnValue>
<Docs>
<summary>Gets the current property values of the <see cref="T:System.Windows.Automation.AutomationElement" />.</summary>
<value>A structure containing the current property values.</value>
<remarks>
<format type="text/markdown"><![CDATA[
## Remarks
The accessors for UI Automation properties are represented as properties of the structure returned by <xref:System.Windows.Automation.AutomationElement.Current%2A>. You do not need to retrieve the structure; you can access its members directly, as in the example below. For specific information on the properties available and their use, see <xref:System.Windows.Automation.AutomationElement.AutomationElementInformation>.
To get the cached value of UI Automation properties on this element, use the <xref:System.Windows.Automation.AutomationElement.Cached%2A> property.
## Examples
The following example shows how the <xref:System.Windows.Automation.AutomationElement.Current%2A> property is used to retrieve the name of an item that has been selected in a list.
:::code language="csharp" source="~/snippets/csharp/System.Windows.Automation/AndCondition/.ctor/ClientForm.cs" id="Snippet106":::
:::code language="vb" source="~/snippets/visualbasic/VS_Snippets_Wpf/UIAClient_snip/VisualBasic/ClientForm.vb" id="Snippet106":::
]]></format>
</remarks>
<exception cref="T:System.Windows.Automation.ElementNotAvailableException">The UI for the <see cref="T:System.Windows.Automation.AutomationElement" /> no longer exists.</exception>
<related type="Article" href="/dotnet/framework/ui-automation/ui-automation-properties-for-clients">UI Automation Properties Overview</related>
</Docs>
</Member>
<Member MemberName="Equals">
<MemberSignature Language="C#" Value="public override bool Equals (object obj);" />
<MemberSignature Language="ILAsm" Value=".method public hidebysig virtual instance bool Equals(object obj) cil managed" />
<MemberSignature Language="DocId" Value="M:System.Windows.Automation.AutomationElement.Equals(System.Object)" />
<MemberSignature Language="VB.NET" Value="Public Overrides Function Equals (obj As Object) As Boolean" />
<MemberSignature Language="F#" Value="override this.Equals : obj -> bool" Usage="automationElement.Equals obj" />
<MemberSignature Language="C++ CLI" Value="public:
 override bool Equals(System::Object ^ obj);" />
<MemberType>Method</MemberType>
<AssemblyInfo>
<AssemblyName>UIAutomationClient</AssemblyName>
<AssemblyVersion>3.0.0.0</AssemblyVersion>
<AssemblyVersion>4.0.0.0</AssemblyVersion>
<AssemblyVersion>5.0.0.0</AssemblyVersion>
<AssemblyVersion>6.0.0.0</AssemblyVersion>
<AssemblyVersion>7.0.0.0</AssemblyVersion>
<AssemblyVersion>8.0.0.0</AssemblyVersion>
<AssemblyVersion>9.0.0.0</AssemblyVersion>
</AssemblyInfo>
<ReturnValue>
<ReturnType>System.Boolean</ReturnType>
</ReturnValue>
<Parameters>
<Parameter Name="obj" Type="System.Object" />
</Parameters>
<Docs>
<param name="obj">An <see cref="T:System.Windows.Automation.AutomationElement" /> to compare.</param>
<summary>Determines whether the specified <see cref="T:System.Windows.Automation.AutomationElement" /> has the same value as this <see cref="T:System.Windows.Automation.AutomationElement" />.</summary>
<returns>
<see langword="true" /> if the specified <see cref="T:System.Windows.Automation.AutomationElement" /> is equal to this <see cref="T:System.Windows.Automation.AutomationElement" />;otherwise <see langword="false" />.</returns>
<remarks>
<format type="text/markdown"><![CDATA[
## Remarks
Two elements that compare as equal may contain different cached information from different points in time. The equality check only tests that the <xref:System.Windows.Automation.AutomationElement> objects refer to the same underlying user interface element; that is, that they have the same run-time identifier.
This method is equivalent to the equality operator, which also compare run-time identifiers.
]]></format>
</remarks>
<altmember cref="M:System.Windows.Automation.AutomationElement.op_Equality(System.Windows.Automation.AutomationElement,System.Windows.Automation.AutomationElement)" />
<altmember cref="M:System.Windows.Automation.Automation.Compare(System.Windows.Automation.AutomationElement,System.Windows.Automation.AutomationElement)" />
</Docs>
</Member>
<Member MemberName="Finalize">
<MemberSignature Language="C#" Value="~AutomationElement ();" />
<MemberSignature Language="ILAsm" Value=".method familyhidebysig virtual instance void Finalize() cil managed" />
<MemberSignature Language="DocId" Value="M:System.Windows.Automation.AutomationElement.Finalize" />
<MemberSignature Language="VB.NET" Value="Finalize ()" />
<MemberSignature Language="F#" Value="override this.Finalize : unit -> unit" Usage="automationElement.Finalize " />
<MemberSignature Language="C++ CLI" Value="!AutomationElement ()" />
<MemberType>Method</MemberType>
<AssemblyInfo>
<AssemblyName>UIAutomationClient</AssemblyName>
<AssemblyVersion>3.0.0.0</AssemblyVersion>
<AssemblyVersion>4.0.0.0</AssemblyVersion>
<AssemblyVersion>5.0.0.0</AssemblyVersion>
<AssemblyVersion>6.0.0.0</AssemblyVersion>
<AssemblyVersion>7.0.0.0</AssemblyVersion>
<AssemblyVersion>8.0.0.0</AssemblyVersion>
<AssemblyVersion>9.0.0.0</AssemblyVersion>
</AssemblyInfo>
<ReturnValue>
<ReturnType>System.Void</ReturnType>
</ReturnValue>
<Parameters />
<Docs>
<summary>Allows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection.</summary>
<remarks>To be added.</remarks>
</Docs>
</Member>
<Member MemberName="FindAll">
<MemberSignature Language="C#" Value="public System.Windows.Automation.AutomationElementCollection FindAll (System.Windows.Automation.TreeScope scope, System.Windows.Automation.Condition condition);" />
<MemberSignature Language="ILAsm" Value=".method public hidebysig instance class System.Windows.Automation.AutomationElementCollection FindAll(valuetype System.Windows.Automation.TreeScope scope, class System.Windows.Automation.Condition condition) cil managed" />
<MemberSignature Language="DocId" Value="M:System.Windows.Automation.AutomationElement.FindAll(System.Windows.Automation.TreeScope,System.Windows.Automation.Condition)" />
<MemberSignature Language="VB.NET" Value="Public Function FindAll (scope As TreeScope, condition As Condition) As AutomationElementCollection" />
<MemberSignature Language="F#" Value="member this.FindAll : System.Windows.Automation.TreeScope * System.Windows.Automation.Condition -> System.Windows.Automation.AutomationElementCollection" Usage="automationElement.FindAll (scope, condition)" />
<MemberSignature Language="C++ CLI" Value="public:
 System::Windows::Automation::AutomationElementCollection ^ FindAll(System::Windows::Automation::TreeScope scope, System::Windows::Automation::Condition ^ condition);" />
<MemberType>Method</MemberType>
<AssemblyInfo>
<AssemblyName>UIAutomationClient</AssemblyName>
<AssemblyVersion>3.0.0.0</AssemblyVersion>
<AssemblyVersion>4.0.0.0</AssemblyVersion>
<AssemblyVersion>5.0.0.0</AssemblyVersion>
<AssemblyVersion>6.0.0.0</AssemblyVersion>
<AssemblyVersion>7.0.0.0</AssemblyVersion>
<AssemblyVersion>8.0.0.0</AssemblyVersion>
<AssemblyVersion>9.0.0.0</AssemblyVersion>
</AssemblyInfo>
<ReturnValue>
<ReturnType>System.Windows.Automation.AutomationElementCollection</ReturnType>
</ReturnValue>
<Parameters>
<Parameter Name="scope" Type="System.Windows.Automation.TreeScope" />
<Parameter Name="condition" Type="System.Windows.Automation.Condition" />
</Parameters>
<Docs>
<param name="scope">A bitwise combination of values that specifies the scope of the search.</param>
<param name="condition">The object containing the criteria to match.</param>
<summary>Returns all <see cref="T:System.Windows.Automation.AutomationElement" /> objects that satisfy the specified condition.</summary>
<returns>A collection of objects that satisfies the specified condition. If there are no matches, an empty collection is returned.</returns>
<remarks>
<format type="text/markdown"><![CDATA[
## Remarks
The scope of the search is relative to the element on which the method is called. Elements are returned in the order in which they were encountered in the tree.
When searching for top-level windows on the desktop, be sure to specify <xref:System.Windows.Automation.TreeScope.Children> in `scope`, not <xref:System.Windows.Automation.TreeScope.Descendants>. A search through the entire subtree of the desktop could iterate through thousands of items and lead to a stack overflow.
If your client application might try to find elements in its own user interface, you must make all UI Automation calls on a separate thread.
## Examples
The following example shows how to use <xref:System.Windows.Automation.AutomationElement.FindAll%2A> to locate all enabled buttons in a window.
:::code language="csharp" source="~/snippets/csharp/System.Windows.Automation/AndCondition/.ctor/ClientForm.cs" id="Snippet116":::
:::code language="vb" source="~/snippets/visualbasic/VS_Snippets_Wpf/UIAClient_snip/VisualBasic/ClientForm.vb" id="Snippet116":::
]]></format>
</remarks>
<altmember cref="M:System.Windows.Automation.AutomationElement.FindFirst(System.Windows.Automation.TreeScope,System.Windows.Automation.Condition)" />
<related type="Article" href="/dotnet/framework/ui-automation/obtaining-ui-automation-elements">Obtaining UI Automation Elements</related>
<related type="Article" href="/dotnet/framework/ui-automation/ui-automation-threading-issues">UI Automation Threading Issues</related>
</Docs>
</Member>
<Member MemberName="FindFirst">
<MemberSignature Language="C#" Value="public System.Windows.Automation.AutomationElement FindFirst (System.Windows.Automation.TreeScope scope, System.Windows.Automation.Condition condition);" />
<MemberSignature Language="ILAsm" Value=".method public hidebysig instance class System.Windows.Automation.AutomationElement FindFirst(valuetype System.Windows.Automation.TreeScope scope, class System.Windows.Automation.Condition condition) cil managed" />
<MemberSignature Language="DocId" Value="M:System.Windows.Automation.AutomationElement.FindFirst(System.Windows.Automation.TreeScope,System.Windows.Automation.Condition)" />
<MemberSignature Language="VB.NET" Value="Public Function FindFirst (scope As TreeScope, condition As Condition) As AutomationElement" />
<MemberSignature Language="F#" Value="member this.FindFirst : System.Windows.Automation.TreeScope * System.Windows.Automation.Condition -> System.Windows.Automation.AutomationElement" Usage="automationElement.FindFirst (scope, condition)" />
<MemberSignature Language="C++ CLI" Value="public:
 System::Windows::Automation::AutomationElement ^ FindFirst(System::Windows::Automation::TreeScope scope, System::Windows::Automation::Condition ^ condition);" />
<MemberType>Method</MemberType>
<AssemblyInfo>
<AssemblyName>UIAutomationClient</AssemblyName>
<AssemblyVersion>3.0.0.0</AssemblyVersion>
<AssemblyVersion>4.0.0.0</AssemblyVersion>
<AssemblyVersion>5.0.0.0</AssemblyVersion>
<AssemblyVersion>6.0.0.0</AssemblyVersion>
<AssemblyVersion>7.0.0.0</AssemblyVersion>
<AssemblyVersion>8.0.0.0</AssemblyVersion>
<AssemblyVersion>9.0.0.0</AssemblyVersion>
</AssemblyInfo>
<ReturnValue>
<ReturnType>System.Windows.Automation.AutomationElement</ReturnType>
</ReturnValue>
<Parameters>
<Parameter Name="scope" Type="System.Windows.Automation.TreeScope" />
<Parameter Name="condition" Type="System.Windows.Automation.Condition" />
</Parameters>
<Docs>
<param name="scope">A bitwise combination of values that specifies the scope of the search.</param>
<param name="condition">The object containing the criteria to match.</param>
<summary>Returns the first child or descendant element that matches the specified condition.</summary>
<returns>The first element that satisfies the condition, or <see langword="null" /> if no match is found.</returns>
<remarks>
<format type="text/markdown"><![CDATA[
## Remarks
The scope of the search is relative to the element on which the method is called.
When searching for a top-level window on the desktop, be sure to specify <xref:System.Windows.Automation.TreeScope.Children> in `scope`, not <xref:System.Windows.Automation.TreeScope.Descendants>. A search through the entire subtree of the desktop could iterate through thousands of items and lead to a stack overflow.
If your client application might try to find elements in its own user interface, you must make all UI Automation calls on a separate thread.
## Examples
The following example shows how to find a child window from its identifier.
:::code language="csharp" source="~/snippets/csharp/System.Windows.Automation/AndCondition/.ctor/ClientForm.cs" id="Snippet110":::
:::code language="vb" source="~/snippets/visualbasic/VS_Snippets_Wpf/UIAClient_snip/VisualBasic/ClientForm.vb" id="Snippet110":::
]]></format>
</remarks>
<altmember cref="M:System.Windows.Automation.AutomationElement.FindAll(System.Windows.Automation.TreeScope,System.Windows.Automation.Condition)" />
<related type="Article" href="/dotnet/framework/ui-automation/obtaining-ui-automation-elements">Obtaining UI Automation Elements</related>
<related type="Article" href="/dotnet/framework/ui-automation/ui-automation-threading-issues">UI Automation Threading Issues</related>
</Docs>
</Member>
<Member MemberName="FocusedElement">
<MemberSignature Language="C#" Value="public static System.Windows.Automation.AutomationElement FocusedElement { get; }" />
<MemberSignature Language="ILAsm" Value=".property class System.Windows.Automation.AutomationElement FocusedElement" />
<MemberSignature Language="DocId" Value="P:System.Windows.Automation.AutomationElement.FocusedElement" />
<MemberSignature Language="VB.NET" Value="Public Shared ReadOnly Property FocusedElement As AutomationElement" />
<MemberSignature Language="F#" Value="static member FocusedElement : System.Windows.Automation.AutomationElement" Usage="System.Windows.Automation.AutomationElement.FocusedElement" />
<MemberSignature Language="C++ CLI" Value="public:
 static property System::Windows::Automation::AutomationElement ^ FocusedElement { System::Windows::Automation::AutomationElement ^ get(); };" />
<MemberType>Property</MemberType>
<AssemblyInfo>
<AssemblyName>UIAutomationClient</AssemblyName>
<AssemblyVersion>3.0.0.0</AssemblyVersion>
<AssemblyVersion>4.0.0.0</AssemblyVersion>
<AssemblyVersion>5.0.0.0</AssemblyVersion>
<AssemblyVersion>6.0.0.0</AssemblyVersion>
<AssemblyVersion>7.0.0.0</AssemblyVersion>
<AssemblyVersion>8.0.0.0</AssemblyVersion>
<AssemblyVersion>9.0.0.0</AssemblyVersion>
</AssemblyInfo>
<ReturnValue>
<ReturnType>System.Windows.Automation.AutomationElement</ReturnType>
</ReturnValue>
<Docs>
<summary>Gets the <see cref="T:System.Windows.Automation.AutomationElement" /> that currently has focus.</summary>
<value>The focused UI element.</value>
<remarks>
<format type="text/markdown"><![CDATA[
## Remarks
If your client application might try to find elements in its own user interface, you must make all UI Automation calls on a separate thread.
]]></format>
</remarks>
<related type="Article" href="/dotnet/framework/ui-automation/ui-automation-threading-issues">UI Automation Threading Issues</related>
</Docs>
</Member>
<Member MemberName="FrameworkIdProperty">
<MemberSignature Language="C#" Value="public static readonly System.Windows.Automation.AutomationProperty FrameworkIdProperty;" />
<MemberSignature Language="ILAsm" Value=".field public static initonly class System.Windows.Automation.AutomationProperty FrameworkIdProperty" />
<MemberSignature Language="DocId" Value="F:System.Windows.Automation.AutomationElement.FrameworkIdProperty" />
<MemberSignature Language="VB.NET" Value="Public Shared ReadOnly FrameworkIdProperty As AutomationProperty " />
<MemberSignature Language="F#" Value=" staticval mutable FrameworkIdProperty : System.Windows.Automation.AutomationProperty" Usage="System.Windows.Automation.AutomationElement.FrameworkIdProperty" />
<MemberSignature Language="C++ CLI" Value="public: static initonly System::Windows::Automation::AutomationProperty ^ FrameworkIdProperty;" />
<MemberType>Field</MemberType>