C# 클래스 ComponentFactory.Krypton.Toolkit.KryptonContextMenu

상속: System.ComponentModel.Component
파일 보기 프로젝트 열기: Cocotteseb/Krypton 1 사용 예제들

Private Properties

프로퍼티 타입 설명
OnContextMenuDisposed void
OnNeedPaint void
PerformNeedPaint void
ResetTag void
ShouldSerializeImages bool
ShouldSerializePaletteMode bool
ShouldSerializeStateChecked bool
ShouldSerializeStateCommon bool
ShouldSerializeStateDisabled bool
ShouldSerializeStateHighlight bool
ShouldSerializeStateNormal bool
ShouldSerializeTag bool

공개 메소드들

메소드 설명
Close ( ) : void

Close any showing context menu.

Close ( ToolStripDropDownCloseReason reason ) : void

Close any showing context menu.

KryptonContextMenu ( ) : System

Initialize a new instance of the KryptonContextMenu class.

ProcessShortcut ( Keys keyData ) : bool

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

ResetPalette ( ) : void

Resets the Palette property to its default value.

ResetPaletteMode ( ) : void

Resets the PaletteMode property to its default value.

Show ( object caller ) : bool

Show the context menu at the current mouse location.

Show ( object caller, KryptonContextMenuPositionH horz, KryptonContextMenuPositionV vert ) : bool

Show the context menu relative to the current mouse location.

Show ( object caller, Point screenPt ) : bool

Show the context menu relative to the provided screen point.

Show ( object caller, Point screenPt, KryptonContextMenuPositionH horz, KryptonContextMenuPositionV vert ) : bool

Show the context menu relative to the provided screen point.

Show ( object caller, Rectangle screenRect ) : bool

Show the context menu relative to the provided screen rectangle.

Show ( object caller, Rectangle screenRect, KryptonContextMenuPositionH horz, KryptonContextMenuPositionV vert ) : bool

Show the context menu relative to the provided screen rectangle.

Show ( object caller, Rectangle screenRect, KryptonContextMenuPositionH horz, KryptonContextMenuPositionV vert, bool keyboardActivated, bool constrain ) : bool

Show the context menu relative to the provided screen rectangle.

보호된 메소드들

메소드 설명
CreateContextMenu ( KryptonContextMenu kcm, IPalette palette, PaletteMode paletteMode, PaletteRedirect redirector, PaletteRedirectContextMenu redirectorImages, KryptonContextMenuCollection items, System.Boolean enabled, bool keyboardActivated ) : VisualContextMenu

Create a new visual context menu for showing the defined items.

Dispose ( bool disposing ) : void

Clean up any resources being used.

OnClosed ( System.Windows.Forms.ToolStripDropDownClosedEventArgs e ) : void

Raises the Closed event.

OnClosing ( CancelEventArgs e ) : void

Raises the Closing event.

OnOpened ( EventArgs e ) : void

Raises the Opened event.

OnOpening ( CancelEventArgs e ) : void

Raises the Opening event.

비공개 메소드들

메소드 설명
OnContextMenuDisposed ( object sender, EventArgs e ) : void
OnNeedPaint ( object sender, NeedLayoutEventArgs e ) : void
PerformNeedPaint ( bool needLayout ) : void
ResetTag ( ) : void
ShouldSerializeImages ( ) : bool
ShouldSerializePaletteMode ( ) : bool
ShouldSerializeStateChecked ( ) : bool
ShouldSerializeStateCommon ( ) : bool
ShouldSerializeStateDisabled ( ) : bool
ShouldSerializeStateHighlight ( ) : bool
ShouldSerializeStateNormal ( ) : bool
ShouldSerializeTag ( ) : bool

메소드 상세

Close() 공개 메소드

Close any showing context menu.
public Close ( ) : void
리턴 void

Close() 공개 메소드

Close any showing context menu.
public Close ( ToolStripDropDownCloseReason reason ) : void
reason ToolStripDropDownCloseReason Reason why the context menu is being closed.
리턴 void

CreateContextMenu() 보호된 메소드

Create a new visual context menu for showing the defined items.
protected CreateContextMenu ( KryptonContextMenu kcm, IPalette palette, PaletteMode paletteMode, PaletteRedirect redirector, PaletteRedirectContextMenu redirectorImages, KryptonContextMenuCollection items, System.Boolean enabled, bool keyboardActivated ) : VisualContextMenu
kcm KryptonContextMenu Owning KryptonContextMenu instance.
palette IPalette Drawing palette.
paletteMode PaletteMode Drawing palette mode.
redirector PaletteRedirect Redirector for sourcing base values.
redirectorImages PaletteRedirectContextMenu Redirector for sourcing base images.
items KryptonContextMenuCollection Colletion of menu items.
enabled System.Boolean Enabled state of the menu.
keyboardActivated bool True is menu was keyboard initiated.
리턴 VisualContextMenu

Dispose() 보호된 메소드

Clean up any resources being used.
protected Dispose ( bool disposing ) : void
disposing bool true if managed resources should be disposed; otherwise, false.
리턴 void

KryptonContextMenu() 공개 메소드

Initialize a new instance of the KryptonContextMenu class.
public KryptonContextMenu ( ) : System
리턴 System

OnClosed() 보호된 메소드

Raises the Closed event.
protected OnClosed ( System.Windows.Forms.ToolStripDropDownClosedEventArgs e ) : void
e System.Windows.Forms.ToolStripDropDownClosedEventArgs An ToolStripDropDownClosedEventArgs containing the event data.
리턴 void

OnClosing() 보호된 메소드

Raises the Closing event.
protected OnClosing ( CancelEventArgs e ) : void
e CancelEventArgs A CancelEventArgs containing the event data.
리턴 void

OnOpened() 보호된 메소드

Raises the Opened event.
protected OnOpened ( EventArgs e ) : void
e System.EventArgs An EventArgs containing the event data.
리턴 void

OnOpening() 보호된 메소드

Raises the Opening event.
protected OnOpening ( CancelEventArgs e ) : void
e CancelEventArgs A CancelEventArgs containing the event data.
리턴 void

ProcessShortcut() 공개 메소드

Test for the provided shortcut and perform relevant action if a match is found.
public ProcessShortcut ( Keys keyData ) : bool
keyData Keys Key data to check against shorcut definitions.
리턴 bool

ResetPalette() 공개 메소드

Resets the Palette property to its default value.
public ResetPalette ( ) : void
리턴 void

ResetPaletteMode() 공개 메소드

Resets the PaletteMode property to its default value.
public ResetPaletteMode ( ) : void
리턴 void

Show() 공개 메소드

Show the context menu at the current mouse location.
public Show ( object caller ) : bool
caller object Reference to object causing the context menu to be shown.
리턴 bool

Show() 공개 메소드

Show the context menu relative to the current mouse location.
public Show ( object caller, KryptonContextMenuPositionH horz, KryptonContextMenuPositionV vert ) : bool
caller object Reference to object causing the context menu to be shown.
horz KryptonContextMenuPositionH Horizontal location relative to screen rectangle.
vert KryptonContextMenuPositionV Vertical location relative to screen rectangle.
리턴 bool

Show() 공개 메소드

Show the context menu relative to the provided screen point.
public Show ( object caller, Point screenPt ) : bool
caller object Reference to object causing the context menu to be shown.
screenPt Point Screen location.
리턴 bool

Show() 공개 메소드

Show the context menu relative to the provided screen point.
public Show ( object caller, Point screenPt, KryptonContextMenuPositionH horz, KryptonContextMenuPositionV vert ) : bool
caller object Reference to object causing the context menu to be shown.
screenPt Point Screen location.
horz KryptonContextMenuPositionH Horizontal location relative to screen rectangle.
vert KryptonContextMenuPositionV Vertical location relative to screen rectangle.
리턴 bool

Show() 공개 메소드

Show the context menu relative to the provided screen rectangle.
public Show ( object caller, Rectangle screenRect ) : bool
caller object Reference to object causing the context menu to be shown.
screenRect System.Drawing.Rectangle Screen rectangle.
리턴 bool

Show() 공개 메소드

Show the context menu relative to the provided screen rectangle.
public Show ( object caller, Rectangle screenRect, KryptonContextMenuPositionH horz, KryptonContextMenuPositionV vert ) : bool
caller object Reference to object causing the context menu to be shown.
screenRect System.Drawing.Rectangle Screen rectangle.
horz KryptonContextMenuPositionH Horizontal location relative to screen rectangle.
vert KryptonContextMenuPositionV Vertical location relative to screen rectangle.
리턴 bool

Show() 공개 메소드

Show the context menu relative to the provided screen rectangle.
public Show ( object caller, Rectangle screenRect, KryptonContextMenuPositionH horz, KryptonContextMenuPositionV vert, bool keyboardActivated, bool constrain ) : bool
caller object Reference to object causing the context menu to be shown.
screenRect System.Drawing.Rectangle Screen rectangle.
horz KryptonContextMenuPositionH Horizontal location relative to screen rectangle.
vert KryptonContextMenuPositionV Vertical location relative to screen rectangle.
keyboardActivated bool Was context menu initiated via a keyboard action.
constrain bool Should size and position of menu be constrained by display size.
리턴 bool