Setting text style to selected text in a table/cell
Posted: Thu Feb 08, 2007 2:28 am
Hi,
How do i change the text style (font name, bold, italics..) of text in a table item?
Let me explain the flow:
I will first insert an rtf text into a cell in a table using LoadRTFFromStream:
l_RVTableItemInfo.Cells[0, 0].LoadRTFFromStream(l_Stream);
The rtf text contain unicode characters, and as such, i need to set the RTFReadProperties.TextStyleMode to rvrsAddIfNeeded. If not, the text displayed will be in funny characters
Then what i need to do is to remove all text formatting that is contained in the rtf text i just inserted. So how do i do that? Is there a function similar to SetParagraphStyleToAll. Is there a way for me to change the text style for the table item? Thanks
How do i change the text style (font name, bold, italics..) of text in a table item?
Let me explain the flow:
I will first insert an rtf text into a cell in a table using LoadRTFFromStream:
l_RVTableItemInfo.Cells[0, 0].LoadRTFFromStream(l_Stream);
The rtf text contain unicode characters, and as such, i need to set the RTFReadProperties.TextStyleMode to rvrsAddIfNeeded. If not, the text displayed will be in funny characters
Then what i need to do is to remove all text formatting that is contained in the rtf text i just inserted. So how do i do that? Is there a function similar to SetParagraphStyleToAll. Is there a way for me to change the text style for the table item? Thanks