Aracılığıyla paylaş


ShapeElement.CreateDecorators Yöntem

Decorators şekil türü için bir topluluğu oluşturur.

Ad alanı:  Microsoft.VisualStudio.Modeling.Diagrams
Derleme:  Microsoft.VisualStudio.Modeling.Sdk.Diagrams.11.0 (Microsoft.VisualStudio.Modeling.Sdk.Diagrams.11.0.dll içinde)

Sözdizimi

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

Dönüş Değeri

Tür: System.Collections.Generic.List<Decorator>
Şekil türü decorators topluluğu.

Notlar

Bu yöntem boş decorator koleksiyon başlatmasını sonra InitializeDecorators() çağırır.Şekli gibi decorators örneklenmiş her türü, değil kopya başına alanlardır.

Örnekler

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

.NET Framework Güvenliği

Ayrıca bkz.

Başvuru

ShapeElement Sınıf

Microsoft.VisualStudio.Modeling.Diagrams Ad Alanı