public PaletteInputControlContentStates ( IPaletteContent inherit, NeedPaintHandler needPaint ) : System | ||
inherit | IPaletteContent | Source for inheriting defaulted values. |
needPaint | NeedPaintHandler | Delegate for notifying paint requests. |
Résultat | System |
public PaletteInputControlContentStates(IPaletteContent inherit,
NeedPaintHandler needPaint)
{
Debug.Assert(inherit != null);
// Remember inheritance
_inherit = inherit;
// Store the provided paint notification delegate
NeedPaint = needPaint;
// Default the initial values
_font = null;
_color1 = Color.Empty;
_padding = CommonHelper.InheritPadding;
}