Class CellPoint
The CellPoint class represents a grid cell point location
Inherited Members
Namespace: Maze.Maui.Controls.InteractiveGrid
Assembly: Maze.Maui.Controls.dll
Syntax
public class CellPoint
Constructors
CellPoint(int, int)
Constructor
Declaration
public CellPoint(int row = -1, int column = -1)
Parameters
| Type | Name | Description |
|---|---|---|
| int | row | Row number (default = -1, indicating no row number assigned) |
| int | column | Column number (default = -1, indicating no column number assigned) |
Properties
Column
The column number associated with the point. Default value is -1, indicating no assigned column number.
Declaration
public int Column { get; set; }
Property Value
| Type | Description |
|---|---|
| int | Row number |
Row
The row number associated with the point. Default value is -1, indicating no assigned row number.
Declaration
public int Row { get; set; }
Property Value
| Type | Description |
|---|---|
| int | Row number |
Methods
ClampColumn(int)
Restricts the column associated with the object so that it does not exceed a given maximum column number
Declaration
public void ClampColumn(int maxColumn)
Parameters
| Type | Name | Description |
|---|---|---|
| int | maxColumn |
ClampRow(int)
Restricts the row associated with the object so that it does not exceed a given maximum row number
Declaration
public void ClampRow(int maxRow)
Parameters
| Type | Name | Description |
|---|---|---|
| int | maxRow |
Clear()
Clears the object, resetting it to an empty state
Declaration
public void Clear()
Clone()
Creates a copy of the object
Declaration
public CellPoint Clone()
Returns
| Type | Description |
|---|---|
| CellPoint | Copy of the object |
IsPosition(int, int)
Checks whether the object corresponds to a given position
Declaration
public bool IsPosition(int row, int column)
Parameters
| Type | Name | Description |
|---|---|---|
| int | row | Row number to check |
| int | column | Column number to check |
Returns
| Type | Description |
|---|---|
| bool | Boolean |
Set(int, int)
Sets the row and column numbers associated with the object
Declaration
public void Set(int row, int column)
Parameters
| Type | Name | Description |
|---|---|---|
| int | row | New row number |
| int | column | New column number |