Partager via


PenDescriptor.Pen Property

Gets a cloned instance of the Pen defined by this descriptor. If the pen has not been previously created, it creates it first. This is a singleton. Do not dispose - this will crash! Use immediately.

Namespace:  Microsoft.VisualStudio.Modeling.Diagrams
Assembly:  Microsoft.VisualStudio.Modeling.Sdk.Diagrams.10.0 (in Microsoft.VisualStudio.Modeling.Sdk.Diagrams.10.0.dll)

Syntax

'Déclaration
Public ReadOnly Property Pen As Pen
    Get
public Pen Pen { get; }
public:
property Pen^ Pen {
    Pen^ get ();
}
member Pen : Pen
function get Pen () : Pen

Property Value

Type: System.Drawing.Pen

.NET Framework Security

See Also

Reference

PenDescriptor Class

Microsoft.VisualStudio.Modeling.Diagrams Namespace