|
TCustomRichViewEdit.SetItemTextEd, SetItemTextEdA, SetItemTextEdW |
Top Previous Next |
|
Editing-methods for changing text of text item or name of non-text item. procedure SetItemTextEd(ItemNo: Integer; const s: String); procedure SetItemTextEdA(ItemNo: Integer; const s: String); procedure SetItemTextEdW(ItemNo: Integer; const s: WideString); (Introduced in version 1.4, 1.7) ItemNo – index of the item. Items are indexed from 0 to ItemCount-1, GetItemStyle returns type of item. Items of subdocuments (table cells) are not included in the items range of the main document; for items in cells, use Cell.GetRVData.SetItemTextEd* (or use SetCurrentItemText*). s – text assigned to the item. For text items, this is a visible text. For non-text item, this is a string value associated with the item (not displayed). S must not contain line break (CR and LF) characters. For text items, it must not contain CR, LF, TAB, FF characters (#13, #10, #9, #12).
SetItemTextEdA sets text from ANSI string:
SetItemTextEdW sets text from Unicode string:
SetItemTextEd: the text is assigned as it is, without conversion. Be careful, incorrect text assignment may damage document. Methods type:
See also methods: See also methods of TCustomRichView: See also properties: See also:
|