Annotation.Anchors 屬性

定義

取得一組零個或多個 AnnotationResource 錨點元素,定義被註解的資料選擇。

public:
 property System::Collections::ObjectModel::Collection<System::Windows::Annotations::AnnotationResource ^> ^ Anchors { System::Collections::ObjectModel::Collection<System::Windows::Annotations::AnnotationResource ^> ^ get(); };
public System.Collections.ObjectModel.Collection<System.Windows.Annotations.AnnotationResource> Anchors { get; }
member this.Anchors : System.Collections.ObjectModel.Collection<System.Windows.Annotations.AnnotationResource>
Public ReadOnly Property Anchors As Collection(Of AnnotationResource)

屬性值

一組零個或多個 AnnotationResource 錨點元素。

備註

集合中的AnnotationResource每個Anchors標註都標示一個標註所綁定的資料選擇(換句話說,就是「被註解的資料選擇」)。 雖然大多數註解只指涉單一資料選擇且僅包含一個錨點 AnnotationResource,但若單一註解涉及多個資料選擇,則可能出現多個錨點。

回傳 Anchors 的集合從不會是空的;然而,集合中可以包含零元素。

適用於