Show / Hide Table of Contents

Class DataGridColumnDisplayState

Provides information about the position of a column.

Inheritance
object
DataGridColumnDisplayState
Implements
INotifyPropertyChanged
object.Equals(object, object)
object.GetType()
object.ReferenceEquals(object, object)
object.ToString()
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 hash tables or dictionaries.

Constructors

View Source

DataGridColumnDisplayState()

Initializes a new instance of the DataGridColumnDisplayState class.

Declaration
public DataGridColumnDisplayState()
Remarks

Index, ColumnIndex and RowIndex default to -1.

Fields

View Source

DisplayStateProperty

Identifies the DependencyProperty for GetDisplayState(DependencyObject).

Declaration
public static readonly DependencyProperty DisplayStateProperty
Field Value
Type Description
DependencyProperty

Properties

View Source

ColumnIndex

Gets or sets the display column index.

Declaration
public int ColumnIndex { get; set; }
Property Value
Type Description
int
View Source

Edge

Gets or sets the edge the position is relative to.

Declaration
public Edge Edge { get; set; }
Property Value
Type Description
Edge
View Source

Index

Gets or sets the display index.

Declaration
public int Index { get; set; }
Property Value
Type Description
int
Remarks

This is the index that is given by ColumnIndex and RowIndex. It will equal the DisplayIndex of the column.

View Source

RowIndex

Gets or sets the display row index.

Declaration
public int RowIndex { get; set; }
Property Value
Type Description
int

Methods

View Source

Equals(object)

Determines whether the specified object is equal to the current object.

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

The object to compare with the current object.

Returns
Type Description
bool

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

Overrides
object.Equals(object)
View Source

GetDisplayState(DependencyObject)

Gets the display state from an element.

Declaration
public static DataGridColumnDisplayState GetDisplayState(DependencyObject element)
Parameters
Type Name Description
DependencyObject element

The element to get the attached property DisplayState from.

Returns
Type Description
DataGridColumnDisplayState

The current DataGridColumnDisplayState for the element.

View Source

GetDisplayStateCopy(DependencyObject)

Gets a copy of the current display state.

Declaration
public static DataGridColumnDisplayState GetDisplayStateCopy(DependencyObject element)
Parameters
Type Name Description
DependencyObject element

The element to get a copy of the attached property DisplayState from.

Returns
Type Description
DataGridColumnDisplayState

A copy of the current DataGridColumnDisplayState for the element.

View Source

GetHashCode()

Serves as a hash function for a particular type.

Declaration
public override int GetHashCode()
Returns
Type Description
int

A hash code for the current object.

Overrides
object.GetHashCode()

Events

View Source

PropertyChanged

Occurs when a property value changes.

Declaration
public event PropertyChangedEventHandler PropertyChanged
Event Type
Type Description
PropertyChangedEventHandler

Operators

View Source

operator ==(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
bool

True if a is equal to b.

View Source

operator !=(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
bool

True if a is not equal to b.

Implements

INotifyPropertyChanged

Extension Methods

CollectionExtensions.AddRange<T, TCollection>(TCollection, IEnumerable<T>)
SerializableObjectCloneExtension.Clone<T>(T)
NotifyPropertyChangedExtensions.GetPropertyName<T>(INotifyPropertyChanged, Expression<Func<T>>)
NotifyPropertyChangedExtensions.RaisePropertyChanged(INotifyPropertyChanged, string)
NotifyPropertyChangedExtensions.RaisePropertyChanged<T>(INotifyPropertyChanged, Expression<Func<T>>)
PropertyHelper.RaisePropertyChanged<T>(INotifyPropertyChanged, Expression<Func<T>>, PropertyChangedEventHandler)
  • View Source
Back to top Generated by DocFX