TX Text Control .NET for Windows Forms

ColumnWidth 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 width, in 1/96 inch, for each column in this RibbonListView. This value equals to the width of the RibbonListView's broadest RibbonListViewItem plus the horizontal cell padding value.

Syntax

public int ColumnWidth { get; }

Examples

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

Console.WriteLine($"Column Width: {ribbonListView.ColumnWidth}");
Console.WriteLine("Ribbon List View is ready for use.");

Limitations

Read only.