DotNetBrowser
1.21.5
|
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... | |
Contains information about context menu.
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.
browser | the browser instance the context menu is being invoked on. |
mediaType | the type of media. |
x | the x coordinate of context menu. |
y | the y coordinate of context menu. |
linkURL | the URL of the link that encloses the node the context menu was invoked on. |
linkText | the text associated with the link. |
srcURL | the source URL for the element that the context menu was invoked on. |
imageBlocked | indicates whether the context menu was invoked on a blocked image. |
pageURL | the URL of the top level page. |
frameURL | the URL of the subframe. |
frameId | the ID of the subframe. |
selectionText | the text of the selection that the context menu was invoked on. |
misspelledWord | the misspelled word under the cursor. |
frameCharset | the character encoding of the frame. |
contextMenu | the presentation of default context menu |
dictionarySuggestions | suggestions for replacing misspelled word |
override string DotNetBrowser.ContextMenuParams.ToString | ( | ) |
Represent object as string
|
get |
Gets the browser instance the context menu is being invoked on.
the browser instance the context menu is being invoked on.
|
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.
|
get |
Gets words suggestions for replacing misspelled word.
|
get |
Gets the character encoding of the frame on which the menu is invoked.
the character encoding of the frame.
|
get |
Gets the ID of the subframe that the context menu was invoked on.
the ID of the subframe.
|
get |
Gets the URL of the subframe that the context menu was invoked on.
the URL of the subframe.
|
get |
Indicates whether the context menu was invoked on a blocked image.
true if the context menu was invoked on a blocked image.
|
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.
|
get |
Gets the URL of the link that encloses the node the context menu was invoked on.
|
get |
Gets the coordinates of the mouse when the context menu was invoked.
the context menu coordinates.
|
get |
Gets the type of media the context menu is being invoked on.
a value from the MediaType list of known media types.
|
get |
Gets the misspelled word under the cursor, if any.
the misspelled word under the cursor.
|
get |
Gets the URL of the top level page that the context menu was invoked on.
the URL of the top level page.
|
get |
Gets the text of the selection that the context menu was invoked on.
the text of the selection.
|
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.