In This Article

OwnerDrawContextMenu Class

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

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

Constructors

OwnerDrawContextMenu()

Initializes a new instance of the OwnerDrawContextMenu class.

public OwnerDrawContextMenu()

OwnerDrawContextMenu(ImageList)

Initializes a new instance of the OwnerDrawContextMenu class.

public OwnerDrawContextMenu(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.