Beispiel #1
0
        public override PropertyDescriptorCollection GetProperties(Attribute[] attributes)
        {
            PropertyDescriptorCollection props         = base.GetProperties(attributes);
            List <PropertyDescriptor>    allProperties = new List <PropertyDescriptor>();

            DesignerHelper.AddDefaultProperties(allProperties, props);

            PropertyDescriptor prop = null;

            prop = props.Find("DrawBorder", true);
            allProperties.Add(prop);

            prop = props.Find("ForeColor", true);
            allProperties.Add(prop);

            prop = props.Find("Visible", true);
            allProperties.Add(prop);

            prop = props.Find("FrameColor", true);
            allProperties.Add(prop);

            prop = props.Find("Controls", true);
            allProperties.Add(prop);

            return(new PropertyDescriptorCollection(allProperties.ToArray()));
        }
Beispiel #2
0
        public override PropertyDescriptorCollection GetProperties(Attribute[] attributes)
        {
            PropertyDescriptorCollection props         = base.GetProperties(attributes);
            List <PropertyDescriptor>    allProperties = new List <PropertyDescriptor>();

            DesignerHelper.AddDefaultProperties(allProperties, props);

            PropertyDescriptor prop = null;

            prop = props.Find("ForeColor", true);
            allProperties.Add(prop);

            prop = props.Find("FromPoint", true);
            allProperties.Add(prop);

            prop = props.Find("ToPoint", true);
            allProperties.Add(prop);

            prop = props.Find("StartLineCap", true);
            allProperties.Add(prop);

            prop = props.Find("EndLineCap", true);
            allProperties.Add(prop);

            prop = props.Find("dashLineCap", true);
            allProperties.Add(prop);

            prop = props.Find("DashStyle", true);
            allProperties.Add(prop);

            prop = props.Find("Thickness", true);
            allProperties.Add(prop);

            return(new PropertyDescriptorCollection(allProperties.ToArray()));
        }
 protected override void PostFilterProperties(IDictionary properties)
 {
     DesignerHelper.RemoveProperties(properties);
     string [] s = new string[] { "Visible", "BackColor", "Text", "MaximumSize", "MinimumSize", "Size",
                                  "AutoScaleDimensions", "DataBindings" };
     DesignerHelper.Remove(properties, s);
     base.PostFilterProperties(properties);
 }
        public override PropertyDescriptorCollection GetProperties(Attribute[] attributes)
        {
            PropertyDescriptorCollection props = base.GetProperties(attributes);

            System.Collections.Generic.List <PropertyDescriptor> allProperties = new System.Collections.Generic.List <PropertyDescriptor>();

            DesignerHelper.AddDefaultProperties(allProperties, props);

            PropertyDescriptor prop = null;

            prop = props.Find("ForeColor", true);
            allProperties.Add(prop);

            prop = props.Find("DashStyle", true);
            allProperties.Add(prop);

            prop = props.Find("Thickness", true);
            allProperties.Add(prop);


            return(new PropertyDescriptorCollection(allProperties.ToArray()));
        }
Beispiel #5
0
        public override PropertyDescriptorCollection GetProperties(Attribute[] attributes)
        {
            PropertyDescriptorCollection props         = base.GetProperties(attributes);
            List <PropertyDescriptor>    allProperties = new List <PropertyDescriptor>();


            DesignerHelper.AddDefaultProperties(allProperties, props);

            PropertyDescriptor prop = prop = props.Find("imageFileName", true);

            allProperties.Add(prop);

            prop = props.Find("Image", true);
            allProperties.Add(prop);

            prop = props.Find("ScaleImageToSize", true);
            allProperties.Add(prop);

            prop = props.Find("ImageSource", true);
            allProperties.Add(prop);

            prop = props.Find("ReportFileName", true);
            allProperties.Add(prop);

            prop = props.Find("RelativeFileName", true);
            allProperties.Add(prop);

            prop = props.Find("AbsoluteFileName", true);
            allProperties.Add(prop);

            prop = props.Find("ColumnName", true);
            allProperties.Add(prop);

            prop = props.Find("BaseTableName", true);
            allProperties.Add(prop);

            return(new PropertyDescriptorCollection(allProperties.ToArray()));
        }