Struct DataGridLength
Implements Data Grid Length structure for data grid column
Implements
Inherited Members
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 |
|
IsAuto
Gets a value indicating whether this instance is automatic.
Declaration
public bool IsAuto { get; }
Property Value
Type | Description |
---|---|
System.Boolean |
|
IsSizeToCells
Gets a value indicating whether this instance is size to cells.
Declaration
public bool IsSizeToCells { get; }
Property Value
Type | Description |
---|---|
System.Boolean |
|
IsSizeToHeader
Gets a value indicating whether this instance is size to header.
Declaration
public bool IsSizeToHeader { get; }
Property Value
Type | Description |
---|---|
System.Boolean |
|
IsStar
Gets a value indicating whether this instance is star.
Declaration
public bool IsStar { get; }
Property Value
Type | Description |
---|---|
System.Boolean |
|
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 |
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 |
|
Overrides
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
ToString()
Returns the string representation of this object.
Declaration
public override string ToString()
Returns
Type | Description |
---|---|
System.String |
Overrides
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. |