# ContentControlFieldAdapter.Id Property

> Gets or sets the content control's id.

- **Product:** TX Text Control .NET for Windows Forms
- **Section:** Reference
- **Kind:** Property
- **Introduced:** 21.0
- **Namespace:** `TXTextControl.DocumentServer.Fields`
- **Package:** `TXTextControl.TextControl.WinForms.SDK` (assembly `TXDocumentServer.dll`, from the private NuGet feed or Text Control Offline Packages)
- **.NET Framework:** reference `TXDocumentServer.dll` from the setup
- **Path:** TX Text Control .NET for Windows Forms > Reference > TXTextControl.DocumentServer.Fields > ContentControlFieldAdapter.Id Property
- **306 words**
- **Web URL:** https://docs.textcontrol.com/tx-text-control-dotnet-winforms/reference/txtextcontrol-documentserver-fields/contentcontrolfieldadapter/id-property/
- **LLMs URL:** https://docs.textcontrol.com/tx-text-control-dotnet-winforms/reference/txtextcontrol-documentserver-fields/contentcontrolfieldadapter/id-property/llms.txt
- **LLMs-Full URL:** https://docs.textcontrol.com/tx-text-control-dotnet-winforms/reference/txtextcontrol-documentserver-fields/contentcontrolfieldadapter/id-property/llms-full.txt

---

### Description

Gets or sets the content control's id.

### Syntax

```csharp
public long Id { get; set; }
```

```vbnet
Public Property Id As Long
```

### Examples

The following example uses `ContentControlFieldAdapter.Id` to configure id as part of the content control field adapter workflow. The configured value is checked before the workflow continues.

```csharp
contentControlFieldAdapter.Id = 100;
Console.WriteLine($"Id used by Content Control Field Adapter: {contentControlFieldAdapter.Id}");
```

```vbnet
contentControlFieldAdapter.Id = 100
Console.WriteLine($"Id used by Content Control Field Adapter: {contentControlFieldAdapter.Id}")
```

---

## Nearby

- **Previous:** [ContentControlFieldAdapter.ContentEditable Property](https://docs.textcontrol.com/tx-text-control-dotnet-winforms/reference/txtextcontrol-documentserver-fields/contentcontrolfieldadapter/contenteditable-property/llms-full.txt)
- **Next:** [ContentControlFieldAdapter.Placeholder Property](https://docs.textcontrol.com/tx-text-control-dotnet-winforms/reference/txtextcontrol-documentserver-fields/contentcontrolfieldadapter/placeholder-property/llms-full.txt)
