# Clip Method

> Performs clipboard actions in TXTextControl with the Action parameter: 1 cuts, 2 copies, 3 pastes and 4 clears the selection. With an Edit/Copy menu example.

- **Product:** TX Text Control ActiveX
- **Section:** Documentation
- **Kind:** Method
- **Path:** TX Text Control ActiveX > API Reference > TXTextControl > Clip Method
- **284 words**
- **Web URL:** https://docs.textcontrol.com/tx-text-control-activex/reference/txtextcontrol/clip-method/
- **LLMs URL:** https://docs.textcontrol.com/tx-text-control-activex/reference/txtextcontrol/clip-method/llms.txt
- **LLMs-Full URL:** https://docs.textcontrol.com/tx-text-control-activex/reference/txtextcontrol/clip-method/llms-full.txt

---

Performs Text Control clipboard actions.

### Syntax

```vbscript
TXTextControl.Clip Action
```

### Parameters

| Parameter | Description |
|---|---|
| Action | Specifies the clipboard action. It can be one of the following values: |

#### Action

| Value | Description |
|---|---|
| 1 | Cuts out the selected text and copies it to the clipboard. |
| 2 | Copies the selected text to the clipboard. |
| 3 | Pastes text from the clipboard. |
| 4 | Clears the selection. |

### Return Value

This method has no return value.

### Data Types

| Name | Data type |
|---|---|
| Action | Integer |

### Examples

This Basic example copies the selected text from a Text Control named "TXTextControl1" to the clipboard when the user selects the "Edit/Copy" menu item:

```vbscript
Sub mnuEdit_Copy_Click ()
   TXTextControl1.Clip 2
End Sub
```

### See Also

- [Programming Category: Clipboard Operations](https://docs.textcontrol.com/tx-text-control-activex/reference/categories/clipboard/llms-full.txt)

---

## Nearby

- **Previous:** [Click Event](https://docs.textcontrol.com/tx-text-control-activex/reference/txtextcontrol/click-event/llms-full.txt)
- **Next:** [ClipboardFormats Property](https://docs.textcontrol.com/tx-text-control-activex/reference/txtextcontrol/clipboardformats-property/llms-full.txt)
