ShapeField::GetPenId Method (ShapeElement^)
Visual Studio 2015
Gets the ID of the pen that draws the shape element to which the shape field is assigned.
Assembly: Microsoft.VisualStudio.Modeling.Sdk.Diagrams.12.0 (in Microsoft.VisualStudio.Modeling.Sdk.Diagrams.12.0.dll)
Parameters
- parentShape
-
Type:
Microsoft.VisualStudio.Modeling.Diagrams::ShapeElement^
The shape element to which the shape field is assigned.
Return Value
Type: Microsoft.VisualStudio.Modeling.Diagrams::StyleSetResourceId^The ID of the pen that draws the shape element to which the shape field is assigned.
By default, this method returns the default pen id. To dynamically change the pen for this ShapeField, override this method.
Show: