# ConditionalInstruction.Copy Method

> Returns a copy of this ConditionalInstruction object.

- **Product:** TX Text Control .NET for Windows Forms
- **Section:** Reference
- **Kind:** Method
- **Introduced:** 28.0
- **Namespace:** `TXTextControl`
- **Package:** `TXTextControl.TextControl.WinForms.SDK` (assembly `TXTextControl.dll`, from the private NuGet feed or Text Control Offline Packages)
- **.NET Framework:** reference `TXTextControl.dll` from the setup
- **Path:** TX Text Control .NET for Windows Forms > Reference > TXTextControl > ConditionalInstruction.Copy Method
- **468 words**
- **Web URL:** https://docs.textcontrol.com/tx-text-control-dotnet-winforms/reference/txtextcontrol/conditionalinstruction/copy-method/
- **LLMs URL:** https://docs.textcontrol.com/tx-text-control-dotnet-winforms/reference/txtextcontrol/conditionalinstruction/copy-method/llms.txt
- **LLMs-Full URL:** https://docs.textcontrol.com/tx-text-control-dotnet-winforms/reference/txtextcontrol/conditionalinstruction/copy-method/llms-full.txt

---

### Description

Returns a copy of this `ConditionalInstruction` object.

### Syntax

```csharp
public ConditionalInstruction Copy();
```

```vbnet
Public Function Copy() As ConditionalInstruction
```

### Return Value

The return value is a copy of the current `ConditionalInstruction` object and its property values.

### Examples

The following example builds a rule around an approval check box in a fillable form by using `ConditionalInstruction.Copy`.

```csharp
CheckFormField approvalField = new(false) { Name = "Approved" };
textControl.FormFields.Add(approvalField);
ConditionalInstruction conditionalInstruction = new();

var result = conditionalInstruction.Copy();
Console.WriteLine($"Copy result: {result}");
```

```vbnet
Dim approvalField As New CheckFormField(False) With { .Name = "Approved" }
textControl.FormFields.Add(approvalField)
Dim conditionalInstruction As New ConditionalInstruction()

Dim result = conditionalInstruction.Copy()
Console.WriteLine($"Copy result: {result}")
```

---

## Nearby

- **Previous:** [ConditionalInstruction Constructor](https://docs.textcontrol.com/tx-text-control-dotnet-winforms/reference/txtextcontrol/conditionalinstruction/constructor/llms-full.txt)
- **Next:** [ConditionalInstruction.Instructions Property](https://docs.textcontrol.com/tx-text-control-dotnet-winforms/reference/txtextcontrol/conditionalinstruction/instructions-property/llms-full.txt)
