ISelectionItemProvider.Select Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Deselects any selected items and then selects the current element.
public:
void Select();
public void Select ();
abstract member Select : unit -> unit
Public Sub Select ()
Examples
The following example code clears all items from the collection of selected items and then adds this one.
/// <summary>
/// Selects the item.
/// </summary>
/// <remarks>
/// selectedItems is the collection of selected ListItems.
/// </remarks>
public void Select()
{
selectedItems.Clear();
selectedItems.Add(this);
// TODO: Update UI.
}
''' <summary>
''' Selects the item.
''' </summary>
''' <remarks>
''' selectedItems is the collection of selected ListItems.
''' </remarks>
Public Sub [Select]() Implements ISelectionItemProvider.Select
selectedItems.Clear()
selectedItems.Add(Me)
' TODO: Update UI.
End Sub
Applies to
See also
التعاون معنا على GitHub
يمكن العثور على مصدر هذا المحتوى على GitHub حيث يمكنك أيضاً إضافة مشاكل وطلبات سحب ومراجعتها. للحصول على معلومات إضافية، اطلع على دليل المساهم لدينا.