Ejemplo n.º 1
0
		public void SetLabel (string text, BitmapFont font) {
			if (_label != null)
				this.RemoveView (_label);
			_label = new Label (text, font);
			_label.Color = System.Drawing.Color.White;
			_label.HorizontalAlignment = HorizontalAlignment.Center;
			_label.VerticalAlignment = VerticalAlignment.Middle;
			this.AddView (_label);
		}
Ejemplo n.º 2
0
		public void SetLabel (string text, BitmapFont font, HorizontalAlignment halign, VerticalAlignment valign) {
			if (_label != null)
				this.RemoveView (_label);
			_label = new Label (text, font);
			_label.Color = System.Drawing.Color.White;
			_label.HorizontalAlignment = halign;
			_label.VerticalAlignment = valign;
			this.AddView (_label);
		}