Udostępnij za pośrednictwem


PenDescriptor Class

Definition

PenDescriptor class holds the PenStyleSetInfo for a class and an instance of the Pen described by that info (if it's already been created). The PenDescriptor is what gets cached for later use.

public ref class PenDescriptor
public class PenDescriptor
type PenDescriptor = class
Public Class PenDescriptor
Inheritance
PenDescriptor

Constructors

PenDescriptor(PenStyleSetInfo)

Constructor that creates a descriptor based on a specified PenStyleSetInfo.

Properties

Pen

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.

PenStyleSetInfo

Gets the Pen information for this descriptor.

Applies to