Class WebContextMenu
Definition
- Assembly:
- Tizen.NUI.dll
It is a class for context menu of web view.
public class WebContextMenu : Disposable
- Inheritance
Properties
View SourceItemCount
Counts items of the context menu.
Declaration
public uint ItemCount { get; }
Property Value
| Type | Description |
|---|---|
| uint |
Methods
View SourceAppendItem(ItemTag, string, bool)
Adds the item with a title to the context menu.
Declaration
public bool AppendItem(WebContextMenuItem.ItemTag tag, string title, bool enabled)
Parameters
| Type | Name | Description |
|---|---|---|
| WebContextMenuItem.ItemTag | tag | The tag of context menu item |
| string | title | The title of context menu item |
| bool | enabled | Whether context menu item is enabled or not |
Returns
| Type | Description |
|---|---|
| bool |
AppendItem(ItemTag, string, string, bool)
Adds the item with a title and an icon to the context menu.
Declaration
public bool AppendItem(WebContextMenuItem.ItemTag tag, string title, string iconFile, bool enabled)
Parameters
| Type | Name | Description |
|---|---|---|
| WebContextMenuItem.ItemTag | tag | The tag of context menu item |
| string | title | The title of context menu item |
| string | iconFile | The path of icon to be set on context menu item |
| bool | enabled | Whether context menu item is enabled or not |
Returns
| Type | Description |
|---|---|
| bool |
GetItemAtIndex(uint)
Returns the nth item in a context menu.
Declaration
public WebContextMenuItem GetItemAtIndex(uint index)
Parameters
| Type | Name | Description |
|---|---|---|
| uint | index | The position of the item |
Returns
| Type | Description |
|---|---|
| WebContextMenuItem |
Hide()
Hides the context menu.
Declaration
public bool Hide()
Returns
| Type | Description |
|---|---|
| bool |
ReleaseSwigCPtr(HandleRef)
Declaration
protected override void ReleaseSwigCPtr(System.Runtime.InteropServices.HandleRef swigCPtr)
Parameters
| Type | Name | Description |
|---|---|---|
| System.Runtime.InteropServices.HandleRef | swigCPtr |
Overrides
View SourceRemoveItem(WebContextMenuItem)
Removes the item from the context menu.
Declaration
public bool RemoveItem(WebContextMenuItem item)
Parameters
| Type | Name | Description |
|---|---|---|
| WebContextMenuItem | item | The item to be removed |
Returns
| Type | Description |
|---|---|
| bool |
SelectItem(WebContextMenuItem)
Selects the item from the context menu.
Declaration
public bool SelectItem(WebContextMenuItem item)
Parameters
| Type | Name | Description |
|---|---|---|
| WebContextMenuItem | item | The item to be selected |
Returns
| Type | Description |
|---|---|
| bool |