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 » Tue Jul 06, 2010 1:59 pm

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: 1464
Joined: Thu Jul 10, 2008 2:21 pm

Re: PropertyGrid filter

Post by Alex » Wed Jul 07, 2010 8:08 am

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 » Wed Jul 07, 2010 12:47 pm

Thanks Alex for your post
I will try it now

Post Reply

Who is online

Users browsing this forum: No registered users and 1 guest