IElement::OwnedComments Property

 

Gets Comments contained in this element (not comments linked to it).

Namespace:   Microsoft.VisualStudio.Uml.Classes
Assembly:  Microsoft.VisualStudio.Uml.Interfaces (in Microsoft.VisualStudio.Uml.Interfaces.dll)

property IEnumerable<IComment^>^ OwnedComments {
	IEnumerable<IComment^>^ get();
}

To get the comments that are linked to an element, use:

IEnumerable <IComment> comments = 
    store.AllInstances<IComment>() 
   .Where(eachComment => 
            eachComment.AnnotatedElements.Contains(element));

Return to top
Show: