ILayerContainer::Comments Property
Visual Studio 2015
Get the comments that are contained in this element (not the comments that are linked to it).
Assembly: Microsoft.VisualStudio.ArchitectureTools.Extensibility.Layer (in Microsoft.VisualStudio.ArchitectureTools.Extensibility.Layer.dll)
Property Value
Type: System.Collections.Generic::IEnumerable<ILayerComment^>^This property gets the comments contained within the container - not those that are linked to it.
To obtain the comments that are attached to a layer element, use:
ILayerModel model = diagram.GetLayerModel(); IEnumerable<ILayerComment> comments = model.Comments .Where(comment => comment.Links.Any(link => link.Target == layerElement));
M:Microsoft.VisualStudio.ArchitectureTools.Extensibility.Layer.Extensions.CreateComment
ILayerContainer Interface
Microsoft.VisualStudio.ArchitectureTools.Extensibility.Layer Namespace
Show: