Table of Contents

Method GetOffset

Namespace
Alternet.UI
Assembly
Alternet.UI.Common.dll

GetOffset(int, int)

Gets the offset in data for the specified X and Y. Returns -1 if X is outside [0, Width - 1] or Y is outside [0, Height - 1].

public int GetOffset(int x, int y)

Parameters

x int

X coordinate of the cell.

y int

Y coordinate of the cell.

Returns

int