Version

SizeResolved Property (HeaderBase)

Resolved header size. This property returns the actual width and the height of the header.
Syntax
'Declaration
 
Public MustOverride ReadOnly Property SizeResolved As Size
public abstract Size SizeResolved {get;}
Example
Following code prints out the cell sizes and header sizes of all the columns in the grid.

Imports Infragistics.Shared
Imports Infragistics.Win
Imports Infragistics.Win.UltraWinGrid

    Private Sub Button1_Click(ByVal sender As Object, ByVal e As System.EventArgs) Handles button1.Click
        Dim columns As ColumnsCollection = Me.UltraGrid1.DisplayLayout.Bands(0).Columns

        Dim i As Integer
        For i = 0 To columns.Count - 1
            Dim column As UltraGridColumn = columns(i)
            Debug.WriteLine(column.Header.Caption & " column cells are sized " & column.CellSizeResolved.ToString() & " while headers are sized " & column.Header.SizeResolved.ToString())
        Next
    End Sub
using Infragistics.Shared;
using Infragistics.Win;
using Infragistics.Win.UltraWinGrid;
using System.Diagnostics;

		private void button1_Click(object sender, System.EventArgs e)
		{
			ColumnsCollection columns = this.ultraGrid1.DisplayLayout.Bands[0].Columns;

			for ( int i = 0; i < columns.Count; i++ )
			{
				UltraGridColumn column = columns[i];
				Debug.WriteLine( column.Header.Caption + " column cells are sized " + column.CellSizeResolved + " while headers are sized " + column.Header.SizeResolved );
			}
		}
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