TreeViewItem.IsSelectionActive Properti
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.
Mendapatkan nilai yang menunjukkan apakah kontainer TreeView memiliki fokus keyboard.
public:
property bool IsSelectionActive { bool get(); };
[System.ComponentModel.Browsable(false)]
public bool IsSelectionActive { get; }
[<System.ComponentModel.Browsable(false)>]
member this.IsSelectionActive : bool
Public ReadOnly Property IsSelectionActive As Boolean
Nilai Properti
true jika yang berisi TreeView memiliki fokus keyboard; jika tidak, false. Defaultnya adalah false.
- Atribut
Contoh
Contoh berikut menunjukkan cara mendapatkan nilai IsSelectionActive properti.
bool isEmployee1Active = Employee1Data.IsSelectionActive;
Dim isEmployee1Active As Boolean = Employee1Data.IsSelectionActive
Keterangan
Jika keyboard mengubah fokus dari ke TreeViewMenu atau ToolBar, nilai properti ini tetap true.
Informasi Properti Dependensi
| Item | Nilai |
|---|---|
| Bidang pengidentifikasi | IsSelectionActiveProperty |
Properti metadata diatur ke true |
Inherits |