コード例 #1
0
 public GridLabel AddLabel(string text, double location, Orientation orientation, Color? color = null) {
   Brush brush = null;
   if(color.HasValue) {
     brush = new SolidColorBrush(color.Value);
   }
   GridLabel label = new GridLabel(text, location, orientation, brush);
   _gridLabels.Add(label);
   return label;
 }
コード例 #2
0
        public GridLabel AddLabel(string text, double location, Orientation orientation, Color?color = null)
        {
            Brush brush = null;

            if (color.HasValue)
            {
                brush = new SolidColorBrush(color.Value);
            }
            GridLabel label = new GridLabel(text, location, orientation, brush);

            _gridLabels.Add(label);
            return(label);
        }