Show / Hide Table of Contents

Struct DataGridCellsPanel.ColumnMeasurementState

Structure holding information about the column measurement state.

ValueType.ToString()
object.Equals(object, object)
object.GetType()
object.ReferenceEquals(object, object)
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 Source

ColumnMeasurementState(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.

View Source

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.

View Source

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.

View Source

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 Source

HasAuto

Gets a value indicating whether this stack contains a Auto column.

Declaration
public bool HasAuto { get; }
Property Value
Type Description
bool
View Source

HasSizeToCells

Gets a value indicating whether this stack contains a SizeToCells column.

Declaration
public bool HasSizeToCells { get; }
Property Value
Type Description
bool
View Source

HasSizeToHeader

Gets a value indicating whether this stack contains a SizeToHeader column.

Declaration
public bool HasSizeToHeader { get; }
Property Value
Type Description
bool
View Source

MaxWidth

The maximum width of the column.

Declaration
public double MaxWidth { readonly get; set; }
Property Value
Type Description
double
View Source

MinWidth

The minimum width of the column.

Declaration
public double MinWidth { readonly get; set; }
Property Value
Type Description
double
View Source

Width

Gets the width of the stacked columns.

Declaration
public DataGridLength Width { get; }
Property Value
Type Description
DataGridLength
View Source

Widths

Gets the widths of the stacked columns.

Declaration
public readonly DataGridLength[] Widths { get; }
Property Value
Type Description
DataGridLength[]

Methods

View Source

Equals(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 obj and this instance are the same type and represent the same value; otherwise, false.

Overrides
ValueType.Equals(object)
View Source

GetHashCode()

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.

Overrides
ValueType.GetHashCode()

Extension Methods

CollectionExtensions.AddRange<T, TCollection>(TCollection, IEnumerable<T>)
SerializableObjectCloneExtension.Clone<T>(T)
  • View Source
Back to top Generated by DocFX