StyleSet.GetPen Method
Retrieves a specific Pen from the StyleSet. If it's not in the current one, it looks up the parent chain to see if it can find it there. This is a singleton. Do not dispose - this will crash! Use immediately. Use GetPenCopy if another pen is needed!
Namespace: Microsoft.VisualStudio.Modeling.Diagrams
Assembly: Microsoft.VisualStudio.Modeling.Sdk.Diagrams.10.0 (in Microsoft.VisualStudio.Modeling.Sdk.Diagrams.10.0.dll)
Syntax
'Declaração
Public Function GetPen ( _
penId As StyleSetResourceId _
) As Pen
public Pen GetPen(
StyleSetResourceId penId
)
public:
Pen^ GetPen(
StyleSetResourceId^ penId
)
member GetPen :
penId:StyleSetResourceId -> Pen
public function GetPen(
penId : StyleSetResourceId
) : Pen
Parameters
- penId
Type: Microsoft.VisualStudio.Modeling.Diagrams.StyleSetResourceId
Id of pen to retrieve.
Return Value
Type: System.Drawing.Pen
.NET Framework Security
- 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.