CommentsSidebar 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 vertical sidebar that is connected to the RibbonProofingTab's TXITEM_Comments button. The default value is null.
Syntax
public Sidebar CommentsSidebar { get; set; }Public Property CommentsSidebar As SidebarExamples
The following example uses RibbonProofingTab.CommentsSidebar to configure comments sidebar as part of the ribbon proofing tab workflow. The change is then applied to the active document or user interface.
ribbonProofingTab.CommentsSidebar = new TXTextControl.Windows.Forms.Sidebar();
ribbonProofingTab.Update();ribbonProofingTab.CommentsSidebar = New TXTextControl.Windows.Forms.Sidebar()
ribbonProofingTab.Update()Remarks
Checking the TXITEM_Comments button, if the corresponding vertical sidebar drop down button is toggled, displays the connected sidebar as pinned. If the drop down button is not toggled, the sidebar is represented by a sizable dialog. In both cases, the sidebar's content layout is set to SidebarContentLayout.Comments and the connected horizontal comments sidebar is hidden.