# DialogButtonCollection.Item Method

> Gets a DialogButton from the collection. This property is the indexer for the DialogButtonCollection class.

- **Product:** TX Spell .NET for WPF
- **Section:** Reference
- **Kind:** Method
- **Introduced:** 3.0
- **Namespace:** `TXTextControl.WPF.Proofing`
- **Package:** `TXTextControl.TXSpell.WPF.SDK` (assembly `TXSpell.WPF.dll`, from the private NuGet feed or Text Control Offline Packages)
- **.NET Framework:** reference `TXSpell.WPF.dll` from the setup
- **Path:** TX Spell .NET for WPF > Reference > TXTextControl.WPF.Proofing > DialogButtonCollection.Item Method
- **357 words**
- **Web URL:** https://docs.textcontrol.com/tx-spell-dotnet-wpf/reference/txtextcontrol-wpf-proofing/dialogbuttoncollection/item-method/
- **LLMs URL:** https://docs.textcontrol.com/tx-spell-dotnet-wpf/reference/txtextcontrol-wpf-proofing/dialogbuttoncollection/item-method/llms.txt
- **LLMs-Full URL:** https://docs.textcontrol.com/tx-spell-dotnet-wpf/reference/txtextcontrol-wpf-proofing/dialogbuttoncollection/item-method/llms-full.txt

---

### Description

Gets a DialogButton from the collection. This property is the indexer for the DialogButtonCollection class.

### Syntax

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

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

### Return Value

The object of the type DialogButton at the specified index.

### Examples

The following example includes the item value in application diagnostics. The created object is then available to the surrounding document workflow.

```csharp
Console.WriteLine($"Item: {dialogButtonCollection[10]}");
Console.WriteLine("Dialog Button Collection is ready for use.");
```

```vbnet
Console.WriteLine($"Item: {dialogButtonCollection.Item(10)}")
Console.WriteLine("Dialog Button Collection is ready for use.")
```

---

## Nearby

- **Previous:** [DialogButtonCollection.AddRange Method](https://docs.textcontrol.com/tx-spell-dotnet-wpf/reference/txtextcontrol-wpf-proofing/dialogbuttoncollection/addrange-method/llms-full.txt)
- **Next:** [DialogButtonCollection.Remove Method](https://docs.textcontrol.com/tx-spell-dotnet-wpf/reference/txtextcontrol-wpf-proofing/dialogbuttoncollection/remove-method/llms-full.txt)
