Merge pull request #799 from kebby/master
[mono.git] / mcs / class / System.Windows.Forms.DataVisualization / System.Windows.Forms.DataVisualization.Charting / LegendItem.cs
1 // Authors:
2 // Francis Fisher (frankie@terrorise.me.uk)
3 //
4 // (C) Francis Fisher 2013
5 //
6 // Permission is hereby granted, free of charge, to any person obtaining
7 // a copy of this software and associated documentation files (the
8 // "Software"), to deal in the Software without restriction, including
9 // without limitation the rights to use, copy, modify, merge, publish,
10 // distribute, sublicense, and/or sell copies of the Software, and to
11 // permit persons to whom the Software is furnished to do so, subject to
12 // the following conditions:
13 // 
14 // The above copyright notice and this permission notice shall be
15 // included in all copies or substantial portions of the Software.
16 // 
17 // THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
18 // EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
19 // MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
20 // NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
21 // LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
22 // OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
23 // WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
24
25 using System.Drawing;
26
27 namespace System.Windows.Forms.DataVisualization.Charting
28 {
29         public class LegendItem : ChartNamedElement
30         {
31                 public LegendItem ()
32                 {
33                         Cells = new LegendCellCollection ();
34                 }
35                 public LegendItem (string name,Color color,string image)
36                 {
37                         this.Name = name;
38                         this.Color = color;
39                         this.Image = image;
40                         Cells = new LegendCellCollection ();
41                 }
42
43                 public GradientStyle BackGradientStyle { get; set; }
44                 public ChartHatchStyle BackHatchStyle { get; set; }
45                 public Color BackImageTransparentColor { get; set; }
46                 public Color BackSecondaryColor { get; set; }
47                 public Color BorderColor { get; set; }
48                 public ChartDashStyle BorderDashStyle { get; set; }
49                 public int BorderWidth { get; set; }
50                 public LegendCellCollection Cells { get; private set; }
51                 public Color Color { get; set; }
52                 public bool Enabled { get; set; }
53                 public string Image { get; set; }
54                 public LegendImageStyle ImageStyle { get; set; }
55                 public Legend Legend { get; private set;}
56                 public Color MarkerBorderColor { get; set; }
57                 public int MarkerBorderWidth { get; set; }
58                 public Color MarkerColor { get; set; }
59                 public string MarkerImage { get; set; }
60                 public Color MarkerImageTransparentColor { get; set; }
61                 public int MarkerSize { get; set; }
62                 public MarkerStyle MarkerStyle { get; set; }
63                 public override string Name { get; set; }
64                 public Color SeparatorColor { get; set; }
65                 public LegendSeparatorStyle SeparatorType { get; set; }
66                 public string SeriesName { get; set; }
67                 public int SeriesPointIndex { get; set; }
68                 public Color ShadowColor { get; set; }
69                 public int ShadowOffset { get; set; }
70                 public string ToolTip { get; set; }
71         }
72 }