Class DataGridColumnDisplayState
Provides information about the position of a column.
Inheritance
Implements
Namespace: Sartorius.SAF.Presentation.Controls
Assembly: Sartorius.SAF.Presentation.Controls.dll
Syntax
public sealed class DataGridColumnDisplayState : INotifyPropertyChanged
Remarks
GetHashCode() mutates with ColumnIndex, RowIndex and Index. Do not put a DataGridColumnDisplayState into a Hashtable or use as a Key in a dictionary unless you react to this mutation and update buckets of hashtables or dictionaries.
Constructors
View SourceDataGridColumnDisplayState()
Initializes a new instance of the DataGridColumnDisplayState class.
Declaration
public DataGridColumnDisplayState()
Remarks
Index, ColumnIndex and RowIndex default to -1
.
Fields
View SourceDisplayStateProperty
Identifies the System.Windows.DependencyProperty for GetDisplayState(DependencyObject).
Declaration
public static readonly DependencyProperty DisplayStateProperty
Field Value
Type | Description |
---|---|
System.Windows.DependencyProperty |
Properties
View SourceColumnIndex
Gets or sets the display column index.
Declaration
public int ColumnIndex { get; set; }
Property Value
Type | Description |
---|---|
System.Int32 |
Index
Gets or sets the display index.
Declaration
public int Index { get; set; }
Property Value
Type | Description |
---|---|
System.Int32 |
Remarks
This is the index that is given by ColumnIndex and RowIndex. It will equal the System.Windows.Controls.DataGridColumn.DisplayIndex of the column.
RowIndex
Gets or sets the display row index.
Declaration
public int RowIndex { get; set; }
Property Value
Type | Description |
---|---|
System.Int32 |
Methods
View SourceEquals(Object)
Determines whether the specified object is equal to the current object.
Declaration
public override bool Equals(object obj)
Parameters
Type | Name | Description |
---|---|---|
System.Object | obj | The object to compare with the current object. |
Returns
Type | Description |
---|---|
System.Boolean | true if the specified object is equal to the current object; otherwise, false. |
Overrides
GetDisplayState(DependencyObject)
Gets the display state from an element.
Declaration
public static DataGridColumnDisplayState GetDisplayState(DependencyObject element)
Parameters
Type | Name | Description |
---|---|---|
System.Windows.DependencyObject | element | The element to get the attached property DisplayState from. |
Returns
Type | Description |
---|---|
DataGridColumnDisplayState | The current DataGridColumnDisplayState for the element. |
GetHashCode()
Serves as a hash function for a particular type.
Declaration
public override int GetHashCode()
Returns
Type | Description |
---|---|
System.Int32 | A hash code for the current object. |
Overrides
Events
View SourcePropertyChanged
Occurs when a property value changes.
Declaration
public event PropertyChangedEventHandler PropertyChanged
Event Type
Type | Description |
---|---|
System.ComponentModel.PropertyChangedEventHandler |
Operators
View SourceEquality(DataGridColumnDisplayState, DataGridColumnDisplayState)
Test for equality
Declaration
public static bool operator ==(DataGridColumnDisplayState a, DataGridColumnDisplayState b)
Parameters
Type | Name | Description |
---|---|---|
DataGridColumnDisplayState | a | The first DataGridColumnDisplayState to check. |
DataGridColumnDisplayState | b | The other DataGridColumnDisplayState to check. |
Returns
Type | Description |
---|---|
System.Boolean |
|
Inequality(DataGridColumnDisplayState, DataGridColumnDisplayState)
Test for inequality.
Declaration
public static bool operator !=(DataGridColumnDisplayState a, DataGridColumnDisplayState b)
Parameters
Type | Name | Description |
---|---|---|
DataGridColumnDisplayState | a | The first DataGridColumnDisplayState to check. |
DataGridColumnDisplayState | b | The other DataGridColumnDisplayState to check. |
Returns
Type | Description |
---|---|
System.Boolean |
|