AutomationProperties.SetAutomationControlType Metode
Definisi
Penting
Beberapa informasi terkait produk prarilis yang dapat diubah secara signifikan sebelum dirilis. Microsoft tidak memberikan jaminan, tersirat maupun tersurat, sehubungan dengan informasi yang diberikan di sini.
Mengatur nilai properti terlampir AutomationProperties.AutomationControlType untuk DependencyObject yang ditentukan.
public:
static void SetAutomationControlType(UIElement ^ element, AutomationControlType value);
static void SetAutomationControlType(UIElement const& element, AutomationControlType const& value);
public static void SetAutomationControlType(UIElement element, AutomationControlType value);
function setAutomationControlType(element, value)
Public Shared Sub SetAutomationControlType (element As UIElement, value As AutomationControlType)
Parameter
- element
- UIElement
DependencyObject untuk mengatur properti.
- value
- AutomationControlType
Jenis kontrol Automation UI yang akan diatur.
Persyaratan Windows
Rangkaian perangkat |
Windows 11 (diperkenalkan dalam 10.0.22000.0)
|
API contract |
Windows.Foundation.UniversalApiContract (diperkenalkan dalam v14.0)
|