Page 1 of 1

PropertyGrid filter

Posted: Tue Jul 06, 2010 1:59 pm
by Kaouthar
Hello everybody,
First, I want to indicate that I’m a beginner with your libraries.
I saw you annotation demo.
Actually I want to make something like that with some modifications. I tried to make invisible some properties existing in the Property Grid but I couldn’t.
Like I said I’m a beginner and I do my best to success my first project with vintasoft. So I ask your help please.
Thanks

Re: PropertyGrid filter

Posted: Wed Jul 07, 2010 8:08 am
by Alex
Hello,

You can create derived class and "hide" unnecessary properties.

Here is an example:

Code: Select all

using System;
using System.ComponentModel;
using Vintasoft.Annotation;

namespace AnnotationDemo
{
    public class MyTextAnnotation : TextAnnotation
    {
        [Browsable(false)]
        public new string Text
        {
            get { return base.Text; }
            set { base.Text = value; }
        }
    }
}
Best regards, Alexander

Re: PropertyGrid filter

Posted: Wed Jul 07, 2010 12:47 pm
by Kaouthar
Thanks Alex for your post
I will try it now