New to Telerik UI for WinFormsStart a free 30-day trial

Represents a range specifying the selection.

Definition

Namespace:Telerik.WinControls.UI

Assembly:Telerik.WinControls.GridView.dll

Syntax:

C#
public struct SelectionRegion

Inherited Members ValueType.ToString()

Constructors

Initializes a new instance of the SelectionRegion struct.

C#
public SelectionRegion(int top, int left, int bottom, int right, VirtualGridViewInfo viewInfo)
Parameters:topint

The top index.

leftint

The left index.

bottomint

The bottom index .

rightint

The right index .

viewInfoVirtualGridViewInfo

The view info.

Fields

Represents an empty selection region where all properties are set to -1.

C#
public static readonly SelectionRegion Empty

Properties

Gets the row index where the selection region ends.

C#
public readonly int Bottom { get; }

Gets the column index where the selection region starts.

C#
public readonly int Left { get; }

Gets the column index where the selection region ends.

C#
public readonly int Right { get; }

Gets the row index where the selection region starts.

C#
public readonly int Top { get; }

Gets the view info of the selection region.

C#
public readonly VirtualGridViewInfo ViewInfo { get; }

Methods

Determines whether the selection region contains the specified cell.

C#
public bool Contains(int row, int column)
Parameters:rowint

The cell row index.

columnint

The cell column index.

Returns:

bool

Determines whether the selection region contains the specified column.

C#
public bool ContainsColumn(int column)
Parameters:columnint

The column index.

Returns:

bool

True if the column is contained in the selection region, otherwise false.

Determines whether the selection region contains the specified row.

C#
public bool ContainsRow(int row)
Parameters:rowint

The row index.

Returns:

bool

True if the row is contained in the selection region, otherwise false.

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

C#
public override bool Equals(object obj)
Parameters:objobject

The object to compare with the current object.

Returns:

bool

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

Overrides: ValueType.Equals(object)

Serves as a hash function for a particular type.

C#
public override int GetHashCode()
Returns:

int

A hash code for the current object.

Overrides: ValueType.GetHashCode()

Operators

C#
public static bool operator !=(SelectionRegion A, SelectionRegion B)
Parameters:ASelectionRegionBSelectionRegionReturns:

bool

C#
public static bool operator ==(SelectionRegion A, SelectionRegion B)
Parameters:ASelectionRegionBSelectionRegionReturns:

bool