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

Base class that all menu types must derive from and implement.
Наследование: System.ComponentModel.Component, INotifyPropertyChanged
Показать файл Открыть проект Примеры использования класса

Private Properties

Свойство Тип Описание
this KryptonContextMenuItemBase

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

Метод Описание
GenerateView ( IContextMenuProvider provider, object parent, ViewLayoutStack columns, bool standardStyle, bool imageColumn ) : ViewBase

Returns a view appropriate for this item based on the object it is inside.

KryptonContextMenuItemBase ( ) : System

Initialize a new instance of the KryptonContextMenuItem class.

ProcessShortcut ( Keys keyData ) : bool

Test for the provided shortcut and perform relevant action if a match is found.

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

Метод Описание
OnPropertyChanged ( PropertyChangedEventArgs e ) : void

Raises the PropertyChanged event.

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

Метод Описание
this ( int index ) : KryptonContextMenuItemBase

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

GenerateView() публичный абстрактный Метод

Returns a view appropriate for this item based on the object it is inside.
public abstract GenerateView ( IContextMenuProvider provider, object parent, ViewLayoutStack columns, bool standardStyle, bool imageColumn ) : ViewBase
provider IContextMenuProvider Provider of context menu information.
parent object Owning object reference.
columns ViewLayoutStack Containing columns.
standardStyle bool Draw items with standard or alternate style.
imageColumn bool Draw an image background for the item images.
Результат ViewBase

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

Initialize a new instance of the KryptonContextMenuItem class.
public KryptonContextMenuItemBase ( ) : System
Результат System

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

Raises the PropertyChanged event.
protected OnPropertyChanged ( PropertyChangedEventArgs e ) : void
e System.ComponentModel.PropertyChangedEventArgs A PropertyChangedEventArgs containing the event data.
Результат void

ProcessShortcut() публичный абстрактный Метод

Test for the provided shortcut and perform relevant action if a match is found.
public abstract ProcessShortcut ( Keys keyData ) : bool
keyData Keys Key data to check against shorcut definitions.
Результат bool