public RichLabel(ControlBase parent) : base(parent) { Control.RichLabel label = new Control.RichLabel(this); label.SetBounds(10, 10, 400, 200); f1 = new Font(Skin.Renderer, "Arial", 15); label.AddText("This test uses Arial 15, Red. Padding. ", Color.Red, f1); f2 = new Font(Skin.Renderer, "Times New Roman Bold", 20); label.AddText("This text uses Times New Roman Bold 20, Green. Padding. ", Color.Green, f2); f3 = new Font(Skin.Renderer, "Courier New Italic", 15); label.AddText("This text uses Courier New Italic 15, Blue. Padding. ", Color.Blue, f3); label.AddLineBreak(); label.AddText("This test uses Arial 15, Magenta. Padding. ", Color.Magenta, f1); }
public RichLabel(ZGE.Components.ZComponent parent) : base(parent) { Control.RichLabel label = new Control.RichLabel(this); label.SetBounds(10, 10, 400, 200); f1 = new Font(Skin.Renderer, "Arial", 15); label.AddText("This test uses Arial 15, Red. Padding. ", Color.Red, f1); f2 = new Font(Skin.Renderer, "Times New Roman Bold", 20); label.AddText("This text uses Times New Roman Bold 20, Green. Padding. ", Color.Green, f2); f3 = new Font(Skin.Renderer, "Courier New Italic", 15); label.AddText("This text uses Courier New Italic 15, Blue. Padding. ", Color.Blue, f3); label.AddLineBreak(); label.AddText("This test uses Arial 15, Magenta. Padding. ", Color.Magenta, f1); }
public RichLabel(Base parent) : base(parent) { Control.RichLabel label = new Control.RichLabel(this); label.SetBounds(10, 10, 400, 200); f1 = new Font(Skin.Renderer, "Arial", 15); label.AddText("This test uses Arial 15, Red. Padding. ", Color.Red, f1); f2 = new Font(Skin.Renderer, "Times New Roman", 20, FontStyle.Bold); label.AddText("This text uses Times New Roman Bold 20, Green. Padding. ", Color.Green, f2); f3 = new Font(Skin.Renderer, "Courier New", 15, FontStyle.Italic); label.AddText("This text uses Courier New Italic 15, Blue. Padding. ", Color.Blue, f3); label.AddLineBreak(); label.AddText("This test uses Arial 15 Bold Italic Strikethrough, Magenta. Padding. ", Color.Magenta, new Font(Skin.Renderer, "Arial", 15, FontStyle.Bold | FontStyle.Italic | FontStyle.StrikeThrough)); }
public RichLabel(ControlBase parent) : base(parent) { Control.RichLabel label = new Control.RichLabel(this); label.SetBounds(10, 10, 600, 400); f1 = new Font(Skin.Renderer, "Arial", 15); label.AddText("This test uses Arial 15, Red. Padding.\n", Color.Red, f1); f2 = new Font(Skin.Renderer, "Times New Roman", 20, FontStyle.Bold); label.AddText("This text uses Times New Roman Bold 20, Green. Padding.\n", Color.Green, f2); f3 = new Font(Skin.Renderer, "Courier New", 15, FontStyle.Italic); label.AddText("This text uses Courier New Italic 15, Blue. Padding.\n", Color.Blue, f3); f4 = new Font(Skin.Renderer, "Arial", 15, FontStyle.Underline); label.AddText("This text uses Arial Underline 15, Red. Padding.\n", Color.Red, f4); f5 = new Font(Skin.Renderer, "Times New Roman", 15, FontStyle.Strikeout); label.AddText("This text uses Times New Roman Strikeout 15, Green. Padding.\n", Color.Green, f5); f6 = new Font(Skin.Renderer, "Courier New", 15, FontStyle.Italic | FontStyle.Bold | FontStyle.Underline | FontStyle.Strikeout); label.AddText("This text uses Courier New <All Styles> 15, Blue. Padding.\n", Color.Blue, f6); }