Exemple #1
0
        /// <summary>
        /// 设置属性
        /// </summary>
        protected override void SetAttributes()
        {
            IonLabel control = this.ControlHost.Content as IonLabel;

            if (control.ShowStyle == EIonLabelStyle.Fixed)
            {
                this.HtmlWriter.AddAttribute("fixed", null);
            }
            else if (control.ShowStyle == EIonLabelStyle.Floating)
            {
                this.HtmlWriter.AddAttribute("floating", null);
            }
            else if (control.ShowStyle == EIonLabelStyle.Stacked)
            {
                this.HtmlWriter.AddAttribute("stacked", null);
            }
            //this.HtmlWriter.AddAttribute("[style.color]", "'" + control.ForeColor.ToString().ToLower() + "'", false);

            base.SetAttributes();
        }
Exemple #2
0
        /// <summary>
        /// 设置子元素
        /// </summary>
        protected override void SetChildElements()
        {
            IonLabel control = this.ControlHost.Content as IonLabel;

            this.HtmlWriter.WriteEncodedText(this.ControlHost.Title);
        }