Share via


CompartmentShape.InitializeShapeFields Method

Initializes the compartments and other fields for the compartment shape. Called once per class.

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

Syntax

'Declaration
Protected Overrides Sub InitializeShapeFields ( _
    shapeFields As IList(Of ShapeField) _
)
protected override void InitializeShapeFields(
    IList<ShapeField> shapeFields
)
protected:
virtual void InitializeShapeFields(
    IList<ShapeField^>^ shapeFields
) override
abstract InitializeShapeFields : 
        shapeFields:IList<ShapeField> -> unit 
override InitializeShapeFields : 
        shapeFields:IList<ShapeField> -> unit 
protected override function InitializeShapeFields(
    shapeFields : IList<ShapeField>
)

Parameters

Remarks

To substitute your own shape fields, you can override this method. You must set the Generates Double Derived property of the shape class in the DSL Definition. For more information, see InitializeShapeFields(IList<ShapeField>)

Examples

For related examples, see ImageField and TextField.

.NET Framework Security

See Also

Reference

CompartmentShape Class

Microsoft.VisualStudio.Modeling.Diagrams Namespace