ShapeField::GetPenId Method (ShapeElement^)

 

Gets the ID of the pen that draws the shape element to which the shape field is assigned.

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

public:
virtual StyleSetResourceId^ GetPenId(
	ShapeElement^ parentShape
)

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.

Return to top
Show: