AdornerLayer.GetAdorners(UIElement) Method

Definition

返回装饰器的数组,这些装饰器绑定到指定的 UIElement 上。Returns an array of adorners that are bound to the specified UIElement.

public:
 cli::array <System::Windows::Documents::Adorner ^> ^ GetAdorners(System::Windows::UIElement ^ element);
public System.Windows.Documents.Adorner[] GetAdorners (System.Windows.UIElement element);
member this.GetAdorners : System.Windows.UIElement -> System.Windows.Documents.Adorner[]
Public Function GetAdorners (element As UIElement) As Adorner()

Parameters

element
UIElement

要检索其装饰器数组的 UIElementThe UIElement to retrieve an array of adorners for.

Returns

Adorner[]

为修饰指定 UIElement 的装饰器数组;如果指定元素上未绑定任何装饰器,则为 null。An array of adorners that decorate the specified UIElement, or null if there are no adorners bound to the specified element.

Applies to