Your Privacy Matters: We use our own and third-party cookies to improve your experience on our website. By continuing to use the website we understand that you accept their use. Cookie Policy
230
Programmatically change the background color of an annotation
posted

Is there a way to change the appearance of an annotation?  I can't seem to find what properties on an Ellipse Annotation control its appearance.

Thanks in advance,
Trevor Braun

  • 28496
    Offline posted

    I think the PE property is what you're looking for:

    EllipseAnnotation anno = new EllipseAnnotation();
    anno.PE.ElementType = PaintElementType.SolidFill;
    anno.PE.Fill = Color.Green;