Share via


RibbonGalleryAutomationPeer.ISelectionProvider.GetSelection Method

Retrieves a UI Automation provider for each child element that is selected.

Namespace:  Microsoft.Windows.Automation.Peers
Assembly:  RibbonControlsLibrary (in RibbonControlsLibrary.dll)

Syntax

'Declaration
Private Function GetSelection As IRawElementProviderSimple()
    Implements ISelectionProvider.GetSelection
IRawElementProviderSimple[] ISelectionProvider.GetSelection()
private:
virtual array<IRawElementProviderSimple^>^ GetSelection() sealed = ISelectionProvider::GetSelection
private abstract GetSelection : unit -> IRawElementProviderSimple[] 
private override GetSelection : unit -> IRawElementProviderSimple[] 
JScript does not support explicit interface implementations.

Return Value

Type: System.Windows.Automation.Provider.IRawElementProviderSimple[]
An AutomationPeer for each child element that is selected.

Implements

ISelectionProvider.GetSelection()

Remarks

This member is an explicit interface member implementation. It can be used only when the RibbonGalleryAutomationPeer instance is cast to an ISelectionProvider interface.

.NET Framework Security

See Also

Reference

RibbonGalleryAutomationPeer Class

Microsoft.Windows.Automation.Peers Namespace