ShapeElement::CreateDecorators Method ()
Visual Studio 2015
Creates a collection of decorators for the shape type.
Assembly: Microsoft.VisualStudio.Modeling.Sdk.Diagrams.12.0 (in Microsoft.VisualStudio.Modeling.Sdk.Diagrams.12.0.dll)
This method calls InitializeDecorators() after instantiating an empty decorator collection. Like shape fields, decorators are instantiated per-type, not per-instance.
public override global::System.Collections.Generic.IList<DslDiagrams::Decorator> Decorators { get { if(decorators == null) { decorators = CreateDecorators(); // fire this event to allow the diagram to initialize decorator mappings for this shape type. if(DecoratorsInitialized != null) { DecoratorsInitialized(this, global::System.EventArgs.Empty); } } return decorators; } }
Show: