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 錨點項目的集合。

備註

集合中的每個 Anchors 都會 AnnotationResource 識別注釋系結至的資料選取範圍 (,換句話說,「要標注的資料選取範圍」) 。 雖然大部分注釋都參考單一資料選取範圍,而且只包含一個錨點 AnnotationResource ,但如果單一批註參考多個資料選取專案,就會發生多個錨點。

傳回的 Anchors 集合永遠不會是 Null;不過,集合可能包含零個元素。

適用於