wx.SampleGrid.TableCoordinate Struct Reference

A simple struct to represent the coordinates in a table. More...

List of all members.

Public Member Functions

override bool Equals (object arg)
override int GetHashCode ()
 TableCoordinate (int row, int col)
override string ToString ()

Properties

int Column [get, set]
 The column as property.
int Row [get, set]
 The row as property.


Detailed Description

A simple struct to represent the coordinates in a table.

Instances of this class may be used as a key in hashtables. Refer to remarks on BigGridFrame.

Definition at line 1582 of file Grid.cs.


Constructor & Destructor Documentation

wx.SampleGrid.TableCoordinate.TableCoordinate ( int  row,
int  col 
)

Definition at line 1586 of file Grid.cs.

01587       {
01588          m_row=row;
01589          m_col=col;
01590       }


Member Function Documentation

override bool wx.SampleGrid.TableCoordinate.Equals ( object  arg  ) 

Definition at line 1605 of file Grid.cs.

References wx.SampleGrid.TableCoordinate.m_col, and wx.SampleGrid.TableCoordinate.m_row.

01606       {
01607          if (arg is TableCoordinate)
01608          {
01609             TableCoordinate castedArg=(TableCoordinate) arg;
01610             return m_row==castedArg.m_row && m_col==castedArg.m_col;
01611          }
01612          else
01613             return false;
01614       }

override int wx.SampleGrid.TableCoordinate.GetHashCode (  ) 

Definition at line 1616 of file Grid.cs.

01617            {
01618                    return m_row*m_row+m_col;
01619            }

override string wx.SampleGrid.TableCoordinate.ToString (  ) 

Definition at line 1621 of file Grid.cs.

Referenced by wx.SampleGrid.BigGridTable.GetValue().

01622            {
01623                    return "(" + m_row + ", " + m_col + ")";
01624            }


Property Documentation

int wx.SampleGrid.TableCoordinate.Column [get, set]

The column as property.

Definition at line 1600 of file Grid.cs.

Referenced by wx.SampleGrid.BigGridTable.NoOfInputsCol().

int wx.SampleGrid.TableCoordinate.Row [get, set]

The row as property.

Definition at line 1594 of file Grid.cs.

Referenced by wx.SampleGrid.BigGridTable.NoOfInputsRow().


Manual of the wx.NET   (c) 2003-2010 the wx.NET project