RibbonAutomationPeer 類別
定義
重要
部分資訊涉及發行前產品,在發行之前可能會有大幅修改。 Microsoft 對此處提供的資訊,不做任何明確或隱含的瑕疵擔保。
將 Ribbon 類型公開至 UI 自動化。
public ref class RibbonAutomationPeer : System::Windows::Automation::Peers::SelectorAutomationPeer, System::Windows::Automation::Provider::IExpandCollapseProvider, System::Windows::Automation::Provider::ISelectionProvider
public class RibbonAutomationPeer : System.Windows.Automation.Peers.SelectorAutomationPeer, System.Windows.Automation.Provider.IExpandCollapseProvider, System.Windows.Automation.Provider.ISelectionProvider
type RibbonAutomationPeer = class
inherit SelectorAutomationPeer
interface IExpandCollapseProvider
interface ISelectionProvider
Public Class RibbonAutomationPeer
Inherits SelectorAutomationPeer
Implements IExpandCollapseProvider, ISelectionProvider
- 繼承
- 實作
建構函式
RibbonAutomationPeer(Ribbon) |
初始化 RibbonAutomationPeer 類別的新執行個體。 |
屬性
Dispatcher |
取得與這個 Dispatcher 關聯的 DispatcherObject。 (繼承來源 DispatcherObject) |
EventsSource |
取得或設定 AutomationPeer,其報告至自動化用戶端,作為所有來自此 AutomationPeer 的事件來源。 (繼承來源 AutomationPeer) |
ExpandCollapseState |
取得與這個 RibbonAutomationPeer 相關聯之控制項的狀態 (展開或摺疊)。 |
IsHwndHost |
取得值,這個值表示是否與 WPF Windows Presentation Foundation (中這個 AutomationPeer 主機 |
IsVirtualized |
取得值,指出針對未模擬化的子系項目,ItemsControlAutomationPeer 是否應該傳回 AutomationPeer 物件。 (繼承來源 ItemsControlAutomationPeer) |
Owner |
取得與 UIElementAutomationPeer 相關聯的 UIElement。 (繼承來源 UIElementAutomationPeer) |
方法
明確介面實作
IItemContainerProvider.FindItemByProperty(IRawElementProviderSimple, Int32, Object) |
依指定的屬性值擷取項目。 (繼承來源 ItemsControlAutomationPeer) |
ISelectionProvider.CanSelectMultiple |
取得值,這個值指定 Ribbon 是否允許同時選取一個以上的子項目。 |
ISelectionProvider.GetSelection() |
這個類型或成員支援 Windows Presentation Foundation (WPF) 基礎結構,而且不能從程式碼直接使用。 (繼承來源 SelectorAutomationPeer) |
ISelectionProvider.IsSelectionRequired |
取得值,指定是否Ribbon需要選擇至少一個子元素。 |
適用於
意見反應
https://aka.ms/ContentUserFeedback。
即將登場:在 2024 年,我們將逐步淘汰 GitHub 問題作為內容的意見反應機制,並將它取代為新的意見反應系統。 如需詳細資訊,請參閱:提交並檢視相關的意見反應