ZennoLab Assemblies Documentation
Spintax Method
Example 

Type: System.String

Source string.

Spintaxes the string
Syntax
public static string Spintax( 
   string sourceString
)

Parameters

sourceString

Type: System.String

Source string.

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: Windows XP Home Edition, Windows XP Professional, Windows Server 2003 family, Windows Vista, Windows Server 2008 family

See Also

Reference

TextProcessing Class
TextProcessing Members

Send Feedback