Show / Hide Table of Contents

Struct DataGridLength

Implements Data Grid Length structure for data grid column

Implements
System.IEquatable<DataGridLength>
Inherited Members
System.Object.Equals(System.Object, System.Object)
System.Object.GetType()
System.Object.ReferenceEquals(System.Object, System.Object)
Namespace: EmptyKeys.UserInterface.Controls
Assembly: EmptyKeys.UserInterface.dll
Syntax
public struct DataGridLength : IEquatable<DataGridLength>

Constructors

DataGridLength(DataGridLengthUnitType)

Initializes a new instance of the DataGridLength struct.

Declaration
public DataGridLength(DataGridLengthUnitType type)
Parameters
Type Name Description
DataGridLengthUnitType type

The type.

DataGridLength(Single)

Initializes a new instance of the DataGridLength struct.

Declaration
public DataGridLength(float pixels)
Parameters
Type Name Description
System.Single pixels

The pixels.

DataGridLength(Single, DataGridLengthUnitType)

Initializes a new instance of the DataGridLength struct.

Declaration
public DataGridLength(float value, DataGridLengthUnitType type)
Parameters
Type Name Description
System.Single value

The value.

DataGridLengthUnitType type

The type.

Properties

Auto

Gets the Auto size DataGridLength

Declaration
public static DataGridLength Auto { get; }
Property Value
Type Description
DataGridLength

Auto size DataGridLength

IsAbsolute

Gets a value indicating whether this instance is absolute.

Declaration
public bool IsAbsolute { get; }
Property Value
Type Description
System.Boolean

true if this instance is absolute; otherwise, false.

IsAuto

Gets a value indicating whether this instance is automatic.

Declaration
public bool IsAuto { get; }
Property Value
Type Description
System.Boolean

true if this instance is automatic; otherwise, false.

IsSizeToCells

Gets a value indicating whether this instance is size to cells.

Declaration
public bool IsSizeToCells { get; }
Property Value
Type Description
System.Boolean

true if this instance is size to cells; otherwise, false.

IsSizeToHeader

Gets a value indicating whether this instance is size to header.

Declaration
public bool IsSizeToHeader { get; }
Property Value
Type Description
System.Boolean

true if this instance is size to header; otherwise, false.

IsStar

Gets a value indicating whether this instance is star.

Declaration
public bool IsStar { get; }
Property Value
Type Description
System.Boolean

true if this instance is star; otherwise, false.

SizeToCells

Gets the size to cells.

Declaration
public static DataGridLength SizeToCells { get; }
Property Value
Type Description
DataGridLength

The size to cells.

SizeToHeader

Gets the size to header.

Declaration
public static DataGridLength SizeToHeader { get; }
Property Value
Type Description
DataGridLength

The size to header.

UnitType

Gets the type of the unit.

Declaration
public DataGridLengthUnitType UnitType { get; }
Property Value
Type Description
DataGridLengthUnitType

The type of the unit.

Value

Gets the value.

Declaration
public float Value { get; }
Property Value
Type Description
System.Single

The value.

Methods

Equals(DataGridLength)

Indicates whether the current object is equal to another object of the same type.

Declaration
public bool Equals(DataGridLength other)
Parameters
Type Name Description
DataGridLength other

An object to compare with this object.

Returns
Type Description
System.Boolean

true if the current object is equal to the other parameter; otherwise, false.

Equals(Object)

Determines whether the specified System.Object, is equal to this instance.

Declaration
public override bool Equals(object obj)
Parameters
Type Name Description
System.Object obj

The System.Object to compare with this instance.

Returns
Type Description
System.Boolean

true if the specified System.Object is equal to this instance; otherwise, false.

Overrides
System.ValueType.Equals(System.Object)

GetHashCode()

Returns a hash code for this instance.

Declaration
public override int GetHashCode()
Returns
Type Description
System.Int32

A hash code for this instance, suitable for use in hashing algorithms and data structures like a hash table.

Overrides
System.ValueType.GetHashCode()

ToString()

Returns the string representation of this object.

Declaration
public override string ToString()
Returns
Type Description
System.String
Overrides
System.ValueType.ToString()

Operators

Equality(DataGridLength, DataGridLength)

Implements the operator ==.

Declaration
public static bool operator ==(DataGridLength gl1, DataGridLength gl2)
Parameters
Type Name Description
DataGridLength gl1

The DataGridLength

DataGridLength gl2

The DataGridLength

Returns
Type Description
System.Boolean

The result of the operator.

Implicit(Single to DataGridLength)

Performs an implicit conversion from System.Single to DataGridLength.

Declaration
public static implicit operator DataGridLength(float value)
Parameters
Type Name Description
System.Single value

The value.

Returns
Type Description
DataGridLength

The result of the conversion.

Inequality(DataGridLength, DataGridLength)

Implements the operator !=.

Declaration
public static bool operator !=(DataGridLength gl1, DataGridLength gl2)
Parameters
Type Name Description
DataGridLength gl1

The DataGridLength

DataGridLength gl2

The DataGridLength

Returns
Type Description
System.Boolean

The result of the operator.

Implements

System.IEquatable<T>
Back to top Generated by DocFX