ShapeElement.CreateDecorators Method
Creates a collection of decorators for the shape type.
Assembly: Microsoft.VisualStudio.Modeling.Sdk.Diagrams.10.0 (in Microsoft.VisualStudio.Modeling.Sdk.Diagrams.10.0.dll)
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; } }
- Full trust for the immediate caller. This member cannot be used by partially trusted code. For more information, see Using Libraries from Partially Trusted Code.