# RibbonProofingTab.CommentsHorizontalSidebar Property

> Specifies the name of the horizontal sidebar that is connected to the RibbonProofingTab's TXITEM_Comments button. The property value is String.Empty, if there is no sidebar connected.

- **Product:** TX Text Control .NET for WPF
- **Section:** Reference
- **Kind:** Property
- **Introduced:** 30.0
- **Namespace:** `TXTextControl.WPF`
- **Package:** `TXTextControl.TextControl.WPF.SDK` (assembly `TXTextControl.WPF.dll`, from the private NuGet feed or Text Control Offline Packages)
- **.NET Framework:** reference `TXTextControl.WPF.dll` from the setup
- **Path:** TX Text Control .NET for WPF > Reference > TXTextControl.WPF > RibbonProofingTab.CommentsHorizontalSidebar Property
- **675 words**
- **Web URL:** https://docs.textcontrol.com/tx-text-control-dotnet-wpf/reference/txtextcontrol-wpf/ribbonproofingtab/commentshorizontalsidebar-property/
- **LLMs URL:** https://docs.textcontrol.com/tx-text-control-dotnet-wpf/reference/txtextcontrol-wpf/ribbonproofingtab/commentshorizontalsidebar-property/llms.txt
- **LLMs-Full URL:** https://docs.textcontrol.com/tx-text-control-dotnet-wpf/reference/txtextcontrol-wpf/ribbonproofingtab/commentshorizontalsidebar-property/llms-full.txt

---

### Description

Specifies the name of the horizontal [sidebar](https://docs.textcontrol.com/tx-text-control-dotnet-wpf/reference/txtextcontrol-wpf/sidebar/llms-full.txt) that is connected to the RibbonProofingTab's [TXITEM\_Comments](https://docs.textcontrol.com/tx-text-control-dotnet-wpf/reference/txtextcontrol-wpf/ribbonproofingtab/ribbonitem-enumeration/llms-full.txt) button. The property value is `String.Empty`, if there is no sidebar connected.

### Syntax

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

```vbnet
Public Property CommentsHorizontalSidebar As String
```

### Examples

The following example uses `RibbonProofingTab.CommentsHorizontalSidebar` to configure comments horizontal sidebar as part of the ribbon proofing tab workflow. The configured value is checked before the workflow continues.

```csharp
ribbonProofingTab.CommentsHorizontalSidebar = "Quarterly report";
if (!string.IsNullOrWhiteSpace(ribbonProofingTab.CommentsHorizontalSidebar))
{
    Console.WriteLine($"Comments Horizontal Sidebar: {ribbonProofingTab.CommentsHorizontalSidebar}");
}
```

```vbnet
ribbonProofingTab.CommentsHorizontalSidebar = "Quarterly report"
If Not String.IsNullOrWhiteSpace(ribbonProofingTab.CommentsHorizontalSidebar) Then
    Console.WriteLine($"Comments Horizontal Sidebar: {ribbonProofingTab.CommentsHorizontalSidebar}")
End If
```

### Remarks

Checking the `TXITEM_Comments` button, if the corresponding horizontal sidebar drop down button is toggled, displays the connected sidebar as [pinned](https://docs.textcontrol.com/tx-text-control-dotnet-wpf/reference/txtextcontrol-wpf/sidebar/ispinned-property/llms-full.txt). If the drop down button is not toggled, the sidebar is represented by a [sizable dialog](https://docs.textcontrol.com/tx-text-control-dotnet-wpf/reference/txtextcontrol-wpf/sidebar/dialogstyle-property/llms-full.txt). In both cases, the sidebar's [content layout](https://docs.textcontrol.com/tx-text-control-dotnet-wpf/reference/txtextcontrol-wpf/sidebar/contentlayout-property/llms-full.txt) is set to [SidebarContentLayout.Comments](https://docs.textcontrol.com/tx-text-control-dotnet-wpf/reference/txtextcontrol-wpf/sidebar/sidebarcontentlayout-enumeration/llms-full.txt) and the [connected vertical comments sidebar](https://docs.textcontrol.com/tx-text-control-dotnet-wpf/reference/txtextcontrol-wpf/ribbonproofingtab/commentssidebar-property/llms-full.txt) is hidden.

---

## Nearby

- **Previous:** [RibbonProofingTab Class](https://docs.textcontrol.com/tx-text-control-dotnet-wpf/reference/txtextcontrol-wpf/ribbonproofingtab/llms-full.txt)
- **Next:** [RibbonProofingTab.CommentsSidebar Property](https://docs.textcontrol.com/tx-text-control-dotnet-wpf/reference/txtextcontrol-wpf/ribbonproofingtab/commentssidebar-property/llms-full.txt)
