ReplaceHorizontalSidebar Property
- Namespace
TXTextControl.WPF
- Package
TXTextControl.asTextControl. WPF. SDK TXTextControl.from the private NuGet feed or Text Control Offline PackagesWPF. dll
Description
Specifies the name of the horizontal sidebar that is connected to the RibbonFormattingTab's TXITEM_Replace button. The property value is String.Empty, if there is no sidebar connected.
Syntax
public string ReplaceHorizontalSidebar { get; set; }Public Property ReplaceHorizontalSidebar As StringExamples
The following example uses RibbonFormattingTab.ReplaceHorizontalSidebar to configure replace horizontal sidebar as part of the ribbon formatting tab workflow. The configured value is checked before the workflow continues.
ribbonFormattingTab.ReplaceHorizontalSidebar = "Quarterly report";
if (!string.IsNullOrWhiteSpace(ribbonFormattingTab.ReplaceHorizontalSidebar))
{
Console.WriteLine($"Replace Horizontal Sidebar: {ribbonFormattingTab.ReplaceHorizontalSidebar}");
}ribbonFormattingTab.ReplaceHorizontalSidebar = "Quarterly report"
If Not String.IsNullOrWhiteSpace(ribbonFormattingTab.ReplaceHorizontalSidebar) Then
Console.WriteLine($"Replace Horizontal Sidebar: {ribbonFormattingTab.ReplaceHorizontalSidebar}")
End IfRemarks
Checking the TXITEM_Replace 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 non-sizable dialog. In both cases, the sidebar's content layout is set to SidebarContentLayout.Replace and the connected vertical replace sidebar is hidden.