public override void PaintValue(PaintValueEventArgs e) { ObjectBrush ob = (ObjectBrush)e.Value; e.Graphics.FillRectangle(ob.GetBrush(e.Bounds), e.Bounds); base.PaintValue(e); }
public static bool NotDefault(ObjectBrush ob) { return(ob.Color != defaultBrush.Color || ob.Color2 != defaultBrush.Color2 || ob.Alpha != defaultBrush.Alpha || ob.Alpha2 != defaultBrush.Alpha2 || ob.Angle != defaultBrush.Angle || ob.HatchStyle != defaultBrush.HatchStyle || ob.BrushStyle != defaultBrush.BrushStyle); }
public bool ShouldSerializeTextBrush() { return(ObjectBrush.NotDefault(TextBrush)); }