C# Класс ComponentFactory.Krypton.Toolkit.VisualContextMenu

Base class for drawing a krypton context menu as a popup control.
Наследование: VisualPopup
Показать файл Открыть проект Примеры использования класса

Открытые методы

Метод Описание
DoesStackedClientMouseDownBecomeCurrent ( Message m, Point pt ) : bool

Should a mouse down at the provided point cause it to become the current tracking popup.

Show ( ) : void

Show the context menu relative to the current mouse location.

Show ( Point screenPt ) : void

Show the context menu relative to the provided screen point.

Show ( Rectangle screenRect ) : void

Show the context menu relative to the provided screen rectangle.

Show ( Rectangle screenRect, KryptonContextMenuPositionH horz, KryptonContextMenuPositionV vert ) : void

Show the context menu relative to the provided screen rectangle.

Show ( Rectangle screenRect, KryptonContextMenuPositionH horz, KryptonContextMenuPositionV vert, bool bounce, bool constrain ) : void

Show the context menu relative to the provided screen rectangle.

ShowFixed ( Rectangle screenRect, KryptonContextMenuPositionH horz, KryptonContextMenuPositionV vert ) : void

Show the context menu at the fixed screen rectangle.

VisualContextMenu ( IContextMenuProvider provider, KryptonContextMenuCollection items, bool keyboardActivated ) : System

Initialize a new instance of the VisualContextMenu class.

VisualContextMenu ( KryptonContextMenu contextMenu, IPalette palette, PaletteMode paletteMode, PaletteRedirect redirector, PaletteRedirectContextMenu redirectorImages, KryptonContextMenuCollection items, bool enabled, bool keyboardActivated ) : System

Initialize a new instance of the VisualContextMenu class.

Защищенные методы

Метод Описание
Dispose ( bool disposing ) : void

Clean up any resources being used.

OnKeyDown ( KeyEventArgs e ) : void

Raises the KeyDown event.

OnLayout ( System.Windows.Forms.LayoutEventArgs levent ) : void

Raises the Layout event.

OnPaletteNeedPaint ( object sender, NeedLayoutEventArgs e ) : void

Processes a notification from palette of a paint and optional layout required.

Приватные методы

Метод Описание
CalculatePreferredSize ( ) : Size
Construct ( KryptonContextMenuCollection items, bool keyboardActivated ) : void
OnBaseChanged ( object sender, EventArgs e ) : void
OnProviderClose ( object sender, CloseReasonEventArgs e ) : void
OnProviderClose ( object sender, EventArgs e ) : void
OnProviderClosing ( object sender, CancelEventArgs e ) : void
SetPalette ( IPalette palette ) : void

Описание методов

Dispose() защищенный Метод

Clean up any resources being used.
protected Dispose ( bool disposing ) : void
disposing bool true if managed resources should be disposed; otherwise, false.
Результат void

DoesStackedClientMouseDownBecomeCurrent() публичный Метод

Should a mouse down at the provided point cause it to become the current tracking popup.
public DoesStackedClientMouseDownBecomeCurrent ( Message m, Point pt ) : bool
m System.Windows.Forms.Message Original message.
pt Point Client coordinates point.
Результат bool

OnKeyDown() защищенный Метод

Raises the KeyDown event.
protected OnKeyDown ( KeyEventArgs e ) : void
e System.Windows.Forms.KeyEventArgs A KeyEventArgs that contains the event data.
Результат void

OnLayout() защищенный Метод

Raises the Layout event.
protected OnLayout ( System.Windows.Forms.LayoutEventArgs levent ) : void
levent System.Windows.Forms.LayoutEventArgs An EventArgs that contains the event data.
Результат void

OnPaletteNeedPaint() защищенный Метод

Processes a notification from palette of a paint and optional layout required.
protected OnPaletteNeedPaint ( object sender, NeedLayoutEventArgs e ) : void
sender object Source of notification.
e NeedLayoutEventArgs An NeedLayoutEventArgs containing event data.
Результат void

Show() публичный Метод

Show the context menu relative to the current mouse location.
public Show ( ) : void
Результат void

Show() публичный Метод

Show the context menu relative to the provided screen point.
public Show ( Point screenPt ) : void
screenPt Point Screen location.
Результат void

Show() публичный Метод

Show the context menu relative to the provided screen rectangle.
public Show ( Rectangle screenRect ) : void
screenRect System.Drawing.Rectangle Screen rectangle.
Результат void

Show() публичный Метод

Show the context menu relative to the provided screen rectangle.
public Show ( Rectangle screenRect, KryptonContextMenuPositionH horz, KryptonContextMenuPositionV vert ) : void
screenRect System.Drawing.Rectangle Screen rectangle.
horz KryptonContextMenuPositionH Horizontal location relative to screen rectangle.
vert KryptonContextMenuPositionV Vertical location relative to screen rectangle.
Результат void

Show() публичный Метод

Show the context menu relative to the provided screen rectangle.
public Show ( Rectangle screenRect, KryptonContextMenuPositionH horz, KryptonContextMenuPositionV vert, bool bounce, bool constrain ) : void
screenRect System.Drawing.Rectangle Screen rectangle.
horz KryptonContextMenuPositionH Horizontal location relative to screen rectangle.
vert KryptonContextMenuPositionV Vertical location relative to screen rectangle.
bounce bool Should the menu bounce around the monitor.
constrain bool Should size and position of menu be constrained by display size.
Результат void

ShowFixed() публичный Метод

Show the context menu at the fixed screen rectangle.
public ShowFixed ( Rectangle screenRect, KryptonContextMenuPositionH horz, KryptonContextMenuPositionV vert ) : void
screenRect System.Drawing.Rectangle Screen rectangle.
horz KryptonContextMenuPositionH Horizontal location relative to screen rectangle.
vert KryptonContextMenuPositionV Vertical location relative to screen rectangle.
Результат void

VisualContextMenu() публичный Метод

Initialize a new instance of the VisualContextMenu class.
public VisualContextMenu ( IContextMenuProvider provider, KryptonContextMenuCollection items, bool keyboardActivated ) : System
provider IContextMenuProvider Original source of provider details
items KryptonContextMenuCollection Enabled state of the context menu.
keyboardActivated bool Was the context menu activate by a keyboard action.
Результат System

VisualContextMenu() публичный Метод

Initialize a new instance of the VisualContextMenu class.
public VisualContextMenu ( KryptonContextMenu contextMenu, IPalette palette, PaletteMode paletteMode, PaletteRedirect redirector, PaletteRedirectContextMenu redirectorImages, KryptonContextMenuCollection items, bool enabled, bool keyboardActivated ) : System
contextMenu KryptonContextMenu Originating context menu instance.
palette IPalette Local palette setting to use initially.
paletteMode PaletteMode Palette mode setting to use initially.
redirector PaletteRedirect Redirector used for obtaining palette values.
redirectorImages PaletteRedirectContextMenu Redirector used for obtaining images.
items KryptonContextMenuCollection Collection of context menu items to be displayed.
enabled bool Enabled state of the context menu.
keyboardActivated bool Was the context menu activate by a keyboard action.
Результат System