Sets the text of the item.
[Visual Basic] Sub SetText( _ ByVal p_sValue As String _ ) [C#] void SetText( string p_sValue ); [C++] void SetText( String* p_sValue ); [JScript] function SetText( String p_sValue );
This method sets the text for the item, and reset any inline codes. The p_sValue paramter must not contain inline codes. To set inline codes to an item use the AppendCode method.
CAUTION Any existing inline code in the original text is lost when calling SetText. This may leads to error when writing out the output. To change the text of an item and preserve its inline codes, use the ModifyText method. Also if you call both SetCodeMapping and SetText to build an item, make sure to call SetCodeMapping after SetText or the inline information you just set will be erased.
IFilterItem Interface | Okapi.Library.Filter Namespace | ModifyText | AppendCode | SetCodeMapping