TX Text Control .NET for Windows Forms

StylesSidebar Property

Property|Introduced in 26.0
Namespace
TXTextControl.Windows.Forms.Ribbon
Package
TXTextControl.TextControl.WinForms.SDK as TXTextControl.Windows.Forms.dll from the private NuGet feed or Text Control Offline Packages

Description

Gets or sets the sidebar that is connected to the RibbonFormattingTab's TXITEM_StylesGroup's dialog box launcher. The default value is null.

Syntax

public Sidebar StylesSidebar { get; set; }

Examples

The following example uses RibbonFormattingTab.StylesSidebar to configure styles sidebar as part of the ribbon formatting tab workflow. The change is then applied to the active document or user interface.

ribbonFormattingTab.StylesSidebar = new TXTextControl.Windows.Forms.Sidebar();
ribbonFormattingTab.Update();

Remarks

Clicking the TXITEM_StylesGroup's dialog box launcher displays or hides the connected sidebar. On clicking the dialog box launcher to show the sidebar, its content layout is set to SidebarContentLayout.Styles.