New to Telerik UI for WPFStart a free 30-day trial

Contains all the string operations available in RadExpressionEditor.

Definition

Namespace:Telerik.Expressions

Assembly:Telerik.Windows.Data.dll

Syntax:

C#
public static class ClrExpressionStringMethods

Inheritance: objectClrExpressionStringMethods

Methods

Concatenates two specified instances of System.String.

C#
public static string Concat(string value1, string value2)
Parameters:value1stringvalue2stringReturns:

string

Returns a value indicating whether the specified System.String object occurs within this string.

C#
public static bool Contains(string text, string value)
Parameters:textstringvaluestringReturns:

bool

Returns a string representation of an object.

C#
public static string ConvertToString(object value)
Parameters:valueobjectReturns:

string

Determines whether the end of this string instance matches the specified string.

C#
public static bool EndsWith(string text, string value)
Parameters:textstringvaluestringReturns:

bool

Replaces the format item in a specified System.String with the text equivalent of the value of a specified System.Object instance.

C#
public static string Format(string formatValue, object value)
Parameters:formatValuestringvalueobjectReturns:

string

Reports the index of the first occurrence of the specified string in this instance.

C#
public static int IndexOf(string text, string value)
Parameters:textstringvaluestringReturns:

int

Inserts String2 into String1 at the position specified by StartPosition.

C#
public static string Insert(string text, int startPosition, string value)
Parameters:textstringstartPositionintvaluestringReturns:

string

Reports the index position of the last occurrence of a specified string within this instance.

C#
public static int LastIndexOf(string text, string value)
Parameters:textstringvaluestringReturns:

int

Gets the number of characters in a string.

C#
public static int Len(string text)
Parameters:textstringReturns:

int

Returns the String in lowercase.

C#
public static string Lower(string text)
Parameters:textstringReturns:

string

Returns a copy of this System.String object converted to lowercase using the casing rules of the invariant culture.

C#
public static string LowerInvariant(string text)
Parameters:textstringReturns:

string

Left-aligns characters in the defined string, padding its left side with white space characters up to a specified total length.

C#
public static string PadLeft(string text, int length)
Parameters:textstringlengthintReturns:

string

Right-aligns characters in the defined string, padding its left side with white space characters up to a specified total length.

C#
public static string PadRight(string text, int length)
Parameters:textstringlengthintReturns:

string

Deletes a specified number of characters from this instance, beginning at a specified position.

C#
public static string Remove(string text, int startPosition, int length)
Parameters:textstringstartPositionintlengthintReturns:

string

Returns a copy of String1, in which value2 has been replaced with String3.

C#
public static string Replace(string text, string value, string newValue)
Parameters:textstringvaluestringnewValuestringReturns:

string

Determines whether the beginning of this string instance matches the specified string.

C#
public static bool StartsWith(string text, string value)
Parameters:textstringvaluestringReturns:

bool

Retrieves a value from a string. The value starts at a specified character position and has a specified length.

C#
public static string Substring(string text, int startIndex, int length)
Parameters:textstringstartIndexintlengthintReturns:

string

Removes all occurrences of white space characters from the beginning and end of the string.

C#
public static string Trim(string text)
Parameters:textstringReturns:

string

Returns String in uppercase.

C#
public static string Upper(string text)
Parameters:textstringReturns:

string

Returns a copy of this System.String object converted to uppercase using the casing rules of the invariant culture.

C#
public static string UpperInvariant(string text)
Parameters:textstringReturns:

string