GdPicture.NET.14
GdPicture14 Namespace / GdViewer Class / RenderGdPictureAnnots Property
Example





In This Topic
RenderGdPictureAnnots Property (GdViewer)
In This Topic
Specifies whether the GdPicture/XMP annotations, if present, are rendered or not on the document displayed in the GdViewer control.
Syntax
'Declaration
 
Public Property RenderGdPictureAnnots As Boolean
public bool RenderGdPictureAnnots {get; set;}
public read-write property RenderGdPictureAnnots: Boolean; 
public function get,set RenderGdPictureAnnots : boolean
public: __property bool get_RenderGdPictureAnnots();
public: __property void set_RenderGdPictureAnnots( 
   bool value
);
public:
property bool RenderGdPictureAnnots {
   bool get();
   void set (    bool value);
}

Property Value

The default value is true.
Remarks
Please note that changing the property value has an immediate effect on displayed annotations.

Likewise, be aware, that this property is only relevant for GdPicture/XMP annotation objects.

Example
How to expose and exclude the GdPicture/XMP annotations presented in the displayed document.
'We assume that the GdViewer1 control has been properly integrated.
Sub buttonGdPictureAnnotations_Click(ByVal sender As Object, ByVal e As EventArgs)
    'Let us say you have designed a button in your GdViewer control with the name "GdPicture Annotations".
    'Cliking this button you can see the GdPicture/XMP annotations are drawn or erased within the displayed document.
    GdViewer1.RenderGdPictureAnnots = Not GdViewer1.RenderGdPictureAnnots
End Sub
//We assume that the GdViewer1 control has been properly integrated.
void buttonGdPictureAnnotations_Click(object sender, EventArgs e)
{
    //Let us say you have designed a button in your GdViewer control with the name "GdPicture Annotations".
    //Cliking this button you can see the GdPicture/XMP annotations are drawn or erased within the displayed document.
    GdViewer1.RenderGdPictureAnnots = !GdViewer1.RenderGdPictureAnnots;
}
See Also