trichview.support
Re: How can I know ItemNo & Offset which begin current line in TRichViewEdit? |
Author |
Message |
Rob |
Posted: 10/29/2004 10:23:12 Indentation can be handeled thourgh the line's paragraph. See the code below for a sample implementation. The AIndent I specify here is the indent step I needed. function TRvMSXMLImporter.AddParaStyle(AIndent: Integer): Integer; const INDENTVALUE = 20; var ParaInfo: TParaInfo; begin ParaInfo := FViewer.Style.ParaStyles.Add; with ParaInfo do begin FirstIndent := -(INDENTVALUE + AIndent *10); LeftIndent := AIndent * INDENTVALUE - FirstIndent; end; Result := ParaInfo.Index; end; Regards, Rob |
Powered by ABC Amber Outlook Express Converter