ShapeElement.InitializeShapeFields Method

Initializes the list of fields that represent parts of the shape such as labels, icons, rows of text, and background images. Called once per class.

Namespace:  Microsoft.VisualStudio.Modeling.Diagrams
Assembly:  Microsoft.VisualStudio.Modeling.Sdk.Diagrams (in Microsoft.VisualStudio.Modeling.Sdk.Diagrams.dll)

Syntax

'Declaration
Protected Overridable Sub InitializeShapeFields ( _
    shapeFields As IList(Of ShapeField) _
)
'Usage
Dim shapeFields As IList(Of ShapeField)

Me.InitializeShapeFields(shapeFields)
protected virtual void InitializeShapeFields(
    IList<ShapeField> shapeFields
)
protected:
virtual void InitializeShapeFields(
    IList<ShapeField^>^ shapeFields
)
protected function InitializeShapeFields(
    shapeFields : IList<ShapeField>
)

Parameters

Remarks

To add or modify the shape fields for this shape class, you can override this method. You must set the Generates Double Derived property of the shape class in the DSL Definition.

This method is called once to initialize the class. It is not called for each instance.

For an example, see ImageField.

.NET Framework Security

See Also

Reference

ShapeElement Class

ShapeElement Members

Microsoft.VisualStudio.Modeling.Diagrams Namespace