GdPicture.NET Reference Guide
EnableMenu Property (GdViewer)
Example 





GdPicture14.WPF Namespace > GdViewer Class : EnableMenu Property
Enables or disables displaying the contextual menu in the GdViewer control.
Syntax
'Declaration
 
Public Property EnableMenu As Boolean
public bool EnableMenu {get; set;}
public read-write property EnableMenu: Boolean; 
public function get,set EnableMenu : boolean
public: __property bool get_EnableMenu();
public: __property void set_EnableMenu( 
   bool value
);
public:
property bool EnableMenu {
   bool get();
   void set (    bool value);
}

Property Value

The default value is True/true.
Example
How to disable the contextual menu in the control.
'We assume that the GdViewer1 control has been properly integrated.
GdViewer1.EnableMenu = False
//We assume that the GdViewer1 control has been properly integrated.
GdViewer1.EnableMenu = false;
See Also

Reference

GdViewer Class
GdViewer Members
RemoveItemMenu Method
SetItemMenuCaption Method
ClickMenu Event