AnnotationDropShadow Property (GdViewer)
In This Topic
Determines whether all GdPicture/XMP annotations are rendered with a very light and gentle drop shadow effect on the screen.
The shadow effect is not applicable when saving annotations to a file.
Syntax
'Declaration
Public Property AnnotationDropShadow As Boolean
public bool AnnotationDropShadow {get; set;}
public read-write property AnnotationDropShadow: Boolean;
public function get,set AnnotationDropShadow : boolean
public: __property bool get_AnnotationDropShadow();
public: __property void set_AnnotationDropShadow(
bool value
);
public:
property bool AnnotationDropShadow {
bool get();
void set ( bool value);
}
Property Value
The default value is true.
Example
How to change the drop shadow effect on GdPicture/XMP annotations.
'We assume that the GdViewer1 control has been properly integrated.
Sub buttonChangeShadow_Click(ByVal sender As Object, ByVal e As EventArgs)
'Let us say you have designed a button in your GdViewer control with the name "Change Shadow".
'Cliking this button you can see how the drop shadow effect applies to GdPicture/XMP annotations within the displayed document.
GdViewer1.AnnotationDropShadow = Not GdViewer1.AnnotationDropShadow
End Sub
//We assume that the GdViewer1 control has been properly integrated.
void buttonAddStickyNote_Click(object sender, EventArgs e)
{
//Let us say you have designed a button in your GdViewer control with the name "Change Shadow".
//Cliking this button you can see how the drop shadow effect applies to GdPicture/XMP annotations within the displayed document.
GdViewer1.AnnotationDropShadow = !GdViewer1.AnnotationDropShadow;
}
Example
How to change the drop shadow effect on GdPicture/XMP annotations.
'We assume that the GdViewer1 control has been properly integrated.
Sub buttonChangeShadow_Click(ByVal sender As Object, ByVal e As EventArgs)
'Let us say you have designed a button in your GdViewer control with the name "Change Shadow".
'Cliking this button you can see how the drop shadow effect applies to GdPicture/XMP annotations within the displayed document.
GdViewer1.AnnotationDropShadow = Not GdViewer1.AnnotationDropShadow
End Sub
//We assume that the GdViewer1 control has been properly integrated.
void buttonAddStickyNote_Click(object sender, EventArgs e)
{
//Let us say you have designed a button in your GdViewer control with the name "Change Shadow".
//Cliking this button you can see how the drop shadow effect applies to GdPicture/XMP annotations within the displayed document.
GdViewer1.AnnotationDropShadow = !GdViewer1.AnnotationDropShadow;
}
See Also