Struct
SelectionRegion

Represents a range specifying the selection.

Definition

Namespace:Telerik.WinControls.UI

Assembly:Telerik.WinControls.GridView.dll

Syntax:

cs-api-definition
public struct SelectionRegion

Inherited Members ValueType.ToString()

Constructors

SelectionRegion(int, int, int, int, VirtualGridViewInfo)

Initializes a new instance of the SelectionRegion struct.

Declaration

cs-api-definition
public SelectionRegion(int top, int left, int bottom, int right, VirtualGridViewInfo viewInfo)

Parameters

top

int

The top index.

left

int

The left index.

bottom

int

The bottom index .

right

int

The right index .

viewInfo

VirtualGridViewInfo

The view info.

Fields

Empty

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

Declaration

cs-api-definition
public static readonly SelectionRegion Empty

Field Value

SelectionRegion

Properties

Bottom

Gets the row index where the selection region ends.

Declaration

cs-api-definition
public readonly int Bottom { get; }

Property Value

int

Left

Gets the column index where the selection region starts.

Declaration

cs-api-definition
public readonly int Left { get; }

Property Value

int

Right

Gets the column index where the selection region ends.

Declaration

cs-api-definition
public readonly int Right { get; }

Property Value

int

Top

Gets the row index where the selection region starts.

Declaration

cs-api-definition
public readonly int Top { get; }

Property Value

int

ViewInfo

Gets the view info of the selection region.

Declaration

cs-api-definition
public readonly VirtualGridViewInfo ViewInfo { get; }

Property Value

VirtualGridViewInfo

Methods

Contains(int, int)

Determines whether the selection region contains the specified cell.

Declaration

cs-api-definition
public bool Contains(int row, int column)

Parameters

row

int

The cell row index.

column

int

The cell column index.

Returns

bool

ContainsColumn(int)

Determines whether the selection region contains the specified column.

Declaration

cs-api-definition
public bool ContainsColumn(int column)

Parameters

column

int

The column index.

Returns

bool

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

ContainsRow(int)

Determines whether the selection region contains the specified row.

Declaration

cs-api-definition
public bool ContainsRow(int row)

Parameters

row

int

The row index.

Returns

bool

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

Equals(object)

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

Declaration

cs-api-definition
public override bool Equals(object obj)

Parameters

obj

object

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)

GetHashCode()

Serves as a hash function for a particular type.

Declaration

cs-api-definition
public override int GetHashCode()

Returns

int

A hash code for the current object.

Overrides ValueType.GetHashCode()

Operators

operator !=(SelectionRegion, SelectionRegion)

Declaration

cs-api-definition
public static bool operator !=(SelectionRegion A, SelectionRegion B)

Parameters

A

SelectionRegion

B

SelectionRegion

Returns

bool

operator ==(SelectionRegion, SelectionRegion)

Declaration

cs-api-definition
public static bool operator ==(SelectionRegion A, SelectionRegion B)

Parameters

A

SelectionRegion

B

SelectionRegion

Returns

bool