PropertyGrid filter

Questions, comments and suggestions concerning VintaSoft Annotation .NET Plug-in.

Moderator: Alex

Post Reply
Kaouthar
Posts: 2
Joined: Tue Jul 06, 2010 1:38 pm

PropertyGrid filter

Post 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
Alex
Site Admin
Posts: 2303
Joined: Thu Jul 10, 2008 2:21 pm

Re: PropertyGrid filter

Post 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
Kaouthar
Posts: 2
Joined: Tue Jul 06, 2010 1:38 pm

Re: PropertyGrid filter

Post by Kaouthar »

Thanks Alex for your post
I will try it now
Post Reply