ZennoLab Assemblies Documentation
ToUpper Method
Example 

Type: System.String

The source string.

Type: System.String

The place where need performs the operation to uppercase. It can have the following values: All, FirstLetters and FirstLetter.

Returns a copy of this string converted to uppercase in specified place.
Syntax
public static string ToUpper( 
   string sourceString,
   string method
)

Parameters

sourceString

Type: System.String

The source string.

method

Type: System.String

The place where need performs the operation to uppercase. It can have the following values: All, FirstLetters and FirstLetter.

Return Value

Type: System.String

The uppercase in specified place equivalent of the current string.

Example
The following code example demonstrates uses of the ToUpper method.
// performs to upper operation for all string
string allToUpper = Macros.TextProcessing.ToUpper("string to upper", "All");
 
// performs to upper operation for first letters
string firstLettersToUpper = Macros.TextProcessing.ToUpper("string to upper", "FirstLetters");
 
// performs to upper operation for first letter
string firstLetterToUpper = Macros.TextProcessing.ToUpper("string to upper", "FirstLetter");
// performs to upper operation for all string
$allToUpper = Macros::TextProcessing::ToUpper("string to upper", "All");
 
// performs to upper operation for first letters
$firstLettersToUpper = Macros::TextProcessing::ToUpper("string to upper", "FirstLetters");
 
// performs to upper operation for first letter
$firstLetterToUpper = Macros::TextProcessing::ToUpper("string to upper", "FirstLetter");
Requirements

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

See Also

Reference

TextProcessing Class
TextProcessing Members
ToLower Method

Send Feedback