Show / Hide Table of Contents

Struct DataGridCellsPanel.ColumnMeasurementState

Structure holding information about the column measurement state.

System.ValueType.ToString()
System.Object.Equals(System.Object, System.Object)
System.Object.GetType()
System.Object.ReferenceEquals(System.Object, System.Object)
Namespace: Sartorius.SAF.Presentation.Controls
Assembly: Sartorius.SAF.Presentation.Controls.dll
Syntax
protected struct ColumnMeasurementState

Constructors

View Source

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

View Source

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.

View Source

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.

View Source

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 Source

HasAuto

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
View Source

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
View Source

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
View Source

MaxWidth

The maximum width of the column.

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

MinWidth

The minimum width of the column.

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

Width

Gets the width of the stacked columns.

Declaration
public readonly DataGridLength Width { get; }
Property Value
Type Description
System.Windows.Controls.DataGridLength
View Source

Widths

Gets the widths of the stacked columns.

Declaration
public readonly DataGridLength[] Widths { get; }
Property Value
Type Description
System.Windows.Controls.DataGridLength[]

Methods

View Source

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

Overrides
System.ValueType.Equals(System.Object)
View Source

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.

Overrides
System.ValueType.GetHashCode()

Extension Methods

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