Example





In This Topic
GdPicture14.WPF Namespace / GdViewer Class / AnnotationEffect Property

AnnotationEffect Property

In This Topic
Gets or sets the bitmap effect, which will apply to all GdPicture/XMP annotations included in the document displayed in the GdViewer control.
Syntax
'Declaration
 
Public Property AnnotationEffect As Effect
public Effect AnnotationEffect {get; set;}
public read-write property AnnotationEffect: Effect; 
public function get,set AnnotationEffect : Effect
public: __property Effect* get_AnnotationEffect();
public: __property void set_AnnotationEffect( 
   Effect* value
);
public:
property Effect^ AnnotationEffect {
   Effect^ get();
   void set (    Effect^ value);
}
Example
How to set the drop shadow effect for GdPicture/XMP annotations.
'We assume that the GdViewer1 control has been properly integrated.
Dim newEffect As System.Windows.Media.Effects.DropShadowEffect = New System.Windows.Media.Effects.DropShadowEffect()
newEffect.Opacity = 0.5F
GdViewer1.AnnotationEffect = newEffect
//We assume that the GdViewer1 control has been properly integrated.
System.Windows.Media.Effects.DropShadowEffect newEffect = New System.Windows.Media.Effects.DropShadowEffect();
newEffect.Opacity = 0.5f;
GdViewer1.AnnotationEffect = newEffect;
See Also