rvico TRichView Reference | TRichView

TCustomRichView.AddTab

Top  Previous  Next

Adds tabulator to the end of document.

procedure AddTab(TextStyleNo, ParaNo: Integer);

(introduced in v1.9)

Parameters:

TextStyleNo – text style of tabulator. It is an index in the TextStyles collection of the linked RVStyle component, or rvsDefStyle constant. It defines font attributes.

If ParaNo=-1, the methods add the item to the end of the last paragraph. If ParaNo>=0, this item starts a new paragraph with the ParaNo-th style. (ParaNo is an index in the ParaStyles collection of the linked RVStyle component). It defines attributes for the new paragraph.

 

This method always adds a tabulator, regardless of RVStyle.SpacesInTab mode. If RVStyle.SpacesInTab=0, this method does the same work as AddTextNL(#9, TextStyleNo, ParaNo, ParaNo).

Methods type: viewerstyle viewer-style.

See also methods:

Format;

FormatTail;

SetAddParagraphMode.

See also methods of TRichViewEdit:

InsertTab.

See also properties of TRVStyle:

ParaStyles.

See also:

Item types;

Other methods for appending items.


TRichView © trichview.com