public PaletteDataGridViewContentStates(IPaletteContent inherit,
NeedPaintHandler needPaint)
{
Debug.Assert(inherit != null);
// Remember inheritance
_inherit = inherit;
// Store the provided paint notification delegate
NeedPaint = needPaint;
// Default the initial values
_draw = InheritBool.Inherit;
_hint = PaletteTextHint.Inherit;
_trim = PaletteTextTrim.Inherit;
_color1 = Color.Empty;
_color2 = Color.Empty;
_colorStyle = PaletteColorStyle.Inherit;
_colorAlign = PaletteRectangleAlign.Inherit;
_colorAngle = -1;
_imageStyle = PaletteImageStyle.Inherit;
_imageAlign = PaletteRectangleAlign.Inherit;
_multiLine = InheritBool.Inherit;
_multiLineH = PaletteRelativeAlign.Inherit;
}