In This Article

OwnerDrawMainMenu Class

Represents an owner-draw MainMenu with the new Windows menu appearance.

[Obsolete("The OwnerDrawMainMenu has been replaced by MenuStrip and will be removed in a future release.")]
public class OwnerDrawMainMenu : MainMenu
Inheritance:
Object Object

Constructors

OwnerDrawMainMenu()

Initializes a new instance of the OwnerDrawMainMenu class.

public OwnerDrawMainMenu()

OwnerDrawMainMenu(ImageList)

Initializes a new instance of the OwnerDrawMainMenu class.

public OwnerDrawMainMenu(ImageList imageList)
Parameter Type Description
imageList ImageList

The ImageList to use for menu item images.

Properties

ColorScheme

Gets or sets the IWindowsColorScheme to use for drawing menu items.

public IWindowsColorScheme ColorScheme { get; set; }

Property Value

IWindowsColorScheme:

The IWindowsColorScheme to use for drawing menu items.

ImageList

Gets or sets the ImageList used for item images.

public ImageList ImageList { get; set; }

Property Value

ImageList:

An ImageList. The default value is a null reference.