TX Text Control .NET for Windows Forms

RibbonFormattingTab Class

Class|Introduced in 24.0
Namespace
TXTextControl.Windows.Forms.Ribbon
Package
TXTextControl.TextControl.WinForms.SDK from the private NuGet feed or Text Control Offline Packages
Assembly
TXTextControl.Windows.Forms.dll
Install
dotnet add package TXTextControl.TextControl.WinForms.SDK .NET 8 and later. For .NET Framework, reference TXTextControl.Windows.Forms.dll from the setup.
Inherits
  1. TabPage
  2. RibbonTab
  3. RibbonFormattingTab

Description

The RibbonFormattingTab class represents a ribbon tab for setting font and paragraph attributes, formatting styles and for handling the clipboard. To show the formatting attributes of a document the TextControl must be connected with the Ribbon that hosts the RibbonFormattingTab.

Syntax

public class RibbonFormattingTab : RibbonTab

Examples

The following example creates a Ribbon Formatting Tab instance and configures its key tip setting for a document workflow.

using TXTextControl.Windows.Forms.Ribbon.RibbonFormattingTab ribbonFormattingTab = new();
ribbonFormattingTab.KeyTip = "Quarterly report";

Members

Constructors

ConstructorDescription
RibbonFormattingTabInitializes a new instance of the RibbonFormattingTab class.
RibbonTabInitializes a new instance of the RibbonTab class. (Inherited from RibbonTab.)

Properties

PropertyDescription
FindHorizontalSidebarGets or sets the horizontal sidebar that is connected to the RibbonFormattingTab's TXITEM_Find button and its horizontal sidebar drop down button. The default value is null.
FindSidebarGets or sets the vertical sidebar that is connected to the RibbonFormattingTab's TXITEM_Find button and its vertical sidebar drop down button. The default value is null.
GotoHorizontalSidebarGets or sets the horizontal sidebar that is connected to the RibbonFormattingTab's TXITEM_Goto button. The default value is null.
GotoSidebarGets or sets the vertical sidebar that is connected to the RibbonFormattingTab's TXITEM_Goto button and its vertical sidebar drop down button. The default value is null.
KeyTipGets or sets the keyboard shortcut of the RibbonTab. (Inherited from RibbonTab.)
ReplaceHorizontalSidebarGets or sets the horizontal sidebar that is connected to the RibbonFormattingTab's TXITEM_Replace button. The default value is null.
ReplaceSidebarGets or sets the vertical sidebar that is connected to the RibbonFormattingTab's TXITEM_Replace button and its vertical sidebar drop down button. The default value is null.
RibbonGroupsGets a collection of all RibbonGroups in a RibbonTab. A RibbonGroup then hosts controls that represent application commands. The property value is of the type RibbonGroupCollection. (Inherited from RibbonTab.)
StylesSidebarGets or sets the sidebar that is connected to the RibbonFormattingTab's TXITEM_StylesGroup's dialog box launcher. The default value is null.

Methods

MethodDescription
FindItemFinds a control that has the provided RibbonFormattingTab.RibbonItem identifier.
ResetKeyTipNot described in the reference. public void ResetKeyTip();

Enumerations

EnumerationDescription
RibbonDropDownItemEach 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.
RibbonItemEach 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 FindItem 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.