# RibbonFormattingTab Class

> The WPF.RibbonFormattingTab class represents a ribbon tab for setting font and paragraph attributes, formatting styles and for handling the clipboard. It is inherited from the System.Windows.Controls.Ribbon.RibbonTab class and must be hosted in a System.Windows.Controls.Ribbon.Ribbon object. It can be connected with a WPF.TextControl through the WPF.TextControl.RibbonFormattingTab property. Each item has a name, available through its Name property, which corresponds with a member of the WPF.RibbonFormattingTab.RibbonItem enumeration. The FrameworkElement.FindName method can be used to get a certain item and manipulate, move or delete it.

- **Product:** TX Text Control .NET for WPF
- **Section:** Reference
- **Kind:** Class
- **Introduced:** 22.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
- **Inherits:** `System.Windows.Controls.Ribbon.RibbonTab`
- **Implements:** `System.Windows.Markup.IComponentConnector`
- **Path:** TX Text Control .NET for WPF > Reference > TXTextControl.WPF > RibbonFormattingTab Class
- **2195 words**
- **Web URL:** https://docs.textcontrol.com/tx-text-control-dotnet-wpf/reference/txtextcontrol-wpf/ribbonformattingtab/
- **LLMs URL:** https://docs.textcontrol.com/tx-text-control-dotnet-wpf/reference/txtextcontrol-wpf/ribbonformattingtab/llms.txt
- **LLMs-Full URL:** https://docs.textcontrol.com/tx-text-control-dotnet-wpf/reference/txtextcontrol-wpf/ribbonformattingtab/llms-full.txt

---

### Description

The WPF.RibbonFormattingTab class represents a ribbon tab for setting font and paragraph attributes, formatting styles and for handling the clipboard. It is inherited from the `System.Windows.Controls.Ribbon.RibbonTab` class and must be hosted in a `System.Windows.Controls.Ribbon.Ribbon` object. It can be connected with a [WPF.TextControl](https://docs.textcontrol.com/tx-text-control-dotnet-wpf/reference/txtextcontrol-wpf/textcontrol/llms-full.txt) through the [WPF.TextControl.RibbonFormattingTab](https://docs.textcontrol.com/tx-text-control-dotnet-wpf/reference/txtextcontrol-wpf/textcontrol/ribbonformattingtab-property/llms-full.txt) property. Each item has a name, available through its Name property, which corresponds with a member of the [WPF.RibbonFormattingTab.RibbonItem](https://docs.textcontrol.com/tx-text-control-dotnet-wpf/reference/txtextcontrol-wpf/ribbonformattingtab/ribbonitem-enumeration/llms-full.txt) enumeration. The `FrameworkElement.FindName` method can be used to get a certain item and manipulate, move or delete it.

### Syntax

```csharp
public class RibbonFormattingTab : System.Windows.Controls.Ribbon.RibbonTab, IComponentConnector
```

```vbnet
Public Class RibbonFormattingTab
    Inherits System.Windows.Controls.Ribbon.RibbonTab
    Implements IComponentConnector
```

### Examples

The RibbonFormattingTab can be configured. The following example removes the Bold button from a RibbonFormattingTab and inserts a simple button instead:

```csharp
FrameworkElement boldButton = ribbonFormattingTab1.FindName(RibbonFormattingTab.RibbonItem.TXITEM_Bold.ToString()) as FrameworkElement;
ItemsControl ic = boldButton.Parent as ItemsControl;
if (ic != null)
{
    ic.Items.Remove(boldButton);
    RibbonButton ribbonButton = new RibbonButton();
    ribbonButton.Label = "New Button";
    ic.Items.Insert(0, ribbonButton);
}
```

```vbnet
Dim boldButton As FrameworkElement = TryCast(ribbonFormattingTab1.FindName(RibbonFormattingTab.RibbonItem.TXITEM_Bold.ToString()), FrameworkElement)
Dim ic As ItemsControl = TryCast(boldButton.Parent, ItemsControl)
If ic IsNot Nothing Then
    ic.Items.Remove(boldButton)
    Dim ribbonButton As New RibbonButton()
    ribbonButton.Label = "New Button"
    ic.Items.Insert(0, ribbonButton)
End If
```

The following example creates a Ribbon Formatting Tab instance and configures its find horizontal sidebar setting for a document workflow.

```csharp
TXTextControl.WPF.RibbonFormattingTab ribbonFormattingTab = new();
ribbonFormattingTab.FindHorizontalSidebar = "Quarterly report";
```

```vbnet
Dim ribbonFormattingTab As New TXTextControl.WPF.RibbonFormattingTab()
ribbonFormattingTab.FindHorizontalSidebar = "Quarterly report"
```

---

## In This Section

- [RibbonFormattingTab.FindHorizontalSidebar Property](https://docs.textcontrol.com/tx-text-control-dotnet-wpf/reference/txtextcontrol-wpf/ribbonformattingtab/findhorizontalsidebar-property/llms-full.txt): Specifies the name of the horizontal sidebar that is connected to the RibbonFormattingTab's TXITEM_Find button. The property value is String.Empty, if there is no sidebar connected.
- [RibbonFormattingTab.FindSidebar Property](https://docs.textcontrol.com/tx-text-control-dotnet-wpf/reference/txtextcontrol-wpf/ribbonformattingtab/findsidebar-property/llms-full.txt): Specifies the name of the vertical sidebar that is connected to the RibbonFormattingTab's TXITEM_Find button. The property value is String.Empty, if there is no sidebar connected.
- [RibbonFormattingTab.GotoHorizontalSidebar Property](https://docs.textcontrol.com/tx-text-control-dotnet-wpf/reference/txtextcontrol-wpf/ribbonformattingtab/gotohorizontalsidebar-property/llms-full.txt): Specifies the name of the horizontal sidebar that is connected to the RibbonFormattingTab's TXITEM_Goto button. The property value is String.Empty, if there is no sidebar connected.
- [RibbonFormattingTab.GotoSidebar Property](https://docs.textcontrol.com/tx-text-control-dotnet-wpf/reference/txtextcontrol-wpf/ribbonformattingtab/gotosidebar-property/llms-full.txt): Specifies the name of the vertical sidebar that is connected to the RibbonFormattingTab's TXITEM_Goto button. The property value is String.Empty, if there is no sidebar connected.
- [RibbonFormattingTab.ReplaceHorizontalSidebar Property](https://docs.textcontrol.com/tx-text-control-dotnet-wpf/reference/txtextcontrol-wpf/ribbonformattingtab/replacehorizontalsidebar-property/llms-full.txt): 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.
- [RibbonFormattingTab.ReplaceSidebar Property](https://docs.textcontrol.com/tx-text-control-dotnet-wpf/reference/txtextcontrol-wpf/ribbonformattingtab/replacesidebar-property/llms-full.txt): Specifies the name of the vertical sidebar that is connected to the RibbonFormattingTab's TXITEM_Replace button. The property value is String.Empty, if there is no sidebar connected.
- [RibbonFormattingTab.RibbonDropDownItem Enumeration](https://docs.textcontrol.com/tx-text-control-dotnet-wpf/reference/txtextcontrol-wpf/ribbonformattingtab/ribbondropdownitem-enumeration/llms-full.txt): Each RibbonDropDownItem represents a drop-down item in the RibbonFormattingTab. The corresponding string of a RibbonDropDownItem is the same as the item's Name property. The RibbonDropDownItem enumeration can be used with the ResourceProvider class that provides static methods to receive bitmaps or strings which are associated with the corresponding ribbon drop-down item.
- [RibbonFormattingTab.RibbonItem Enumeration](https://docs.textcontrol.com/tx-text-control-dotnet-wpf/reference/txtextcontrol-wpf/ribbonformattingtab/ribbonitem-enumeration/llms-full.txt): Each RibbonItem represents an item in the RibbonFormattingTab that is not a drop-down item. The corresponding string of a RibbonItem is the same as the item's Name property. The RibbonItem enumeration can be used with the RibbonFormattingTab's FrameworkElement.FindName method to get an item and manipulate it or with the ResourceProvider class that provides static methods to receive bitmaps or strings which are associated with the corresponding ribbon item.
- [RibbonFormattingTab.StylesSidebar Property](https://docs.textcontrol.com/tx-text-control-dotnet-wpf/reference/txtextcontrol-wpf/ribbonformattingtab/stylessidebar-property/llms-full.txt): Specifies the name of the sidebar that is connected to the RibbonFormattingTab's TXITEM_StyleName's Change Styles drop down item. The property value is String.Empty, if there is no sidebar connected.

---

## Nearby

- **Previous:** [ResourceProvider.ShapeItem Enumeration](https://docs.textcontrol.com/tx-text-control-dotnet-wpf/reference/txtextcontrol-wpf/resourceprovider/shapeitem-enumeration/llms-full.txt)
- **Next:** [RibbonFormattingTab.FindHorizontalSidebar Property](https://docs.textcontrol.com/tx-text-control-dotnet-wpf/reference/txtextcontrol-wpf/ribbonformattingtab/findhorizontalsidebar-property/llms-full.txt)
