DotNetBrowser  1.14
Public Member Functions | Properties | List of all members
DotNetBrowser.ContextMenuParams Class Reference

Contains information about context menu. More...

Public Member Functions

 ContextMenuParams (Browser browser, MediaType mediaType, int x, int y, string linkURL, string linkText, string srcURL, bool imageBlocked, string pageURL, string frameURL, long frameId, string selectionText, string misspelledWord, string frameCharset, ContextMenu contextMenu, List< string > dictionarySuggestions)
 Constructs a new ContextMenuParams instance. More...
 
override string ToString ()
 Represent object as string More...
 

Properties

Browser Browser [get]
 Gets the browser instance the context menu is being invoked on. More...
 
MediaType MediaType [get]
 Gets the type of media the context menu is being invoked on. More...
 
Point Location [get]
 Gets the coordinates of the mouse when the context menu was invoked. More...
 
string LinkURL [get]
 Gets the URL of the link that encloses the node the context menu was invoked on. More...
 
string LinkText [get]
 Gets the text associated with the link. May be an empty string if the contents of the link are an image. More...
 
string SrcURL [get]
 This is the source URL for the element that the context menu was invoked on. Example of elements with source URLs are img, audio, and video. More...
 
bool IsImageBlocked [get]
 Indicates whether the context menu was invoked on a blocked image. More...
 
string PageURL [get]
 Gets the URL of the top level page that the context menu was invoked on. More...
 
string FrameURL [get]
 Gets the URL of the subframe that the context menu was invoked on. More...
 
long FrameId [get]
 Gets the ID of the subframe that the context menu was invoked on. More...
 
string SelectionText [get]
 Gets the text of the selection that the context menu was invoked on. More...
 
string MisspelledWord [get]
 Gets the misspelled word under the cursor, if any. More...
 
string FrameCharset [get]
 Gets the character encoding of the frame on which the menu is invoked. More...
 
ContextMenu ContextMenu [get]
 Gets presentation of default context menu. It can be used for getting list of context menu items, notifying Chromium engine about context menu state (e.g. whether it's opened or closed). Using information about context menu items you can build and display context menu. More...
 
List< string > DictionarySuggestions [get]
 Gets words suggestions for replacing misspelled word. More...
 

Detailed Description

Contains information about context menu.

Constructor & Destructor Documentation

DotNetBrowser.ContextMenuParams.ContextMenuParams ( Browser  browser,
MediaType  mediaType,
int  x,
int  y,
string  linkURL,
string  linkText,
string  srcURL,
bool  imageBlocked,
string  pageURL,
string  frameURL,
long  frameId,
string  selectionText,
string  misspelledWord,
string  frameCharset,
ContextMenu  contextMenu,
List< string >  dictionarySuggestions 
)

Constructs a new ContextMenuParams instance.

Parameters
browserthe browser instance the context menu is being invoked on.
mediaTypethe type of media.
xthe x coordinate of context menu.
ythe y coordinate of context menu.
linkURLthe URL of the link that encloses the node the context menu was invoked on.
linkTextthe text associated with the link.
srcURLthe source URL for the element that the context menu was invoked on.
imageBlockedindicates whether the context menu was invoked on a blocked image.
pageURLthe URL of the top level page.
frameURLthe URL of the subframe.
frameIdthe ID of the subframe.
selectionTextthe text of the selection that the context menu was invoked on.
misspelledWordthe misspelled word under the cursor.
frameCharsetthe character encoding of the frame.
contextMenuthe presentation of default context menu
dictionarySuggestionssuggestions for replacing misspelled word

Member Function Documentation

override string DotNetBrowser.ContextMenuParams.ToString ( )

Represent object as string

Returns
a string that represents the object

Property Documentation

Browser DotNetBrowser.ContextMenuParams.Browser
get

Gets the browser instance the context menu is being invoked on.

the browser instance the context menu is being invoked on.

ContextMenu DotNetBrowser.ContextMenuParams.ContextMenu
get

Gets presentation of default context menu. It can be used for getting list of context menu items, notifying Chromium engine about context menu state (e.g. whether it's opened or closed). Using information about context menu items you can build and display context menu.

List<string> DotNetBrowser.ContextMenuParams.DictionarySuggestions
get

Gets words suggestions for replacing misspelled word.

string DotNetBrowser.ContextMenuParams.FrameCharset
get

Gets the character encoding of the frame on which the menu is invoked.

the character encoding of the frame.

long DotNetBrowser.ContextMenuParams.FrameId
get

Gets the ID of the subframe that the context menu was invoked on.

the ID of the subframe.

string DotNetBrowser.ContextMenuParams.FrameURL
get

Gets the URL of the subframe that the context menu was invoked on.

the URL of the subframe.

bool DotNetBrowser.ContextMenuParams.IsImageBlocked
get

Indicates whether the context menu was invoked on a blocked image.

true if the context menu was invoked on a blocked image.

string DotNetBrowser.ContextMenuParams.LinkText
get

Gets the text associated with the link. May be an empty string if the contents of the link are an image.

the text associated with the link.

string DotNetBrowser.ContextMenuParams.LinkURL
get

Gets the URL of the link that encloses the node the context menu was invoked on.

Point DotNetBrowser.ContextMenuParams.Location
get

Gets the coordinates of the mouse when the context menu was invoked.

the context menu coordinates.

MediaType DotNetBrowser.ContextMenuParams.MediaType
get

Gets the type of media the context menu is being invoked on.

a value from the MediaType list of known media types.

string DotNetBrowser.ContextMenuParams.MisspelledWord
get

Gets the misspelled word under the cursor, if any.

the misspelled word under the cursor.

string DotNetBrowser.ContextMenuParams.PageURL
get

Gets the URL of the top level page that the context menu was invoked on.

the URL of the top level page.

string DotNetBrowser.ContextMenuParams.SelectionText
get

Gets the text of the selection that the context menu was invoked on.

the text of the selection.

string DotNetBrowser.ContextMenuParams.SrcURL
get

This is the source URL for the element that the context menu was invoked on. Example of elements with source URLs are img, audio, and video.

the source URL for the element.