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.Sdk.Diagrams.dll)

Syntax

'宣言
Public Overridable Function GetPen ( _
    view As DiagramClientView, _
    parentShape As ShapeElement, _
    ByRef oldColor As Color _
) As Pen
'使用
Dim instance As ShapeField
Dim view As DiagramClientView
Dim parentShape As ShapeElement
Dim oldColor As Color
Dim returnValue As Pen

returnValue = instance.GetPen(view, parentShape, _
    oldColor)
public virtual Pen GetPen(
    DiagramClientView view,
    ShapeElement parentShape,
    ref Color oldColor
)
public:
virtual Pen^ GetPen(
    DiagramClientView^ view, 
    ShapeElement^ parentShape, 
    Color% oldColor
)
public function GetPen(
    view : DiagramClientView, 
    parentShape : ShapeElement, 
    oldColor : Color
) : Pen

Parameters

Return Value

Type: System.Drawing.Pen

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

Permissions

See Also

Reference

ShapeField Class

ShapeField Members

Microsoft.VisualStudio.Modeling.Diagrams Namespace