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
TBrushType
Type of System.Drawing.Brush resources stored in this class.
TPenType
Type of System.Drawing.Pen resources stored in this class.
TImageType
Type of System.Drawing.Image resources stored in this class.
TImageListType
Type of ImageListEx resources stored in this class.
TTextStyleType
Type of
TextStyle
resources stored in this class.
- Inheritance
-
PainterResources<TBrushType, TPenType, TImageType, TImageListType, TTextStyleType>
- Implements
- Derived
Properties
Methods
- Dispose()
Disposes this
PainterResources
and 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.