rvico TRichView Reference | TRichViewEdit

TCustomRichViewEdit.SetItemExtraStrPropertyEd

Top  Previous  Next

An editing-style method for changing value of the specified additional string property of the ItemNo-th item..

procedure SetItemExtraStrPropertyEd(ItemNo: Integer;

  Prop: TRVExtraItemStrPropertyconst Value: String;

  AutoReformat: Boolean);

(introduced in version 1.9)

This method sets new Value of the item property identified by Prop. See TRVExtraItemStrProperty for the list of available string properties.

ItemNo – index of the item, from 0 to ItemCount-1.

Items of subdocuments (table cells) are not included in the items range of the main document. For items in cells, activate inplace-editor, select the proper item in the cell  (SelSelectionBounds), and call SetItemExtraStrPropertyEd of this inplace-editor. Alternatively, you can use SetCurrentItemExtraStrProperty.

If AutoReformat=True, this method automatically reformats document and calls OnChange.

If AutoReformat=False (this can be useful if you set several properties of item at once), call Change after it.

 

Method type: editstyle editing-style (unlike SetItemExtraStrProperty).

When possible, use SetCurrentItemExtraStrProperty instead of this method.

unicode Unicode note: string properties are Unicode strings for Delphi/C++Builder 2009 or newer, and ANSI strings for older versions of Delphi/C++Builder.

 

See also methods:

SetCurrentItemExtraStrProperty;

SetItemExtraIntPropertyEd.

See also methods of TCustomRichView:

SetItemExtraStrProperty.


RichView © Sergey Tkachenko