Method | Description | |
---|---|---|
FwTextBoxCell ( ) : System |
Initializes a new instance of the T:FwTextBoxCell class.
|
|
InitializeEditingControl ( int rowIndex, object initialFormattedValue, System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle ) : void |
Attaches and initializes the hosted editing control.
|
|
ParseFormattedValue ( object formattedValue, System.Windows.Forms.DataGridViewCellStyle cellStyle, |
Get the ITsString Get the ITsString from the text box control rather than trying to parse/convert it from the string - there is no type converter that could do it and we would need to know the writing system etc. NOTE: formattedValue contains either the new value or the previous value (if the user cancels). This solution always returns the new value. However, this is currently not a problem because Cancel is handled by the dialog. |
Method | Description | |
---|---|---|
GetFormattedValue ( object value, int rowIndex, System.Windows.Forms.DataGridViewCellStyle &cellStyle, |
Gets the text value of the cell's TsString and uses it as the value to display.
|
|
Paint ( |
Paint this DataGridView cell. Overridden to allow RightToLeft display if needed.
|
Method | Description | |
---|---|---|
DrawFwText ( |
Draw the text using the FieldWorks IVwGraphicsWin32 interface.
|
|
GetLocationForText ( |
Get the starting location for drawing the text.
|
|
GetRenderProps ( System.Windows.Forms.DataGridViewCellStyle cellStyle, |
||
InitializeTextBoxControl ( SIL.FieldWorks.Common.Widgets.FwTextBoxControl ctrl, int rowIndex ) : void |
Initializes the text box control. rowIndex is usually the same as RowIndex, except in the case of a shared row (in which case RowIndex is always -1). |
protected GetFormattedValue ( object value, int rowIndex, System.Windows.Forms.DataGridViewCellStyle &cellStyle, |
||
value | object | The value to be formatted. |
rowIndex | int | The index of the cell's parent row. |
cellStyle | System.Windows.Forms.DataGridViewCellStyle | The |
valueTypeConverter | A |
|
formattedValueTypeConverter | A |
|
context | DataGridViewDataErrorContexts | A bitwise combination of
/// |
return | object |
public InitializeEditingControl ( int rowIndex, object initialFormattedValue, System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle ) : void | ||
rowIndex | int | The index of the row being edited. |
initialFormattedValue | object | The initial value to be displayed in the /// control. |
dataGridViewCellStyle | System.Windows.Forms.DataGridViewCellStyle | A cell style that is used to determine the /// appearance of the hosted control. |
return | void |
protected Paint ( |
||
graphics | ||
clipBounds | ||
cellBounds | ||
rowIndex | int | |
cellState | DataGridViewElementStates | |
val | object | |
formattedValue | object | |
errorText | string | |
cellStyle | System.Windows.Forms.DataGridViewCellStyle | |
advancedBorderStyle | System.Windows.Forms.DataGridViewAdvancedBorderStyle | |
paintParts | DataGridViewPaintParts | |
return | void |
public ParseFormattedValue ( object formattedValue, System.Windows.Forms.DataGridViewCellStyle cellStyle, |
||
formattedValue | object | The display value of the cell. |
cellStyle | System.Windows.Forms.DataGridViewCellStyle | The |
formattedValueTypeConverter | A |
|
valueTypeConverter | A |
|
return | object |