trichview.support
Re: Copy Text Format to another Text Item |
Author |
Message |
Sergey Tkachenko |
Posted: 05/09/2005 22:35:24 If you need to copy only text format, call Item2->StyleNo = Item1->StyleNo. Do it only if RVStyle->TextStyles->Items[Item2->StyleNo]->Unicode == RVStyle->TextStyles->Items[Item1->StyleNo]->Unicode. (it's also possible to do it between items with different Unicode mode; you just need to adjust Item2->ItemOptions. rvioUnicode must be included there for Unicode items, and must be excluded for non-Unicode items) > > Hello > > I want to copy the Text Format from one Item to another. Here is my Code > : > TCustomRVItemInfo *Item1; > TCustomRVItemInfo *Item2; > .. > Item2->Assign(Item1); > > This works, but if Item1 and Item2 is in the same Line, after Assign() Item2 > is on a new Line. So Assign() copies the Carriage Return before Item1 to > Item2 too. > How can I copy Text Format without Carriage Return or delete Carriage Return > before Item2? > > Thanks > |
Powered by ABC Amber Outlook Express Converter