Changeset 10650 for branches/HeuristicLab.EvolutionTracking/HeuristicLab.EvolutionTracking.Views/3.4/VisualGenealogyGraphTextLabel.cs
- Timestamp:
- 03/24/14 16:59:22 (11 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/HeuristicLab.EvolutionTracking/HeuristicLab.EvolutionTracking.Views/3.4/VisualGenealogyGraphTextLabel.cs
r10271 r10650 5 5 namespace HeuristicLab.EvolutionTracking.Views { 6 6 public class VisualGenealogyGraphTextLabel : Rectangle { 7 private string text;8 public string Text { get { return text; } set { text = value; } }9 10 private Font font;11 public Font Font { get { return font; } set { font = value; } }7 // private string text; 8 // public string Text { get { return text; } set { text = value; } } 9 // 10 // private Font font; 11 // public Font Font { get { return font; } set { font = value; } } 12 12 13 13 private Brush fontBrush; … … 32 32 33 33 float fontSize = s.Height; 34 font = new Font(font.Name, fontSize, Font.Style, GraphicsUnit.Pixel);35 graphics.DrawString( text, font, fontBrush, p.X, p.Y);34 var font = new Font(Font.Name, fontSize, Font.Style, GraphicsUnit.Pixel); 35 graphics.DrawString(Text, font, fontBrush, p.X, p.Y); 36 36 } 37 37
Note: See TracChangeset
for help on using the changeset viewer.