VintaSoft Annotation .NET Plug-in Discussions

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

Board index < VintaSoft Imaging < VintaSoft Annotation .NET Plug-in Discussions

We are migrating to new forums engine, no new registration or posting currently available. TIA for your patience.

PropertyGrid filter



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


Re: PropertyGrid filter

Post by Alex »

Hello,

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

Here is an example:
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

Post by Kaouthar »

Thanks Alex for your post
I will try it now


Page 1 from 1: 1