ContextMenuHandler

TheArtOfDev.HtmlRenderer.Core.Handlers

Handle context menu.

Implementiert: IDisposable

Konstruktoren

ContextMenuHandler(SelectionHandler, HtmlContainerInt)

Init.

selectionHandler
the selection handler linked to the context menu handler
htmlContainer
the html container the handler is on
ContextMenuHandler()

Init context menu items strings.

Methoden

Dispose()

Performs application-defined tasks associated with freeing, releasing, or resetting unmanaged resources.

DisposeContextMenu()

Dispose of the last used context menu.

OnCopyClick(object, EventArgs)

Copy selected text.

OnCopyImageClick(object, EventArgs)

Copy image object to clipboard.

OnCopyImageLinkClick(object, EventArgs)

Copy the image source to clipboard.

OnCopyLinkClick(object, EventArgs)

Copy the href of a link to clipboard.

OnOpenLinkClick(object, EventArgs)

Handle link click.

OnSaveImageClick(object, EventArgs)

Open save as dialog to save the image

OnSelectAllClick(object, EventArgs)

Select all text.

ShowContextMenu(RControl, CssRect, CssBox)

Show context menu clicked on given rectangle.

parent
the parent control to show the context menu on
rect
the rectangle that was clicked to show context menu
link
the link that was clicked to show context menu on

Felder

_contextMenu : RContextMenu

the last context menu shown

_copy : string

copy selected text

_copyImage : string

copy image to clipboard

_copyVideoUrl : string

copy video url to browser

_currentRect : CssRect

the css rectangle that context menu shown on

_htmlContainer : HtmlContainerInt

the html container the handler is on

_openVideo : string

open video in browser

_parentControl : RControl

the control that the context menu was shown on

_saveImage : string

save image to disk

_selectAll : string

select all text

_selectionHandler : SelectionHandler

the selection handler linked to the context menu handler