Struct DataGridCellsPanel.ColumnMeasurementState
Structure holding information about the column measurement state.
Namespace: Sartorius.SAF.Presentation.Controls
Assembly: Sartorius.SAF.Presentation.Controls.dll
Syntax
[SuppressMessage("Design", "CA1066:Type {0} should implement IEquatable<T> because it overrides Equals", Justification = "Internal usage. Also see ColumnMeasurementStateComparer.")]
[SuppressMessage("Performance", "CA1815:Override equals and operator equals on value types", Justification = "Internal usage. Also see ColumnMeasurementStateComparer.")]
[SuppressMessage("Usage", "CA2231:Overload operator equals on overriding value type Equals", Justification = "Internal usage. Also see ColumnMeasurementStateComparer.")]
protected struct DataGridCellsPanel.ColumnMeasurementState
Constructors
View SourceColumnMeasurementState(double, double, IEnumerable<DataGridLength>, 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 |
|---|---|---|
| double | minWidth | The minimum width of the column stack. |
| double | maxWidth | The maximum width of the column stack. |
| IEnumerable<DataGridLength> | widths | The widths of the columns in the stack. |
| DataGridLength? | reference | The reference width of the previous measurement run. |
ColumnMeasurementState(double, double, DataGridLength)
Creates a new instance of the ColumnMeasurementState structure.
Declaration
public ColumnMeasurementState(double minWidth, double maxWidth, DataGridLength width)
Parameters
| Type | Name | Description |
|---|---|---|
| double | minWidth | The minimum width of the column stack. |
| double | maxWidth | The maximum width of the column stack. |
| DataGridLength | width | The width of the column stack. |
ColumnMeasurementState(double, double, DataGridLength, 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 |
|---|---|---|
| double | minWidth | The minimum width of the column stack. |
| double | maxWidth | The maximum width of the column stack. |
| DataGridLength | width | The width of the column stack. |
| DataGridLength? | reference | The reference width of the previous measurement run. |
ColumnMeasurementState(DataGridColumn[], DataGridLength?)
Creates a new instance of the ColumnMeasurementState structure for the specified DataGridColumns.
Declaration
public ColumnMeasurementState(DataGridColumn[] columns, DataGridLength? reference)
Parameters
| Type | Name | Description |
|---|---|---|
| DataGridColumn[] | columns | The DataGridColumns to create the ColumnMeasurementState for. |
| DataGridLength? | reference | The reference width of the previous measurement run. |
Properties
View SourceHasAuto
Gets a value indicating whether this stack contains a Auto column.
Declaration
public bool HasAuto { get; }
Property Value
| Type | Description |
|---|---|
| bool |
HasSizeToCells
Gets a value indicating whether this stack contains a SizeToCells column.
Declaration
public bool HasSizeToCells { get; }
Property Value
| Type | Description |
|---|---|
| bool |
HasSizeToHeader
Gets a value indicating whether this stack contains a SizeToHeader column.
Declaration
public bool HasSizeToHeader { get; }
Property Value
| Type | Description |
|---|---|
| bool |
MaxWidth
The maximum width of the column.
Declaration
public double MaxWidth { readonly get; set; }
Property Value
| Type | Description |
|---|---|
| double |
MinWidth
The minimum width of the column.
Declaration
public double MinWidth { readonly get; set; }
Property Value
| Type | Description |
|---|---|
| double |
Width
Gets the width of the stacked columns.
Declaration
public DataGridLength Width { get; }
Property Value
| Type | Description |
|---|---|
| DataGridLength |
Widths
Gets the widths of the stacked columns.
Declaration
public readonly DataGridLength[] Widths { get; }
Property Value
| Type | Description |
|---|---|
| DataGridLength[] |
Methods
View SourceEquals(object)
Indicates whether this instance and a specified object are equal.
Declaration
public override readonly bool Equals(object obj)
Parameters
| Type | Name | Description |
|---|---|---|
| object | obj | The object to compare with the current instance. |
Returns
| Type | Description |
|---|---|
| bool | true if |
Overrides
View SourceGetHashCode()
Returns the hash code for this instance.
Declaration
public override readonly int GetHashCode()
Returns
| Type | Description |
|---|---|
| int | A 32-bit signed integer that is the hash code for this instance. |