TX Text Control .NET for Windows Forms

Alignment Property

Property|Introduced in 24.0
Namespace
TXTextControl.Windows.Forms.Ribbon
Package
TXTextControl.TextControl.WinForms.SDK as TXTextControl.Windows.Forms.dll from the private NuGet feed or Text Control Offline Packages

Description

Gets the alignment of this RibbonSeperator. If the separator is added to the drop down menu of a RibbonMenuButton or to the Ribbon.ApplicationMenuItems collection the separator is aligned horizontally. Adding the separator to a HorizontalRibbonGroup the separator causes a vertical alignment.

Syntax

public RibbonSeperator.SeperatorAlignment Alignment { get; }

Examples

The following example includes the alignment value in application diagnostics. The created object is then available to the surrounding document workflow.

Console.WriteLine($"Alignment: {ribbonSeperator.Alignment}");
Console.WriteLine("Ribbon Seperator is ready for use.");

Limitations

Read only.