RE: PropertyGrid sees only public properties

Tech-Archive recommends: Fix windows errors by optimizing your registry

From: PIEBALD (PIEBALD_at_discussions.microsoft.com)
Date: 02/09/05


Date: Wed, 9 Feb 2005 07:23:07 -0800


        [System.ComponentModel.CategoryAttribute("Margins"),
        System.ComponentModel.ReadOnlyAttribute(true),
        System.ComponentModel.Description("Margin settings.")]
        public Margins Margins
        {
            get
            {
                return ( this.margins ) ;
            }

            set
            {
                this.margins.Top = value.Top ;
                this.margins.Bottom = value.Bottom ;
                this.margins.Left = value.Left ;
                this.margins.Right = value.Right ;
                this.margins.Gutter = value.Gutter ;
                this.margins.MirrorMargins = value.MirrorMargins ;
            }
        }