# RibbonFormattingTab.ReplaceHorizontalSidebar Property

> Specifies the name of the horizontal sidebar that is connected to the RibbonFormattingTab's TXITEM_Replace 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:** 26.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 > RibbonFormattingTab.ReplaceHorizontalSidebar Property
- **677 words**
- **Web URL:** https://docs.textcontrol.com/tx-text-control-dotnet-wpf/reference/txtextcontrol-wpf/ribbonformattingtab/replacehorizontalsidebar-property/
- **LLMs URL:** https://docs.textcontrol.com/tx-text-control-dotnet-wpf/reference/txtextcontrol-wpf/ribbonformattingtab/replacehorizontalsidebar-property/llms.txt
- **LLMs-Full URL:** https://docs.textcontrol.com/tx-text-control-dotnet-wpf/reference/txtextcontrol-wpf/ribbonformattingtab/replacehorizontalsidebar-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 RibbonFormattingTab's [TXITEM\_Replace](https://docs.textcontrol.com/tx-text-control-dotnet-wpf/reference/txtextcontrol-wpf/ribbonformattingtab/ribbonitem-enumeration/llms-full.txt) button. The property value is `String.Empty`, if there is no sidebar connected.

### Syntax

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

```vbnet
Public Property ReplaceHorizontalSidebar As String
```

### Examples

The following example uses `RibbonFormattingTab.ReplaceHorizontalSidebar` to configure replace horizontal sidebar as part of the ribbon formatting tab workflow. The configured value is checked before the workflow continues.

```csharp
ribbonFormattingTab.ReplaceHorizontalSidebar = "Quarterly report";
if (!string.IsNullOrWhiteSpace(ribbonFormattingTab.ReplaceHorizontalSidebar))
{
    Console.WriteLine($"Replace Horizontal Sidebar: {ribbonFormattingTab.ReplaceHorizontalSidebar}");
}
```

```vbnet
ribbonFormattingTab.ReplaceHorizontalSidebar = "Quarterly report"
If Not String.IsNullOrWhiteSpace(ribbonFormattingTab.ReplaceHorizontalSidebar) Then
    Console.WriteLine($"Replace Horizontal Sidebar: {ribbonFormattingTab.ReplaceHorizontalSidebar}")
End If
```

### Remarks

Checking the `TXITEM_Replace` 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 [non-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.Replace](https://docs.textcontrol.com/tx-text-control-dotnet-wpf/reference/txtextcontrol-wpf/sidebar/sidebarcontentlayout-enumeration/llms-full.txt) and the [connected vertical replace sidebar](https://docs.textcontrol.com/tx-text-control-dotnet-wpf/reference/txtextcontrol-wpf/ribbonformattingtab/replacesidebar-property/llms-full.txt) is hidden.

---

## Nearby

- **Previous:** [RibbonFormattingTab.GotoSidebar Property](https://docs.textcontrol.com/tx-text-control-dotnet-wpf/reference/txtextcontrol-wpf/ribbonformattingtab/gotosidebar-property/llms-full.txt)
- **Next:** [RibbonFormattingTab.ReplaceSidebar Property](https://docs.textcontrol.com/tx-text-control-dotnet-wpf/reference/txtextcontrol-wpf/ribbonformattingtab/replacesidebar-property/llms-full.txt)
