1.1 --- /dev/null Thu Jan 01 00:00:00 1970 +0000
1.2 +++ b/External/Aga.Controls/Tree/NodeControls/DrawEventArgs.cs Sun May 27 15:16:19 2012 +0000
1.3 @@ -0,0 +1,67 @@
1.4 +using System;
1.5 +using System.Collections.Generic;
1.6 +using System.Text;
1.7 +using System.Drawing;
1.8 +
1.9 +namespace Aga.Controls.Tree.NodeControls
1.10 +{
1.11 + public class DrawEventArgs : NodeEventArgs
1.12 + {
1.13 + private DrawContext _context;
1.14 + public DrawContext Context
1.15 + {
1.16 + get { return _context; }
1.17 + }
1.18 +
1.19 + private Brush _textBrush;
1.20 + [Obsolete("Use TextColor")]
1.21 + public Brush TextBrush
1.22 + {
1.23 + get { return _textBrush; }
1.24 + set { _textBrush = value; }
1.25 + }
1.26 +
1.27 + private Brush _backgroundBrush;
1.28 + public Brush BackgroundBrush
1.29 + {
1.30 + get { return _backgroundBrush; }
1.31 + set { _backgroundBrush = value; }
1.32 + }
1.33 +
1.34 + private Font _font;
1.35 + public Font Font
1.36 + {
1.37 + get { return _font; }
1.38 + set { _font = value; }
1.39 + }
1.40 +
1.41 + private Color _textColor;
1.42 + public Color TextColor
1.43 + {
1.44 + get { return _textColor; }
1.45 + set { _textColor = value; }
1.46 + }
1.47 +
1.48 + private string _text;
1.49 + public string Text
1.50 + {
1.51 + get { return _text; }
1.52 + set { _text = value; }
1.53 + }
1.54 +
1.55 +
1.56 + private EditableControl _control;
1.57 + public EditableControl Control
1.58 + {
1.59 + get { return _control; }
1.60 + }
1.61 +
1.62 + public DrawEventArgs(TreeNodeAdv node, EditableControl control, DrawContext context, string text)
1.63 + : base(node)
1.64 + {
1.65 + _control = control;
1.66 + _context = context;
1.67 + _text = text;
1.68 + }
1.69 + }
1.70 +}