# PageNumberFieldCollection.Item Property

> Gets the field with the specified number from the collection. The number must be between 1 and Count. In C# this property is the indexer for the PageNumberFieldCollection class.

- **Product:** TX Text Control .NET for Windows Forms
- **Section:** Reference
- **Kind:** Property
- **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 > PageNumberFieldCollection.Item Property
- **519 words**
- **Web URL:** https://docs.textcontrol.com/tx-text-control-dotnet-winforms/reference/txtextcontrol/pagenumberfieldcollection/item-property/
- **LLMs URL:** https://docs.textcontrol.com/tx-text-control-dotnet-winforms/reference/txtextcontrol/pagenumberfieldcollection/item-property/llms.txt
- **LLMs-Full URL:** https://docs.textcontrol.com/tx-text-control-dotnet-winforms/reference/txtextcontrol/pagenumberfieldcollection/item-property/llms-full.txt

---

### Description

Gets the field with the specified number from the collection. The number must be between 1 and Count. In C# this property is the indexer for the PageNumberFieldCollection class.

### Syntax

```csharp
public PageNumberField this[int number] { get; }
```

```vbnet
Default Public ReadOnly Property Item(number As Integer) As PageNumberField
```

### Examples

The following example updates the first page-number field in the footer.

```csharp
textControl.HeadersAndFooters.Add(HeaderFooterType.Footer);
HeaderFooter footer = textControl.HeadersAndFooters.GetItem(HeaderFooterType.Footer);
PageNumberFieldCollection fields = footer.PageNumberFields;
fields.Add(new PageNumberField());
fields[1].NumberFormat = NumberFormat.RomanNumbers;
```

```vbnet
textControl.HeadersAndFooters.Add(HeaderFooterType.Footer)
Dim footer As HeaderFooter = textControl.HeadersAndFooters.GetItem(HeaderFooterType.Footer)
Dim fields As PageNumberFieldCollection = footer.PageNumberFields
fields.Add(New PageNumberField())
fields.Item(1).NumberFormat = NumberFormat.RomanNumbers
```

### Limitations

Read only.

---

## Nearby

- **Previous:** [PageNumberFieldCollection.GetItem Method](https://docs.textcontrol.com/tx-text-control-dotnet-winforms/reference/txtextcontrol/pagenumberfieldcollection/getitem-method/llms-full.txt)
- **Next:** [PageNumberFieldCollection.Remove Method](https://docs.textcontrol.com/tx-text-control-dotnet-winforms/reference/txtextcontrol/pagenumberfieldcollection/remove-method/llms-full.txt)
