# ZOrder Enumeration

> Specifies how the z-order of a frame (image, text frame, chart, barcode or drawing) can be changed. The enumeration contains the following values:

- **Product:** TX Text Control .NET for Windows Forms
- **Section:** Reference
- **Kind:** Enumeration
- **Introduced:** 18.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 > ZOrder Enumeration
- **618 words**
- **Web URL:** https://docs.textcontrol.com/tx-text-control-dotnet-winforms/reference/txtextcontrol/zorder/enumeration/
- **LLMs URL:** https://docs.textcontrol.com/tx-text-control-dotnet-winforms/reference/txtextcontrol/zorder/enumeration/llms.txt
- **LLMs-Full URL:** https://docs.textcontrol.com/tx-text-control-dotnet-winforms/reference/txtextcontrol/zorder/enumeration/llms-full.txt

---

### Description

Specifies how the z-order of a frame (image, text frame, chart, barcode or drawing) can be changed. The enumeration contains the following values:

### Syntax

```csharp
public enum ZOrder
```

```vbnet
Public Enum ZOrder
```

### Members

| Member | Value | Description |
|---|---|---|
| Bottom | -2147483647 | If the frame is in front of the text, it becomes the bottommost of all objects in front of the text. If it is behind the text, it is becomes the bottommost of all objects. |
| BottomMost | -2147483648 | The frame is moved behind the text below all other objects. This member is only possible, if the insertion mode is `BehindTheText`. |
| Down | -2147483646 | The frame is moved down one plane. If it is the bottommost object in front of the text, it is not moved behind the text. |
| TopMost | 2147483647 | The frame is moved in front of the text at the top of all other objects. |
| Top | 2147483646 | If the frame is behind the text, it becomes the topmost of all objects behind the text. If it is in front of the text, it becomes the topmost of all objects. |
| Up | 2147483645 | The frame is moved up one plane. If it is the topmost object behind the text, it is not moved in front of the text. |

### Examples

The following example selects the Up value from the ZOrder enumeration and uses it as a documented workflow choice.

```csharp
ZOrder value = ZOrder.Up;
Console.WriteLine($"Using ZOrder: {value}");
```

```vbnet
Dim value As ZOrder = ZOrder.Up
Console.WriteLine($"Using ZOrder: {value}")
```

### See Also

[FrameBase.ChangeZOrder](https://docs.textcontrol.com/tx-text-control-dotnet-winforms/reference/txtextcontrol/framebase/changezorder-method/llms-full.txt) Method.

---

## Nearby

- **Previous:** [ZoomOption Enumeration](https://docs.textcontrol.com/tx-text-control-dotnet-winforms/reference/txtextcontrol/zoomoption/enumeration/llms-full.txt)
- **Next:** [TXTextControl.Barcode namespace](https://docs.textcontrol.com/tx-text-control-dotnet-winforms/reference/txtextcontrol-barcode/llms-full.txt)
