Source/Design/SimpleItemDesigner.cs

(完整代码) 1KB

using System;
using System.Text;
using System.Collections;
using System.ComponentModel;

namespace DevComponents.DotNetBar.Design
{
    public class SimpleItemDesigner : System.ComponentModel.Design.ComponentDesigner
    {
        protected override void PreFilterProperties(IDictionary properties)
        {
            base.PreFilterProperties(properties);
            properties["Visible"] = TypeDescriptor.CreateProperty(typeof(SimpleItemDesigner), (PropertyDescriptor)properties["Visible"], new Attribute[]
				{
					new DefaultValueAttribute(true),
					new BrowsableAttribute(true),
					new CategoryAttribute("Layout")});
        }

        /// <summary>
        /// Gets or sets whether item is visible.
        /// </summary>
        [DefaultValue(true), Browsable(true), DevCoBrowsable(true), Category("Layout"), Description("Gets or sets whether item is visible.")]
        public bool Visible
        {
            get
            {
                return (bool)ShadowProperties["Visible"];
            }
            set
            {
                // this value is not passed to the actual control
                this.ShadowProperties["Visible"] = value;
            }
        }
    }
}

24 小时内免费解锁 3 个项目,之后 1 算力/个。 规则说明

AI 解读 AI

登录后可用,每次 10 算力,解读结果公开显示在下面。

还没有人解读过这个文件。