NGWS SDK Documentation  

This is preliminary documentation and subject to change.
To comment on this topic, please send us email at ngwssdk@microsoft.com. Thanks!

MenuItem.OwnerDraw

Gets or sets a value indicating whether code that you provide draws the menu item or Windows draws the menu item.

[Visual Basic]
Public Property OwnerDraw As Boolean
[C#]
public bool OwnerDraw {get; set;}
[C++]
public: __property bool get_OwnerDraw();
public: __property void set_OwnerDraw(bool);
[JScript]
public function get OwnerDraw() : Boolean;
public function set OwnerDraw(Boolean);

Property Value

true if the menu item is to be drawn using code; false if the menu item is to be drawn by Windows. The default is false.

Remarks

When the OwnerDraw property is set to true, you need to handle all drawing of the menu item. You can use this capability to create your own special menu displays.

See Also

MenuItem Class | MenuItem Members | System.WinForms Namespace