MenuItemBase Abstract Class

Definition

Line 1309 of System.Windows/Menu.cm

Inheritance

Constructors & Destructor

public nothrow MenuItemBase()

Member Functions

public virtual nothrow Padding DefaultPadding() const
public abstract void Draw(Graphics& graphics, const Padding& parentPadding, const Brush& textBrush, const Brush& disabledTextBrush, const Brush& backgroundBrush, const Brush& mouseOverBrush, const Brush& menuOpenBrush, const Brush& shadowBrush, const Brush& blackBrush, const Pen& blackPen, const Pen& darkPen, const Font& font, const StringFormat& format, const Color& menuOpenColor, MenuControl* menuControl, bool drawSubItems, const Point& origin)
internal nothrow MenuItem* GetParentMenuItem() const
public nothrow const Size& GetSize() const
public nothrow int Level() const
public nothrow const Point& Location() const
public abstract Size MeasureItem(Graphics& graphics, const Font& font, const StringFormat& format, int& maxShortcutWidth, int& childIndicatorWidth)
public nothrow void SetLocation(const Point& location_)
public nothrow void SetSize(const Size& size_)

Member Variables

private Point location
private Size size

Constructor& Destructor Details

MenuItemBase Constructor

public nothrow MenuItemBase()

Definition
Line 1311 of System.Windows/Menu.cm


Member Function Details

DefaultPadding Member Function

public virtual nothrow Padding DefaultPadding()

Definition
Line 1334 of System.Windows/Menu.cm


Draw Member Function

public abstract void Draw(Graphics& graphics, const Padding& parentPadding, const Brush& textBrush, const Brush& disabledTextBrush, const Brush& backgroundBrush, const Brush& mouseOverBrush, const Brush& menuOpenBrush, const Brush& shadowBrush, const Brush& blackBrush, const Pen& blackPen, const Pen& darkPen, const Font& font, const StringFormat& format, const Color& menuOpenColor, MenuControl* menuControl, bool drawSubItems, const Point& origin)

Definition
Line 1314 of System.Windows/Menu.cm


GetParentMenuItem Member Function

internal nothrow MenuItem* GetParentMenuItem()

Definition
Line 1317 of System.Windows/Menu.cm


GetSize Member Function

public nothrow const Size& GetSize()

Definition
Line 1358 of System.Windows/Menu.cm


Level Member Function

public nothrow int Level()

Definition
Line 1338 of System.Windows/Menu.cm


Location Member Function

public nothrow const Point& Location()

Definition
Line 1350 of System.Windows/Menu.cm


MeasureItem Member Function

public abstract Size MeasureItem(Graphics& graphics, const Font& font, const StringFormat& format, int& maxShortcutWidth, int& childIndicatorWidth)

Definition
Line 1366 of System.Windows/Menu.cm


SetLocation Member Function

public nothrow void SetLocation(const Point& location_)

Definition
Line 1354 of System.Windows/Menu.cm


SetSize Member Function

public nothrow void SetSize(const Size& size_)

Definition
Line 1362 of System.Windows/Menu.cm