Label.OnCreateAutomationPeer 方法

定義

LabelAutomationPeer為此控制項提供適當的實作為 WPF 基礎結構的一部分。Provides an appropriate LabelAutomationPeer implementation for this control, as part of the WPF infrastructure.

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

傳回

AutomationPeer

因型別而異的 AutomationPeer 實作。The type-specific AutomationPeer implementation.

適用於