ZennoLab Assemblies Documentation
Spintax Method
Example 

Type: System.String

The source string.

Type: System.Boolean

Use extended spintax sintax.

Spintaxes the string.
Syntax
public static string Spintax( 
   string sourceString,
   bool extendedSyntax
)

Parameters

sourceString

Type: System.String

The source string.

extendedSyntax

Type: System.Boolean

Use extended spintax sintax.

Return Value

Type: System.String

A spintaxed string.

Example
The following example shows call the Spintax method.
var result = Macros.TextProcessing.Spintax("I'm the {first|second|third|fourth|fifth} in line.");
return result;
 
// result = "I'm the first in line." or "I'm the second in line.", etc.
$result = Macros::TextProcessing::Spintax("I'm the {first|second|third|fourth|fifth} in line.");
return $result;
 
// result = "I'm the first in line." or "I'm the second in line.", etc.
Requirements

Target Platforms: Desktop: Windows XP SP3 and older. Server: Windows Server 2003 and older.

See Also

Reference

TextProcessing Class
TextProcessing Members
Translate Method
Translit Method

Send Feedback