External/Aga.Controls/Tree/NodeControls/DrawEventArgs.cs
author moel.mich
Sat, 08 Jun 2013 17:06:00 +0000
changeset 392 4b43228a9894
permissions -rw-r--r--
Some modifications to the OxyPlot library to back-port to .NET 2.0. Added the LINQBridge library for the LINQ based code in OxyPlot (the original .NET LINQ is not available in .NET 2.0).
moel@345
     1
using System;
moel@345
     2
using System.Collections.Generic;
moel@345
     3
using System.Text;
moel@345
     4
using System.Drawing;
moel@345
     5
moel@345
     6
namespace Aga.Controls.Tree.NodeControls
moel@345
     7
{
moel@345
     8
	public class DrawEventArgs : NodeEventArgs
moel@345
     9
	{
moel@345
    10
		private DrawContext _context;
moel@345
    11
		public DrawContext Context
moel@345
    12
		{
moel@345
    13
			get { return _context; }
moel@345
    14
		}
moel@345
    15
moel@345
    16
		private Brush _textBrush;
moel@345
    17
		[Obsolete("Use TextColor")]
moel@345
    18
		public Brush TextBrush
moel@345
    19
		{
moel@345
    20
			get { return _textBrush; }
moel@345
    21
			set { _textBrush = value; }
moel@345
    22
		}
moel@345
    23
moel@345
    24
		private Brush _backgroundBrush;
moel@345
    25
		public Brush BackgroundBrush
moel@345
    26
		{
moel@345
    27
            get { return _backgroundBrush; }
moel@345
    28
			set { _backgroundBrush = value; }
moel@345
    29
		}
moel@345
    30
moel@345
    31
		private Font _font;
moel@345
    32
		public Font Font
moel@345
    33
		{
moel@345
    34
			get { return _font; }
moel@345
    35
			set { _font = value; }
moel@345
    36
		}
moel@345
    37
moel@345
    38
		private Color _textColor;
moel@345
    39
		public Color TextColor
moel@345
    40
		{
moel@345
    41
			get { return _textColor; }
moel@345
    42
			set { _textColor = value; }
moel@345
    43
		}
moel@345
    44
moel@345
    45
		private string _text;
moel@345
    46
		public string Text
moel@345
    47
		{
moel@345
    48
			get { return _text; }
moel@345
    49
			set { _text = value; }
moel@345
    50
		}
moel@345
    51
moel@345
    52
moel@345
    53
		private EditableControl _control;
moel@345
    54
		public EditableControl Control
moel@345
    55
		{
moel@345
    56
			get { return _control; }
moel@345
    57
		}
moel@345
    58
moel@345
    59
		public DrawEventArgs(TreeNodeAdv node, EditableControl control, DrawContext context, string text)
moel@345
    60
			: base(node)
moel@345
    61
		{
moel@345
    62
			_control = control;
moel@345
    63
			_context = context;
moel@345
    64
			_text = text;
moel@345
    65
		}
moel@345
    66
	}
moel@345
    67
}