OwnerDrawContextMenu Class
Represents an owner-draw ContextMenu
with the new Windows menu appearance.
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 |
Properties
ColorScheme
Gets or sets the WindowsColorScheme to use for drawing menu items.
public WindowsColorScheme ColorScheme { get; set; }
Property Value
- WindowsColorScheme:
The WindowsColorScheme 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.