FarPoint.Win.Spread.CellType.RichTextCellType rtb;
private void Form1Load(object sender, System.EventArgs e)
{
rtb = new FarPoint.Win.Spread.CellType.RichTextCellType();
rtb.Multiline = true;
fpSpread1.ActiveSheet.Cells[0, 0].CellType = rtb;
System.IO.StreamReader file = new System.IO.StreamReader(Application.StartupPath + "\\test.rtf");
string words = file.ReadToEnd();
fpSpread1.ActiveSheet.Cells[0, 0].Value = words;
}
private void fpSpread1EditModeOn(object sender, System.EventArgs e)
{
Size s;
s = rtb.GetPreferredSize(fpSpread1.EditingControl);
MessageBox.Show("The width of the editor is " + s.Width.ToString());
}