ShapeElement.InitializeDecorators Method

Definition

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

C++
protected:
 virtual void InitializeDecorators(System::Collections::Generic::IList<Microsoft::VisualStudio::Modeling::Diagrams::ShapeField ^> ^ shapeFields, System::Collections::Generic::IList<Microsoft::VisualStudio::Modeling::Diagrams::Decorator ^> ^ decorators);

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

Product Versions
Visual Studio SDK 2017, 2019, 2022