Okapi .NET Library

IFilterItem.GetCode Method 

 [This is preliminary documentation and subject to change.]

Gets the original code of a specified inline code.

[Visual Basic]
Function GetCode( _ 
   ByVal p_nIndex As Integer, _ 
   ByVal p_bStandardLineBreaks As Boolean _ 
) As String
[C#]
string GetCode(
   int p_nIndex,
   bool p_bStandardLineBreaks
);
[C++]
String* GetCode(
   int p_nIndex,
   bool p_bStandardLineBreaks
);
[JScript]
function GetCode(
   int p_nIndex,
   bool p_bStandardLineBreaks
): String;

Parameters

p_nIndex
Index of the inline code to access. The value must be between 0 and GetCodeCount-1.
p_bStandardLineBreaks
Indicator on whether to output standard line-breaks. The original line-breaks are used if this flag is set to false.

Return Value

String that contains the code for the specified inline code.

Remarks

Use this method to retrieve the data associated with a given inline code. The value returned is the one that was set when calling the AppendCode method.

See Also

IFilterItem Interface | Okapi.Library.Filter Namespace | GetCode | GetCodeCount | AppendCode