ContextMenuHandler
Handle context menu.
实现: IDisposable
构造函数
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.
方法
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
字段
_contextMenu : RContextMenu
the last context menu shown
_copyImage : string
copy image to clipboard
_copyImageLink : string
copy the source of the image
_copyVideoUrl : string
copy video url to browser
_currentLink : CssBox
the css link box that context menu shown on
_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