This documentation is archived and is not being maintained.

ShapeField.GetPen Method

Gets 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 (in microsoft.visualstudio.modeling.diagrams.dll)

public virtual Pen GetPen (
	DiagramClientView view,
	ShapeElement parentShape,
	ref Color oldColor
)
public Pen GetPen (
	DiagramClientView view, 
	ShapeElement parentShape, 
	/** @ref */ Color oldColor
)
JScript does not support passing value-type arguments by reference.

Parameters

view

The diagram client view.

parentShape

The shape element to which the shape field is assigned.

oldColor

The color of the pen that is currently being used for the shape field.

Return Value

The pen that draws the shape element to which the shape field is assigned.
Show: