Struct DataGridCellsPanel.ColumnMeasurementState
Structure holding information about the column measurement state.
Namespace: Sartorius.SAF.Presentation.Controls
Assembly: Sartorius.SAF.Presentation.Controls.dll
Syntax
protected struct ColumnMeasurementState
Constructors
View SourceColumnMeasurementState(Double, Double, IEnumerable<DataGridLength>, Nullable<DataGridLength>)
Creates a new instance of the DataGridCellsPanel.ColumnMeasurementState structure.
Declaration
public ColumnMeasurementState(double minWidth, double maxWidth, IEnumerable<DataGridLength> widths, DataGridLength? reference)
Parameters
Type | Name | Description |
---|---|---|
System.Double | minWidth | The minimum width of the column stack. |
System.Double | maxWidth | The maximum width of the column stack. |
System.Collections.Generic.IEnumerable<System.Windows.Controls.DataGridLength> | widths | The widths of the columns in the stack. |
System.Nullable<System.Windows.Controls.DataGridLength> | reference | The reference width of the previous measurement run. |
ColumnMeasurementState(Double, Double, DataGridLength)
Creates a new instance of the DataGridCellsPanel.ColumnMeasurementState structure.
Declaration
public ColumnMeasurementState(double minWidth, double maxWidth, DataGridLength width)
Parameters
Type | Name | Description |
---|---|---|
System.Double | minWidth | The minimum width of the column stack. |
System.Double | maxWidth | The maximum width of the column stack. |
System.Windows.Controls.DataGridLength | width | The width of the column stack. |
ColumnMeasurementState(Double, Double, DataGridLength, Nullable<DataGridLength>)
Creates a new instance of the DataGridCellsPanel.ColumnMeasurementState structure.
Declaration
public ColumnMeasurementState(double minWidth, double maxWidth, DataGridLength width, DataGridLength? reference)
Parameters
Type | Name | Description |
---|---|---|
System.Double | minWidth | The minimum width of the column stack. |
System.Double | maxWidth | The maximum width of the column stack. |
System.Windows.Controls.DataGridLength | width | The width of the column stack. |
System.Nullable<System.Windows.Controls.DataGridLength> | reference | The reference width of the previous measurement run. |
ColumnMeasurementState(DataGridColumn[], Nullable<DataGridLength>)
Creates a new instance of the DataGridCellsPanel.ColumnMeasurementState structure for the specified System.Windows.Controls.DataGridColumns.
Declaration
public ColumnMeasurementState(DataGridColumn[] columns, DataGridLength? reference)
Parameters
Type | Name | Description |
---|---|---|
System.Windows.Controls.DataGridColumn[] | columns | The System.Windows.Controls.DataGridColumns to create the DataGridCellsPanel.ColumnMeasurementState for. |
System.Nullable<System.Windows.Controls.DataGridLength> | reference | The reference width of the previous measurement run. |
Properties
View SourceHasAuto
Gets a value indicating whether this stack contains a System.Windows.Controls.DataGridLengthUnitType.Auto column.
Declaration
public readonly bool HasAuto { get; }
Property Value
Type | Description |
---|---|
System.Boolean |
HasSizeToCells
Gets a value indicating whether this stack contains a System.Windows.Controls.DataGridLengthUnitType.SizeToCells column.
Declaration
public readonly bool HasSizeToCells { get; }
Property Value
Type | Description |
---|---|
System.Boolean |
HasSizeToHeader
Gets a value indicating whether this stack contains a System.Windows.Controls.DataGridLengthUnitType.SizeToHeader column.
Declaration
public readonly bool HasSizeToHeader { get; }
Property Value
Type | Description |
---|---|
System.Boolean |
MaxWidth
The maximum width of the column.
Declaration
public double MaxWidth { readonly get; set; }
Property Value
Type | Description |
---|---|
System.Double |
MinWidth
The minimum width of the column.
Declaration
public double MinWidth { readonly get; set; }
Property Value
Type | Description |
---|---|
System.Double |
Width
Gets the width of the stacked columns.
Declaration
public readonly DataGridLength Width { get; }
Property Value
Type | Description |
---|---|
System.Windows.Controls.DataGridLength |
Widths
Gets the widths of the stacked columns.
Declaration
public readonly DataGridLength[] Widths { get; }
Property Value
Type | Description |
---|---|
System.Windows.Controls.DataGridLength[] |
Methods
View SourceEquals(Object)
Indicates whether this instance and a specified object are equal.
Declaration
public override bool Equals(object obj)
Parameters
Type | Name | Description |
---|---|---|
System.Object | obj | The object to compare with the current instance. |
Returns
Type | Description |
---|---|
System.Boolean | true if |
Overrides
GetHashCode()
Returns the hash code for this instance.
Declaration
public override int GetHashCode()
Returns
Type | Description |
---|---|
System.Int32 | A 32-bit signed integer that is the hash code for this instance. |