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
view
Type: Microsoft.VisualStudio.Modeling.Diagrams.DiagramClientViewThe diagram client view.
parentShape
Type: Microsoft.VisualStudio.Modeling.Diagrams.ShapeElementThe shape element to which the shape field is assigned.
oldColor
Type: System.Drawing.Color%The color of the pen that is being used for the shape field.
Return Value
Type: System.Drawing.Pen
The pen that draws the shape element to which the shape field is assigned.
Permissions
- 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.