Class PainterResources<TBrushType, TPenType, TImageType, TImageListType, TTextStyleType>
Represents a base class holds various resources used in drawing surfaces. This class is abstract.
public abstract class PainterResources<TBrushType, TPenType, TImageType, TImageListType, TTextStyleType> : IDisposable where TBrushType : notnull where TPenType : notnull where TImageType : notnull where TImageListType : notnull where TTextStyleType : notnull
Type Parameters
TBrushTypeType of System.Drawing.Brush resources stored in this class.
TPenTypeType of System.Drawing.Pen resources stored in this class.
TImageTypeType of System.Drawing.Image resources stored in this class.
TImageListTypeType of ImageListEx resources stored in this class.
TTextStyleTypeType of
TextStyleresources stored in this class.
- Inheritance
-
PainterResources<TBrushType, TPenType, TImageType, TImageListType, TTextStyleType>
- Implements
- Derived
Constructors
Properties
Methods
- Dispose()
Disposes this
PainterResourcesand frees resources associated with it.
- GetBrush(TBrushType)
Finds stored Brush object accordingly to the specified type or creates a new one if necessary.
- GetImage(TImageType)
Finds stored Image object accordingly to the specified type or creates a new one if necessary.
- GetImageList(TImageListType)
Finds stored ImageList object accordingly to the specified type or creates a new one if necessary.
- GetPen(TPenType)
Finds stored Pen object accordingly to the specified type or creates a new one if necessary.
- GetTextStyle(TTextStyleType)
Finds stored text style object accordingly to the specified type or creates a new one if necessary.