RSS订阅优然探索
你的位置:首页 » 未分类 » 正文

用户控件

选择字号: 超大 标准 发布时间:2015-5-29 12:59:20 | 作者:admin | 0个评论 | 人浏览

 


    [Designer(typeof(PagerDesigner))]
    [System.Drawing.ToolboxBitmap(typeof(UsChart), "UsCharts.bmp")]
    public class UsChart : WebControl
    {
        #region 对外提供属性

        [DescriptionAttribute("设置图表的宽度"), DefaultValue("100%"), CategoryAttribute("Chart")]
        public string ChartWidth
        {
            get
            {
                String str = (String)this.ViewState["ChartWidth"];
                if (!string.IsNullOrEmpty(str))
                {
                    return str;
                }
                return "100%";
            }
            set
            {
                this.ViewState["ChartWidth"] = value;
            }
        }
        [DescriptionAttribute("设置图表的高度"), DefaultValue("350px"), CategoryAttribute("Chart")]
        public string ChartHeight
        {
            get
            {
                String str = (String)this.ViewState["ChartHeight"];
                if (!string.IsNullOrEmpty(str))
                {
                    return str;
                }
                return "350px";
            }
            set
            {
                this.ViewState["ChartHeight"] = value;
            }
        }
        [DescriptionAttribute("设置图表的文字"), DefaultValue("图表控件"), CategoryAttribute("Chart")]
        public string ChartDefaultText
        {
            get
            {
                String str = (String)this.ViewState["ChartDefaultText"];
                if (!string.IsNullOrEmpty(str))
                {
                    return str;
                }
                return "图表控件";
            }
            set
            {
                this.ViewState["ChartDefaultText"] = value;
            }
        }

        public bool bIsShowData = false;
        #endregion

标签:

猜你喜欢

发表评论

必填

选填

选填

必填,不填不让过哦,嘻嘻。

记住我,下次回复时不用重新输入个人信息

◎欢迎参与讨论,请在这里发表您的看法、交流您的观点。