StylesSidebar Property
- Namespace
TXTextControl.Windows. Forms. Ribbon
- Package
TXTextControl.asTextControl. WinForms. SDK TXTextControl.from the private NuGet feed or Text Control Offline PackagesWindows. Forms. dll
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; }Public Property StylesSidebar As SidebarExamples
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();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.