Class SpreadsheetRichTextBoxCellRenderer
Inheritance
System.Object
SpreadsheetVirtualizingCellRendererBase<System.Windows.Forms.RichTextBox>
SpreadsheetRichTextBoxCellRenderer
Inherited Members
System.Object.Equals(System.Object)
System.Object.Equals(System.Object, System.Object)
System.Object.GetHashCode()
System.Object.GetType()
System.Object.MemberwiseClone()
System.Object.ReferenceEquals(System.Object, System.Object)
System.Object.ToString()
Namespace: Syncfusion.Windows.Forms.Spreadsheet.CellRenderer
Assembly: Syncfusion.Spreadsheet.Windows.dll
Syntax
public class SpreadsheetRichTextBoxCellRenderer : SpreadsheetVirtualizingCellRendererBase<RichTextBox>, ISpreadsheetCellRenderer, IDisposable
Constructors
SpreadsheetRichTextBoxCellRenderer()
Constructor
Declaration
public SpreadsheetRichTextBoxCellRenderer()
Methods
GetControlValue()
Gets the richtextbox control value as flowdocument.
Declaration
public override object GetControlValue()
Returns
Type |
---|
System.Object |
Overrides
GetFormattedText(IStyle)
Gets the text from richtextbox.
Declaration
public override string GetFormattedText(IStyle style)
Parameters
Type | Name | Description |
---|---|---|
IStyle | style |
Returns
Type |
---|
System.String |
Overrides
OnInitializeEditElement(RowColumnIndex, RichTextBox, SpreadsheetColumn)
load the edit element
Declaration
protected override void OnInitializeEditElement(RowColumnIndex rowColumnIndex, RichTextBox uiElement, SpreadsheetColumn column)
Parameters
Type | Name | Description |
---|---|---|
RowColumnIndex | rowColumnIndex | cell rowcolumnindex |
System.Windows.Forms.RichTextBox | uiElement | richtextbox |
SpreadsheetColumn | column | current column |
Overrides
Syncfusion.Windows.Forms.Spreadsheet.CellRenderer.SpreadsheetVirtualizingCellRendererBase<System.Windows.Forms.RichTextBox>.OnInitializeEditElement(Syncfusion.Windows.Forms.CellGrid.ScrollAxis.RowColumnIndex, System.Windows.Forms.RichTextBox, Syncfusion.Windows.Forms.Spreadsheet.SpreadsheetColumn)
OnRender(SpreadsheetPaint, Rectangle, Rectangle, SpreadsheetColumn)
Richtextbox rendering operations are performed.
Declaration
protected override void OnRender(SpreadsheetPaint paint, Rectangle cellRect, Rectangle clipRect, SpreadsheetColumn column)
Parameters
Type | Name | Description |
---|---|---|
SpreadsheetPaint | paint | drawingcontext |
System.Drawing.Rectangle | cellRect | rect of cell |
System.Drawing.Rectangle | clipRect | |
SpreadsheetColumn | column |
Overrides
OnSaveChanges()
save edited changes into xlsio by converting from flowdocument to richtextbox.
Declaration
protected override void OnSaveChanges()
Overrides
OnUnwireEditUIElement(RichTextBox)
Unwire the edit uielement events.
Declaration
protected override void OnUnwireEditUIElement(RichTextBox uiElement)
Parameters
Type | Name | Description |
---|---|---|
System.Windows.Forms.RichTextBox | uiElement |
Overrides
Syncfusion.Windows.Forms.Spreadsheet.CellRenderer.SpreadsheetVirtualizingCellRendererBase<System.Windows.Forms.RichTextBox>.OnUnwireEditUIElement(System.Windows.Forms.RichTextBox)
OnUpdateEditElement(Control, Rectangle, SpreadsheetColumn)
Declaration
protected override void OnUpdateEditElement(Control element, Rectangle rect, SpreadsheetColumn column)
Parameters
Type | Name | Description |
---|---|---|
System.Windows.Forms.Control | element | |
System.Drawing.Rectangle | rect | |
SpreadsheetColumn | column |
Overrides
OnWireEditUIElement(RichTextBox)
Wire the edit uielement events.
Declaration
protected override void OnWireEditUIElement(RichTextBox uiElement)
Parameters
Type | Name | Description |
---|---|---|
System.Windows.Forms.RichTextBox | uiElement |
Overrides
Syncfusion.Windows.Forms.Spreadsheet.CellRenderer.SpreadsheetVirtualizingCellRendererBase<System.Windows.Forms.RichTextBox>.OnWireEditUIElement(System.Windows.Forms.RichTextBox)
Implements
System.IDisposable