ZennoLab Assemblies Documentation
RandomText Method
See Also  Example Send Feedback
ZennoLab.Macros Assembly > ZennoLab.Macros Namespace > TextProcessing Class : RandomText Method
countOfChars

Type: System.Int32

The count of chars in result text.

options

Type: System.String

The set of options ("d" - use digits, "c" - use big letters, "s" - use only customSymbols, "f" - first letter is large)

customSymbols

Type: System.String

The custom set of letters to use with option "s".

Glossary Item Box

Gets the random text

Syntax

C# 
public static string RandomText( 
   int countOfChars,
   string options,
   string customSymbols
)

Parameters

countOfChars

Type: System.Int32

The count of chars in result text.

options

Type: System.String

The set of options ("d" - use digits, "c" - use big letters, "s" - use only customSymbols, "f" - first letter is large)

customSymbols

Type: System.String

The custom set of letters to use with option "s".

Return Value

Type: System.String

The random text.

Example

The following example shows call the RandomText method.
C#Copy Code
var result = Macros.TextProcessing.RandomText(20, "dcf", "");
PHPCopy Code
$result = Macros::TextProcessing::RandomText(20, "dcf", "");

Requirements

Target Platforms: Windows XP Home Edition, Windows XP Professional, Windows Server 2003 family, Windows Vista, Windows Server 2008 family

See Also

© 2013 All Rights Reserved.