Beispiel #1
0
        public static HTMLSpanElement Label(string Caption, float X, float Y, bool IsBold = false, bool IsTiny = false, bool ac = true)
        {
            var lbl = new HTMLSpanElement()
            {
                className = BaseClass(false, ac)
            };

            lbl.innerHTML = Caption.HtmlEscape();
            lbl.SetLocation(X, Y);
            SetBT(lbl, IsBold, IsTiny);

            return(lbl);
        }
Beispiel #2
0
        public static HTMLSpanElement Label(string c, int X, int Y, int width, bool IsBold = false, bool IsTiny = false, string classr = "", bool ac = true)
        {
            var lbl = new HTMLSpanElement()
            {
                className = classr + BaseClass(!string.IsNullOrWhiteSpace(classr), ac)
            };

            lbl.innerHTML = c.HtmlEscape();
            lbl.SetLocation(X, Y);
            lbl.style.width = width.ToPx();
            SetBT(lbl, IsBold, IsTiny);

            return(lbl);
        }