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
'Declaração
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
- shapeFields
Type: System.Collections.Generic.IList<ShapeField>
The list of fields for the compartment shape.
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
- Full trust for the immediate caller. This member cannot be used by partially trusted code. For more information, see Using Libraries from Partially Trusted Code.