예제 #1
0
        public override void PaintValue(PaintValueEventArgs e)
        {
            ObjectBrush ob = (ObjectBrush)e.Value;

            e.Graphics.FillRectangle(ob.GetBrush(e.Bounds), e.Bounds);
            base.PaintValue(e);
        }
예제 #2
0
 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);
 }
예제 #3
0
 public bool ShouldSerializeTextBrush()
 {
     return(ObjectBrush.NotDefault(TextBrush));
 }