Class WebContextMenu

Definition

Namespace:
Tizen.NUI
Assembly:
Tizen.NUI.dll

It is a class for context menu of web view.

C#
Copy
public class WebContextMenu : Disposable
Inheritance
WebContextMenu

Properties

View Source

ItemCount

Counts items of the context menu.

Declaration
C#
Copy
public uint ItemCount { get; }
Property Value
Type Description
UInt32

Methods

View Source

AppendItem(WebContextMenuItem.ItemTag, String, Boolean)

Adds the item with a title to the context menu.

Declaration
C#
Copy
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

Boolean enabled

Whether context menu item is enabled or not

Returns
Type Description
Boolean
View Source

AppendItem(WebContextMenuItem.ItemTag, String, String, Boolean)

Adds the item with a title and an icon to the context menu.

Declaration
C#
Copy
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

Boolean enabled

Whether context menu item is enabled or not

Returns
Type Description
Boolean
View Source

GetItemAtIndex(UInt32)

Returns the nth item in a context menu.

Declaration
C#
Copy
public WebContextMenuItem GetItemAtIndex(uint index)
Parameters
Type Name Description
UInt32 index

The position of the item

Returns
Type Description
WebContextMenuItem
View Source

Hide()

Hides the context menu.

Declaration
C#
Copy
public bool Hide()
Returns
Type Description
Boolean
View Source

ReleaseSwigCPtr(Runtime.InteropServices.HandleRef)

Declaration
C#
Copy
protected override void ReleaseSwigCPtr(Runtime.InteropServices.HandleRef swigCPtr)
Parameters
Type Name Description
Tizen.System.Runtime.InteropServices.HandleRef swigCPtr
Overrides
View Source

RemoveItem(WebContextMenuItem)

Removes the item from the context menu.

Declaration
C#
Copy
public bool RemoveItem(WebContextMenuItem item)
Parameters
Type Name Description
WebContextMenuItem item

The item to be removed

Returns
Type Description
Boolean
View Source

SelectItem(WebContextMenuItem)

Selects the item from the context menu.

Declaration
C#
Copy
public bool SelectItem(WebContextMenuItem item)
Parameters
Type Name Description
WebContextMenuItem item

The item to be selected

Returns
Type Description
Boolean

Extension Methods