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
'Declaração
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
- 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.