Udostępnij za pośrednictwem


Metoda ShapeElement.CreateDecorators —

Tworzy to zbiór pracowników dla typu kształtu.

Przestrzeń nazw:  Microsoft.VisualStudio.Modeling.Diagrams
Zestaw:  Microsoft.VisualStudio.Modeling.Sdk.Diagrams.12.0 (w Microsoft.VisualStudio.Modeling.Sdk.Diagrams.12.0.dll)

Składnia

'Deklaracja
Protected Function CreateDecorators As List(Of Decorator)
protected List<Decorator> CreateDecorators()

Wartość zwracana

Typ: System.Collections.Generic.List<Decorator>
Zbiór pracowników dla typu kształtu.

Uwagi

Ta metoda wywołuje InitializeDecorators() po uruchamianiu pustą kolekcją ozdobna.Podobnie jak pola kształtu pracowników są na typem skonkretyzowanym, nie poszczególnych wystąpień.

Przykłady

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; 
}
}

Zabezpieczenia programu .NET Framework

Zobacz też

Informacje

ShapeElement Klasa

Przestrzeń nazw Microsoft.VisualStudio.Modeling.Diagrams