RAD Studio VCL Reference
ContentsIndex
PreviousUpNext
TConversion.ConvertWriteStream Method

Writes BufSize bytes to Stream from the memory buffer pointed to by Buffer.

Pascal
function ConvertWriteStream(Stream: TStream; Buffer: PChar; BufSize: Integer): Integer; virtual;
C++
virtual __fastcall int ConvertWriteStream(TStream Stream, const char * Buffer, int BufSize);

To convert text between two formats, override this method in a descendant class and convert the text in the buffer. To create a descendant class that TCustomRichEdit can use, convert the text from RTF format.

Note: ConvertWriteStream should reverse the conversion that ConvertReadStream makes.
 

Copyright(C) 2008 CodeGear(TM). All Rights Reserved.
What do you think about this topic? Send feedback!