Partager via


ShapeElement.InitializeDecorators Method

Definition

Instantiates and adds shape fields (such as text and images) to this shape type.

protected:
 virtual void InitializeDecorators(System::Collections::Generic::IList<Microsoft::VisualStudio::Modeling::Diagrams::ShapeField ^> ^ shapeFields, System::Collections::Generic::IList<Microsoft::VisualStudio::Modeling::Diagrams::Decorator ^> ^ decorators);
protected virtual void InitializeDecorators (System.Collections.Generic.IList<Microsoft.VisualStudio.Modeling.Diagrams.ShapeField> shapeFields, System.Collections.Generic.IList<Microsoft.VisualStudio.Modeling.Diagrams.Decorator> decorators);
abstract member InitializeDecorators : System.Collections.Generic.IList<Microsoft.VisualStudio.Modeling.Diagrams.ShapeField> * System.Collections.Generic.IList<Microsoft.VisualStudio.Modeling.Diagrams.Decorator> -> unit
override this.InitializeDecorators : System.Collections.Generic.IList<Microsoft.VisualStudio.Modeling.Diagrams.ShapeField> * System.Collections.Generic.IList<Microsoft.VisualStudio.Modeling.Diagrams.Decorator> -> unit
Protected Overridable Sub InitializeDecorators (shapeFields As IList(Of ShapeField), decorators As IList(Of Decorator))

Parameters

shapeFields
IList<ShapeField>

List containing shape fields for this type. This list must be initialized prior to calling InitializeDecorators.

decorators
IList<Decorator>

List that should be filled by this method with decorators for this shape type.

Remarks

Override this method to add decorators to this shape type. Decorators wrap shape fields, and may appear either inside or outside of the bounds of a shape (shape fields are restricted to appearing within a shape).

Applies to