The WPF.
public class RibbonFormattingTab : System.Windows.Controls.Ribbon.RibbonTab
Public Class RibbonFormattingTab
Inherits System.Windows.Controls.Ribbon.RibbonTab
Introduced: X12.
The Ribbon
TXTextControl.WPF.RibbonFormattingTab ribbonFormattingTab1 = new TXTextControl.WPF.RibbonFormattingTab();
FrameworkElement boldButton = ribbonFormattingTab1.FindName(TXTextControl.WPF.RibbonFormattingTab.RibbonItem.TXITEM_Bold.ToString()) as FrameworkElement;
ItemsControl ic = boldButton.Parent as ItemsControl;
if (ic != null) {
ic.Items.Remove(boldButton);
System.Windows.Controls.Ribbon.RibbonButton ribbonButton = new System.Windows.Controls.Ribbon.RibbonButton();
ribbonButton.Label = "New Button";
ic.Items.Insert(0, ribbonButton);
}
Dim ribbonFormattingTab1 As New TXTextControl.WPF.RibbonFormattingTab()
Dim boldButton As FrameworkElement = TryCast(ribbonFormattingTab1.FindName(TXTextControl.WPF.RibbonFormattingTab.RibbonItem.TXITEM_Bold.ToString()), FrameworkElement)
Dim ic As ItemsControl = TryCast(boldButton.Parent, ItemsControl)
If ic IsNot Nothing Then
ic.Items.Remove(boldButton)
Dim ribbonButton As New System.Windows.Controls.Ribbon.RibbonButton()
ribbonButton.Label = "New Button"
ic.Items.Insert(0, ribbonButton)
End If
Enumeration | Description |
---|---|
Ribbon |
Each Ribbon |
Ribbon |
Each Ribbon |
Property | Description |
---|---|
Find |
Specifies the name of the horizontal sidebar that is connected to the Ribbon |
Find |
Specifies the name of the vertical sidebar that is connected to the Ribbon |
Goto |
Specifies the name of the horizontal sidebar that is connected to the Ribbon |
Goto |
Specifies the name of the vertical sidebar that is connected to the Ribbon |
Replace |
Specifies the name of the horizontal sidebar that is connected to the Ribbon |
Replace |
Specifies the name of the vertical sidebar that is connected to the Ribbon |
Styles |
Specifies the name of the sidebar that is connected to the Ribbon |