Class GridCellRichTextBoxCellRenderer
Inheritance
System.Object
GridCellRichTextBoxCellRenderer
Implements
System.IDisposable
Assembly: Syncfusion.Grid.Wpf.dll
Syntax
public class GridCellRichTextBoxCellRenderer : GridVirtualizingCellRenderer<RichTextBox>, IGridCellRenderer, ICellRenderer, IHitTestSelectCells, IStyleChanged, IDisposable, IAllowKeepAliveOnlyCurrentCell
Constructors
GridCellRichTextBoxCellRenderer()
Declaration
public GridCellRichTextBoxCellRenderer()
Methods
ArrangeUIElement(ArrangeCellArgs, RichTextBox, GridRenderStyleInfo)
Declaration
protected override void ArrangeUIElement(ArrangeCellArgs aca, RichTextBox uiElement, GridRenderStyleInfo style)
Parameters
Overrides
Syncfusion.Windows.Controls.Grid.GridVirtualizingCellRendererBase<System.Windows.Controls.RichTextBox>.ArrangeUIElement(Syncfusion.Windows.Controls.Cells.ArrangeCellArgs, System.Windows.Controls.RichTextBox, Syncfusion.Windows.Controls.Grid.GridRenderStyleInfo)
CreateRendererElement(RichTextBox, GridRenderStyleInfo)
Declaration
public override void CreateRendererElement(RichTextBox textBox, GridRenderStyleInfo style)
Parameters
Overrides
Syncfusion.Windows.Controls.Grid.GridVirtualizingCellRenderer<System.Windows.Controls.RichTextBox>.CreateRendererElement(System.Windows.Controls.RichTextBox, Syncfusion.Windows.Controls.Grid.GridRenderStyleInfo)
GetControlValueFromEditorCore(RichTextBox)
Declaration
protected override object GetControlValueFromEditorCore(RichTextBox uiElement)
Parameters
Type |
Name |
Description |
System.Windows.Controls.RichTextBox |
uiElement |
|
Returns
Overrides
Syncfusion.Windows.Controls.Grid.GridVirtualizingCellRenderer<System.Windows.Controls.RichTextBox>.GetControlValueFromEditorCore(System.Windows.Controls.RichTextBox)
MouseDown(FrameworkElement, MouseControllerEventArgs)
Declaration
public override void MouseDown(FrameworkElement owner, MouseControllerEventArgs e)
Parameters
Overrides
OnActivated()
Declaration
protected override void OnActivated()
Overrides
OnDeactivated()
Declaration
protected override void OnDeactivated()
Overrides
OnGridPreviewTextInput(TextCompositionEventArgs)
Declaration
protected override void OnGridPreviewTextInput(TextCompositionEventArgs e)
Parameters
Type |
Name |
Description |
System.Windows.Input.TextCompositionEventArgs |
e |
|
Overrides
OnInitializeContent(RichTextBox, GridRenderStyleInfo)
Called to initialize the content of the cell
using the information from the cell style (value, text,
behavior etc.). You must override this method in your
derived class.
Declaration
public override void OnInitializeContent(RichTextBox textBox, GridRenderStyleInfo style)
Parameters
Type |
Name |
Description |
System.Windows.Controls.RichTextBox |
textBox |
The text box.
|
GridRenderStyleInfo |
style |
The cell style info.
|
Overrides
Syncfusion.Windows.Controls.Grid.GridVirtualizingCellRenderer<System.Windows.Controls.RichTextBox>.OnInitializeContent(System.Windows.Controls.RichTextBox, Syncfusion.Windows.Controls.Grid.GridRenderStyleInfo)
OnRender(DrawingContext, RenderCellArgs, GridRenderStyleInfo)
Declaration
protected override void OnRender(DrawingContext dc, RenderCellArgs rca, GridRenderStyleInfo style)
Parameters
Overrides
Syncfusion.Windows.Controls.Cells.CellRendererBase<Syncfusion.Windows.Controls.Grid.GridRenderStyleInfo>.OnRender(System.Windows.Media.DrawingContext, Syncfusion.Windows.Controls.Cells.RenderCellArgs, Syncfusion.Windows.Controls.Grid.GridRenderStyleInfo)
OnUnwireUIElement(RichTextBox)
Declaration
protected override void OnUnwireUIElement(RichTextBox uiElement)
Parameters
Type |
Name |
Description |
System.Windows.Controls.RichTextBox |
uiElement |
|
Overrides
Syncfusion.Windows.Controls.Grid.GridVirtualizingCellRenderer<System.Windows.Controls.RichTextBox>.OnUnwireUIElement(System.Windows.Controls.RichTextBox)
OnWireUIElement(RichTextBox)
Declaration
protected override void OnWireUIElement(RichTextBox uiElement)
Parameters
Type |
Name |
Description |
System.Windows.Controls.RichTextBox |
uiElement |
|
Overrides
Syncfusion.Windows.Controls.Grid.GridVirtualizingCellRenderer<System.Windows.Controls.RichTextBox>.OnWireUIElement(System.Windows.Controls.RichTextBox)
ShouldGridTryToHandlePreviewKeyDown(KeyEventArgs)
Key Navigation Specification for Rich Text Eidtior.
Key Action to be Processed
Left Arrow is pressed while the cursor is not at 0 position Move the cursor to before Character index position.
Right Arrow is Pressed while cursor is not at last character of the Editor. Move the cursor to next Character index position.
UP Arrow is Pressed when the Cursor is not in First Row of RTE Move the cursor to above line with the same character index or last character index if above line if the length of the line is less than current caret position.
Down Arrow is Pressed when the cursor is not in Last Row of RTE Move the cursor to below line with the same character index or last character index if next line if the length of the line is less than current caret position
Left Arrow is pressed while the cursor is at 0 position The current cell should be moved to Previous valid cell.
Right Arrow is Pressed while cursor is at last character of the Editor. The current Cell should be moved to Next valid cell.
UP Arrow is Pressed when the Cursor is in First Row of RTE The current Cell should be moved to above Valid cell.
Down Arrow is Pressed when the cursor is in Last Row of RTE The current cell should be moved to below valid cell.
Tab Key is pressed. Never mind where the caret index is placed. The focus should be moved to next cell.
Delete Key is pressed. Never mind where the caret index is placed. Should delete the next character from the current caret position in Editor.
Backspace Key is pressed. Never mind where the caret index is placed. Should delete the previous character from the current caret position in Editor.
Esc Key is pressed. Never mind where the caret index is placed. The Current cell must come out of Edit mode and focus should be in the Current Cell.
CTRL + Left Key Move the caret symbol position to the starting character of previous WORD.
CTRL + Right Key Move the caret symbol position to the starting Character of next WORD.
CTRL + UP Key Move the caret symbol position to the starting Character of Previous Paragraph.
CTRL + Down Key Move the caret symbol position to the starting Character of next Paragraph.
Shift + Left Key Should add the previous character from the current caret position in Selection.
Shift + Right Key Should add the next character from the current caret position in Selection.
Shift + UP Key Should add the previous line from the current caret position in Selection.(Selection will be added till the caret index above the current caret index)
Shift + Down Key Should add the next line from the current caret position in Selection. (Selection will be added till the caret index below the current caret index)
Home Mover the cursor to the starting character index of the current line.
End Move the cursor to the last character index(end of the line) of current line.
CTRL + Home Mover the cursor to the starting character index of the Entire text in the Cell(RTE).
CTRL + End Move the cursor to the last character index of the Entire text in the Cell(RTE).
Shift + Home Mover the cursor to the starting character index of the current line. Also the Current Line will be added in selection.
Shift + End Move the cursor to the last character index(end of the line) of current line. Also the Current Line will be added in selection.
Enter(Return) Key is pressed. Cursor should move to next line. (new line)
CRTL + Enter Key. Current cell should be moved to next valid cell.
Declaration
protected override bool ShouldGridTryToHandlePreviewKeyDown(KeyEventArgs e)
Parameters
Type |
Name |
Description |
System.Windows.Input.KeyEventArgs |
e |
|
Returns
Overrides
Implements
System.IDisposable