(たとえばなど) の実数Typeを取得するにはどうすればよいですか? 戻ります。AutomationElementTextEditGetType()System.Windows.Automation.AutomationElement
1683 次
2 に答える
1
プロパティを介して自動化要素のタイプを取得できAutomationElement.Current.ControlTypeます。
ControlType controlType = AutomationElement.Current.ControlType;
詳細については、MSDNを参照してください。
于 2012-09-19T07:29:32.797 に答える
0
私は試してみましたが、次のことがうまくいきました:
DirectCast(<AutoElementName>.GetCurrentPropertyValue(AutomationElement.ControlTypeProperty), ControlType).LocalizedControlType
于 2020-04-29T16:31:15.473 に答える