Show / Hide Table of Contents

Class DataGridColumnDisplayState

Provides information about the position of a column.

Inheritance
System.Object
DataGridColumnDisplayState
Implements
System.ComponentModel.INotifyPropertyChanged
System.Object.Equals(System.Object, System.Object)
System.Object.GetType()
System.Object.MemberwiseClone()
System.Object.ReferenceEquals(System.Object, System.Object)
System.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 hashtables 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 System.Windows.DependencyProperty for GetDisplayState(DependencyObject).

Declaration
public static readonly DependencyProperty DisplayStateProperty
Field Value
Type Description
System.Windows.DependencyProperty

Properties

View Source

ColumnIndex

Gets or sets the display column index.

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

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.

View Source

RowIndex

Gets or sets the display row index.

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

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
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
System.Object.Equals(System.Object)
View Source

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.

View Source

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
System.Object.GetHashCode()

Events

View Source

PropertyChanged

Occurs when a property value changes.

Declaration
public event PropertyChangedEventHandler PropertyChanged
Event Type
Type Description
System.ComponentModel.PropertyChangedEventHandler

Operators

View Source

Equality(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

True if a is equal to b.

View Source

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

True if a is not equal to b.

Implements

System.ComponentModel.INotifyPropertyChanged

Extension Methods

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