Export (0) Print
Expand All

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)

IEnumerable<IComment> OwnedComments { get; }

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

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

Show:
© 2014 Microsoft