Version

ActualLabelSize Property

Gets or sets actual label size. Setting this property emulates resizing of the column header via UI.
Syntax
'Declaration
 
Public Property ActualLabelSize As Size
public Size ActualLabelSize {get; set;}
Remarks

Setting this property will resize the column header to the specified size. However note that row-layout constraints of other columns may prevent the column header from actually realizing the specified size. In other words setting the property and then reading it may return a different value. Also note that setting this property on one column can modify the widths of the other columns if auto-fit columns functionality is enabled or row-layout constraints on other columns require it so. This method emulates resizing of the column header via user interface (UI).

You can specify width or height component of the value as 0 in which case that component will not be resized.

Requirements

Target Platforms: Windows 10, Windows 8.1, Windows 8, Windows 7, Windows Server 2012, Windows 7, Windows Vista SP1 or later, Windows XP SP3, Windows Server 2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or later), Windows Server 2003 SP2

See Also