Share via


ShapeElement.CreateShapeFields Method

Creates a collection of shape fields for the shape type.

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

Syntax

'Declaration
Protected Function CreateShapeFields As List(Of ShapeField)
'Usage
Dim returnValue As List(Of ShapeField)

returnValue = Me.CreateShapeFields()
protected List<ShapeField> CreateShapeFields()
protected:
List<ShapeField^>^ CreateShapeFields()
protected function CreateShapeFields() : List<ShapeField>

Return Value

Type: System.Collections.Generic.List<ShapeField>
A collection of shape fields for the shape type.

Remarks

This method calls InitializeShapeFields() after instantiating an empty shape field collection.

Examples

public override global::System.Collections.Generic.IList<DslDiagrams::ShapeField> ShapeFields
{
get
{
if (shapeFields == null)
{
shapeFields = CreateShapeFields();
}
return shapeFields;
}
}

.NET Framework Security

See Also

Reference

ShapeElement Class

ShapeElement Members

Microsoft.VisualStudio.Modeling.Diagrams Namespace