次の方法で共有


RibbonGalleryAutomationPeer.ISelectionProvider.GetSelection メソッド

選択した各子要素の UI オートメーション プロバイダーを取得します。

名前空間:  Microsoft.Windows.Automation.Peers
アセンブリ:  RibbonControlsLibrary (RibbonControlsLibrary.dll 内)

構文

'宣言
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 では、明示的なインターフェイスの実装はサポートされません。

戻り値

型: System.Windows.Automation.Provider.IRawElementProviderSimple[]
選択された各子要素の AutomationPeer

実装

ISelectionProvider.GetSelection()

解説

このメンバーは、明示的なインターフェイス メンバーの実装です。 これは、RibbonGalleryAutomationPeer のインスタンスが ISelectionProvider インターフェイスにキャストされる場合のみ、使用できます。

.NET Framework セキュリティ

  • 直前の呼び出し元に対する完全な信頼。 このメンバーは、部分的に信頼されているコードから使用することはできません。 詳細については、「部分信頼コードからのライブラリの使用」を参照してください。

参照

参照

RibbonGalleryAutomationPeer クラス

Microsoft.Windows.Automation.Peers 名前空間