1# Class (WebContextMenuResult) 2 3Implements a **WebContextMenuResult** object. For details about the sample code, see [onContextMenuShow](./arkts-basic-components-web-events.md#oncontextmenushow9). 4 5> **NOTE** 6> 7> - The initial APIs of this component are supported since API version 8. Updates will be marked with a superscript to indicate their earliest API version. 8> 9> - The initial APIs of this class are supported since API version 9. 10> 11> - You can preview how this component looks on a real device, but not in DevEco Studio Previewer. 12 13## constructor<sup>9+</sup> 14 15constructor() 16 17Constructs a **WebContextMenuResult** object. 18 19**System capability**: SystemCapability.Web.Webview.Core 20 21## closeContextMenu<sup>9+</sup> 22 23closeContextMenu(): void 24 25Closes this context menu. This API must be called when no operations in **WebContextMenuResult** are performed. 26 27**System capability**: SystemCapability.Web.Webview.Core 28 29## copyImage<sup>9+</sup> 30 31copyImage(): void 32 33Copies the image specified in **WebContextMenuParam**. 34 35**System capability**: SystemCapability.Web.Webview.Core 36 37## copy<sup>9+</sup> 38 39copy(): void 40 41Copies text related to this context menu. 42 43**System capability**: SystemCapability.Web.Webview.Core 44 45## paste<sup>9+</sup> 46 47paste(): void 48 49Performs the paste operation related to this context menu. 50 51> **NOTE** 52> 53> The **ohos.permission.READ_PASTEBOARD** permission must be declared. 54 55**System capability**: SystemCapability.Web.Webview.Core 56 57## cut<sup>9+</sup> 58 59cut(): void 60 61Performs the cut operation related to this context menu. 62 63**System capability**: SystemCapability.Web.Webview.Core 64 65## selectAll<sup>9+</sup> 66 67selectAll(): void 68 69Performs the select all operation related to this context menu. 70 71**System capability**: SystemCapability.Web.Webview.Core 72 73## undo<sup>20+</sup> 74 75undo(): void 76 77Performs the undo operation related to this context menu. 78 79**System capability**: SystemCapability.Web.Webview.Core 80 81## redo<sup>20+</sup> 82 83redo(): void 84 85Performs the redo operation related to this context menu, that is, cancels the last undo operation. 86 87**System capability**: SystemCapability.Web.Webview.Core 88 89## pasteAndMatchStyle<sup>20+</sup> 90 91pasteAndMatchStyle(): void 92 93Performs the paste operation related to the context menu. The pasted content matches the target format and is displayed in plain text. 94 95> **NOTE** 96> 97> The **ohos.permission.READ_PASTEBOARD** permission must be declared. 98 99**System capability**: SystemCapability.Web.Webview.Core 100