Partager 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.10.0 (in Microsoft.VisualStudio.Modeling.Sdk.Diagrams.10.0.dll)

Syntax

'Déclaration
Protected Function CreateShapeFields As List(Of ShapeField)
protected List<ShapeField> CreateShapeFields()
protected:
List<ShapeField^>^ CreateShapeFields()
member CreateShapeFields : unit -> List<ShapeField> 
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

Microsoft.VisualStudio.Modeling.Diagrams Namespace