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
- 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.