ISelectionProvider Antarmuka

Definisi

Mengekspos metode dan properti untuk mendukung akses klien UI Automation ke kontrol yang bertindak sebagai kontainer untuk kumpulan item turunan individual yang dapat dipilih. Anak kontrol ini harus menerapkan ISelectionItemProvider.

public interface class ISelectionProvider
[System.Runtime.InteropServices.ComVisible(true)]
[System.Runtime.InteropServices.Guid("fb8b03af-3bdf-48d4-bd36-1a65793be168")]
[System.Runtime.InteropServices.InterfaceType(System.Runtime.InteropServices.ComInterfaceType.InterfaceIsIUnknown)]
public interface ISelectionProvider
public interface ISelectionProvider
[<System.Runtime.InteropServices.ComVisible(true)>]
[<System.Runtime.InteropServices.Guid("fb8b03af-3bdf-48d4-bd36-1a65793be168")>]
[<System.Runtime.InteropServices.InterfaceType(System.Runtime.InteropServices.ComInterfaceType.InterfaceIsIUnknown)>]
type ISelectionProvider = interface
type ISelectionProvider = interface
Public Interface ISelectionProvider
Turunan
Atribut

Keterangan

Diterapkan pada penyedia UI Automation yang harus mendukung pola kontrol SelectionPattern.

Properti

Nama Deskripsi
CanSelectMultiple

Mendapatkan nilai yang menentukan apakah penyedia UI Automation memungkinkan lebih dari satu elemen anak dipilih secara bersamaan.

IsSelectionRequired

Mendapatkan nilai yang menentukan apakah penyedia UI Automation memerlukan setidaknya satu elemen turunan untuk dipilih.

Metode

Nama Deskripsi
GetSelection()

Mengambil penyedia UI Automation untuk setiap elemen anak yang dipilih.

Berlaku untuk

Lihat juga