共用方式為


DocumentViewer.OnCreateAutomationPeer 方法

定義

建立並傳回這個 AutomationPeer 控制項的 DocumentViewer

protected:
 override System::Windows::Automation::Peers::AutomationPeer ^ OnCreateAutomationPeer();
protected override System.Windows.Automation.Peers.AutomationPeer OnCreateAutomationPeer ();
override this.OnCreateAutomationPeer : unit -> System.Windows.Automation.Peers.AutomationPeer
Protected Overrides Function OnCreateAutomationPeer () As AutomationPeer

傳回

新的 DocumentViewerAutomationPeer

適用於