This documentation is archived and is not being maintained.

ShapeElement.CreateDecorators Method

Creates a collection of decorators for the shape type.

Namespace: Microsoft.VisualStudio.Modeling.Diagrams
Assembly: Microsoft.VisualStudio.Modeling.Sdk.Diagrams (in microsoft.visualstudio.modeling.diagrams.dll)

protected List<Decorator> CreateDecorators ()
protected List<Decorator> CreateDecorators ()
protected function CreateDecorators () : List<Decorator>

Return Value

A collection of decorators for the shape type.

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: