다음을 통해 공유


StyleSet.GetPen(StyleSetResourceId) Method

Definition

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!

public:
 System::Drawing::Pen ^ GetPen(Microsoft::VisualStudio::Modeling::Diagrams::StyleSetResourceId ^ penId);
public System.Drawing.Pen GetPen (Microsoft.VisualStudio.Modeling.Diagrams.StyleSetResourceId penId);
member this.GetPen : Microsoft.VisualStudio.Modeling.Diagrams.StyleSetResourceId -> System.Drawing.Pen
Public Function GetPen (penId As StyleSetResourceId) As Pen

Parameters

penId
StyleSetResourceId

Id of pen to retrieve.

Returns

Pen

The requested Pen.

Applies to