GdPicture.NET.14
GdPicture14.WPF Namespace / GdViewer Class / EnableMenu Property
Example





In This Topic
EnableMenu Property (GdViewer)
In This Topic
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.
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