C# Класс DSShared.Lists.ObjRow

Class that represents a row in a CustomList
Наследование: IComparable
Показать файл Открыть проект Примеры использования класса

Защищенные свойства (Protected)

Свойство Тип Описание
addStr string
clickCol CustomListColumn
columns CustomListColumnCollection
cursorTimer Timer
flip bool
obj Object
rowIdx int
selCol CustomListColumn
width int

Открытые методы

Метод Описание
Click ( CustomListColumn col ) : void

Called when the mouse clicks on a row

CompareTo ( object other ) : int

Compares one row to another. other must be an ObjRow and ObjRow.obj must implement IComparable

Equals ( object other ) : bool

Equality test against another object. Calls Object.Equals(other.Object)

FireRefresh ( ) : void

Outside access to fire the refresh event

GetHashCode ( ) : int

Serves as a hash function for a particular type. is suitable for use in hashing algorithms and data structures like a hash table.

KeyDown ( KeyEventArgs e ) : void

This function currently does nothing

KeyPress ( KeyPressEventArgs e ) : void

Called when a key is pressed on the keyboard and this row is selected

KeyUp ( KeyEventArgs e ) : void

This function currently does nothing

MouseLeave ( ) : void

Called when the mouse leaves the row's bounding rectangle

MouseOver ( CustomListColumn col ) : void

called when a mouse moves over the row

ObjRow ( object obj ) : System

Initializes a new instance of the T:ObjRow class.

ObjRow ( object obj, CustomListColumnCollection columns ) : System

Initializes a new instance of the T:ObjRow class.

Render ( PaintEventArgs e, int yOffset ) : void

Method that paints this row

UnClick ( ) : void

This method is called before another row is clicked. This is used as a 'turn off' function

Приватные методы

Метод Описание
startTimer ( ) : void
stopTimer ( ) : void
timerTick ( object sender, EventArgs e ) : void

Описание методов

Click() публичный Метод

Called when the mouse clicks on a row
public Click ( CustomListColumn col ) : void
col CustomListColumn The column the mouse was over when the button was clicked
Результат void

CompareTo() публичный Метод

Compares one row to another. other must be an ObjRow and ObjRow.obj must implement IComparable
public CompareTo ( object other ) : int
other object The object to compare with
Результат int

Equals() публичный Метод

Equality test against another object. Calls Object.Equals(other.Object)
public Equals ( object other ) : bool
other object The other object to test against
Результат bool

FireRefresh() публичный Метод

Outside access to fire the refresh event
public FireRefresh ( ) : void
Результат void

GetHashCode() публичный Метод

Serves as a hash function for a particular type. is suitable for use in hashing algorithms and data structures like a hash table.
public GetHashCode ( ) : int
Результат int

KeyDown() публичный Метод

This function currently does nothing
public KeyDown ( KeyEventArgs e ) : void
e System.Windows.Forms.KeyEventArgs
Результат void

KeyPress() публичный Метод

Called when a key is pressed on the keyboard and this row is selected
public KeyPress ( KeyPressEventArgs e ) : void
e System.Windows.Forms.KeyPressEventArgs The instance containing the event data.
Результат void

KeyUp() публичный Метод

This function currently does nothing
public KeyUp ( KeyEventArgs e ) : void
e System.Windows.Forms.KeyEventArgs
Результат void

MouseLeave() публичный Метод

Called when the mouse leaves the row's bounding rectangle
public MouseLeave ( ) : void
Результат void

MouseOver() публичный Метод

called when a mouse moves over the row
public MouseOver ( CustomListColumn col ) : void
col CustomListColumn
Результат void

ObjRow() публичный Метод

Initializes a new instance of the T:ObjRow class.
public ObjRow ( object obj ) : System
obj object The obj.
Результат System

ObjRow() публичный Метод

Initializes a new instance of the T:ObjRow class.
public ObjRow ( object obj, CustomListColumnCollection columns ) : System
obj object The obj.
columns CustomListColumnCollection The columns.
Результат System

Render() публичный Метод

Method that paints this row
public Render ( PaintEventArgs e, int yOffset ) : void
e PaintEventArgs
yOffset int
Результат void

UnClick() публичный Метод

This method is called before another row is clicked. This is used as a 'turn off' function
public UnClick ( ) : void
Результат void

Описание свойств

addStr защищенное свойство

String for the blinking cursor
protected string addStr
Результат string

clickCol защищенное свойство

Clicked-on column
protected CustomListColumn,DSShared.Lists clickCol
Результат CustomListColumn

columns защищенное свойство

The list of columns that specify what information of the obj is being displayed
protected CustomListColumnCollection,DSShared.Lists columns
Результат CustomListColumnCollection

cursorTimer защищенное свойство

Timer to make a blinking cursor when an editable cell is clicked on
protected Timer cursorTimer
Результат Timer

flip защищенное свойство

Timer information
protected bool flip
Результат bool

obj защищенное свойство

The object this row wraps around
protected Object obj
Результат Object

rowIdx защищенное свойство

Row index
protected int rowIdx
Результат int

selCol защищенное свойство

Selected column
protected CustomListColumn,DSShared.Lists selCol
Результат CustomListColumn

width защищенное свойство

Row screen information
protected int width
Результат int