# RibbonListView.RibbonListViewItemDropDown.SelectedItem Property

> Gets or sets the current selected drop-down item. If the RibbonListViewItemDropDown.ShowCheckMargin property is set to true, the corresponding item of the drop-down menu is checked when it is opened . Setting null or a string that is not part of the RibbonListViewItemDropDown.Items string array deselects the current selected drop-down item. If the RibbonListViewItemDropDown.ShowText property is set to true, setting this property updates the RibbonListViewItemDropDown.Text property with the same value. The default value is null.

- **Product:** TX Text Control .NET for Windows Forms
- **Section:** Reference
- **Kind:** Property
- **Introduced:** 29.0
- **Namespace:** `TXTextControl.Windows.Forms.Ribbon`
- **Package:** `TXTextControl.TextControl.WinForms.SDK` (assembly `TXTextControl.Windows.Forms.dll`, from the private NuGet feed or Text Control Offline Packages)
- **.NET Framework:** reference `TXTextControl.Windows.Forms.dll` from the setup
- **Path:** TX Text Control .NET for Windows Forms > Reference > TXTextControl.Windows.Forms.Ribbon > RibbonListView.RibbonListViewItemDropDown.SelectedItem Property
- **629 words**
- **Web URL:** https://docs.textcontrol.com/tx-text-control-dotnet-winforms/reference/txtextcontrol-windows-forms-ribbon/ribbonlistview-ribbonlistviewitemdropdown/selecteditem-property/
- **LLMs URL:** https://docs.textcontrol.com/tx-text-control-dotnet-winforms/reference/txtextcontrol-windows-forms-ribbon/ribbonlistview-ribbonlistviewitemdropdown/selecteditem-property/llms.txt
- **LLMs-Full URL:** https://docs.textcontrol.com/tx-text-control-dotnet-winforms/reference/txtextcontrol-windows-forms-ribbon/ribbonlistview-ribbonlistviewitemdropdown/selecteditem-property/llms-full.txt

---

### Description

Gets or sets the current selected drop-down item. If the [RibbonListViewItemDropDown.ShowCheckMargin](https://docs.textcontrol.com/tx-text-control-dotnet-winforms/reference/txtextcontrol-windows-forms-ribbon/ribbonlistview-ribbonlistviewitemdropdown/showcheckmargin-property/llms-full.txt) property is set to true, the corresponding item of the drop-down menu is checked when it is opened . Setting null or a string that is not part of the [RibbonListViewItemDropDown.Items](https://docs.textcontrol.com/tx-text-control-dotnet-winforms/reference/txtextcontrol-windows-forms-ribbon/ribbonlistview-ribbonlistviewitemdropdown/items-property/llms-full.txt) string array deselects the current selected drop-down item. If the [RibbonListViewItemDropDown.ShowText](https://docs.textcontrol.com/tx-text-control-dotnet-winforms/reference/txtextcontrol-windows-forms-ribbon/ribbonlistview-ribbonlistviewitemdropdown/showtext-property/llms-full.txt) property is set to true, setting this property updates the [RibbonListViewItemDropDown.Text](https://docs.textcontrol.com/tx-text-control-dotnet-winforms/reference/txtextcontrol-windows-forms-ribbon/ribbonlistview-ribbonlistviewitemdropdown/text-property/llms-full.txt) property with the same value. The default value is null.

### Syntax

```csharp
public string SelectedItem { get; set; }
```

```vbnet
Public Property SelectedItem As String
```

### Examples

The following example uses `RibbonListViewItemDropDown.SelectedItem` to configure selected item as part of the ribbon list view item drop down workflow. The configured value is checked before the workflow continues.

```csharp
ribbonListViewItemDropDown.SelectedItem = "Quarterly report";
if (!string.IsNullOrWhiteSpace(ribbonListViewItemDropDown.SelectedItem))
{
    Console.WriteLine($"Selected Item: {ribbonListViewItemDropDown.SelectedItem}");
}
```

```vbnet
ribbonListViewItemDropDown.SelectedItem = "Quarterly report"
If Not String.IsNullOrWhiteSpace(ribbonListViewItemDropDown.SelectedItem) Then
    Console.WriteLine($"Selected Item: {ribbonListViewItemDropDown.SelectedItem}")
End If
```

---

## Nearby

- **Previous:** [RibbonListView.RibbonListViewItemDropDown.SelectedIndex Property](https://docs.textcontrol.com/tx-text-control-dotnet-winforms/reference/txtextcontrol-windows-forms-ribbon/ribbonlistview-ribbonlistviewitemdropdown/selectedindex-property/llms-full.txt)
- **Next:** [RibbonListView.RibbonListViewItemDropDown.ShowCheckMargin Property](https://docs.textcontrol.com/tx-text-control-dotnet-winforms/reference/txtextcontrol-windows-forms-ribbon/ribbonlistview-ribbonlistviewitemdropdown/showcheckmargin-property/llms-full.txt)
