TX Text Control .NET for WPF

CommentsHorizontalSidebar Property

Property|Introduced in 30.0
Namespace
TXTextControl.WPF
Package
TXTextControl.TextControl.WPF.SDK as TXTextControl.WPF.dll from the private NuGet feed or Text Control Offline Packages

Description

Specifies the name of the horizontal sidebar that is connected to the RibbonProofingTab's TXITEM_Comments button. The property value is String.Empty, if there is no sidebar connected.

Syntax

public string CommentsHorizontalSidebar { get; set; }

Examples

The following example uses RibbonProofingTab.CommentsHorizontalSidebar to configure comments horizontal sidebar as part of the ribbon proofing tab workflow. The configured value is checked before the workflow continues.

ribbonProofingTab.CommentsHorizontalSidebar = "Quarterly report";
if (!string.IsNullOrWhiteSpace(ribbonProofingTab.CommentsHorizontalSidebar))
{
    Console.WriteLine($"Comments Horizontal Sidebar: {ribbonProofingTab.CommentsHorizontalSidebar}");
}

Remarks

Checking the TXITEM_Comments button, if the corresponding horizontal 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 vertical comments sidebar is hidden.