External/Aga.Controls/Tree/NodeControls/DrawEventArgs.cs
author StephaneLenclud
Tue, 03 Feb 2015 10:14:18 +0100
branchMiniDisplay
changeset 450 f2d8620e2434
permissions -rw-r--r--
Rebracer update.
     1 using System;
     2 using System.Collections.Generic;
     3 using System.Text;
     4 using System.Drawing;
     5 
     6 namespace Aga.Controls.Tree.NodeControls
     7 {
     8 	public class DrawEventArgs : NodeEventArgs
     9 	{
    10 		private DrawContext _context;
    11 		public DrawContext Context
    12 		{
    13 			get { return _context; }
    14 		}
    15 
    16 		private Brush _textBrush;
    17 		[Obsolete("Use TextColor")]
    18 		public Brush TextBrush
    19 		{
    20 			get { return _textBrush; }
    21 			set { _textBrush = value; }
    22 		}
    23 
    24 		private Brush _backgroundBrush;
    25 		public Brush BackgroundBrush
    26 		{
    27             get { return _backgroundBrush; }
    28 			set { _backgroundBrush = value; }
    29 		}
    30 
    31 		private Font _font;
    32 		public Font Font
    33 		{
    34 			get { return _font; }
    35 			set { _font = value; }
    36 		}
    37 
    38 		private Color _textColor;
    39 		public Color TextColor
    40 		{
    41 			get { return _textColor; }
    42 			set { _textColor = value; }
    43 		}
    44 
    45 		private string _text;
    46 		public string Text
    47 		{
    48 			get { return _text; }
    49 			set { _text = value; }
    50 		}
    51 
    52 
    53 		private EditableControl _control;
    54 		public EditableControl Control
    55 		{
    56 			get { return _control; }
    57 		}
    58 
    59 		public DrawEventArgs(TreeNodeAdv node, EditableControl control, DrawContext context, string text)
    60 			: base(node)
    61 		{
    62 			_control = control;
    63 			_context = context;
    64 			_text = text;
    65 		}
    66 	}
    67 }