Class
ClrExpressionStringMethods

Contains all the string operations available in RadExpressionEditor.

Definition

Namespace:Telerik.Expressions

Assembly:Telerik.Windows.Data.dll

Syntax:

cs-api-definition
public static class ClrExpressionStringMethods

Inheritance: objectClrExpressionStringMethods

Methods

Concat(string, string)

Concatenates two specified instances of System.String.

Declaration

cs-api-definition
public static string Concat(string value1, string value2)

Parameters

value1

string

value2

string

Returns

string

Contains(string, string)

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

Declaration

cs-api-definition
public static bool Contains(string text, string value)

Parameters

text

string

value

string

Returns

bool

ConvertToString(object)

Returns a string representation of an object.

Declaration

cs-api-definition
public static string ConvertToString(object value)

Parameters

value

object

Returns

string

EndsWith(string, string)

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

Declaration

cs-api-definition
public static bool EndsWith(string text, string value)

Parameters

text

string

value

string

Returns

bool

Format(string, object)

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

Declaration

cs-api-definition
public static string Format(string formatValue, object value)

Parameters

formatValue

string

value

object

Returns

string

IndexOf(string, string)

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

Declaration

cs-api-definition
public static int IndexOf(string text, string value)

Parameters

text

string

value

string

Returns

int

Insert(string, int, string)

Inserts String2 into String1 at the position specified by StartPosition.

Declaration

cs-api-definition
public static string Insert(string text, int startPosition, string value)

Parameters

text

string

startPosition

int

value

string

Returns

string

LastIndexOf(string, string)

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

Declaration

cs-api-definition
public static int LastIndexOf(string text, string value)

Parameters

text

string

value

string

Returns

int

Len(string)

Gets the number of characters in a string.

Declaration

cs-api-definition
public static int Len(string text)

Parameters

text

string

Returns

int

Lower(string)

Returns the String in lowercase.

Declaration

cs-api-definition
public static string Lower(string text)

Parameters

text

string

Returns

string

LowerInvariant(string)

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

Declaration

cs-api-definition
public static string LowerInvariant(string text)

Parameters

text

string

Returns

string

PadLeft(string, int)

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

Declaration

cs-api-definition
public static string PadLeft(string text, int length)

Parameters

text

string

length

int

Returns

string

PadRight(string, int)

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

Declaration

cs-api-definition
public static string PadRight(string text, int length)

Parameters

text

string

length

int

Returns

string

Remove(string, int, int)

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

Declaration

cs-api-definition
public static string Remove(string text, int startPosition, int length)

Parameters

text

string

startPosition

int

length

int

Returns

string

Replace(string, string, string)

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

Declaration

cs-api-definition
public static string Replace(string text, string value, string newValue)

Parameters

text

string

value

string

newValue

string

Returns

string

StartsWith(string, string)

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

Declaration

cs-api-definition
public static bool StartsWith(string text, string value)

Parameters

text

string

value

string

Returns

bool

Substring(string, int, int)

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

Declaration

cs-api-definition
public static string Substring(string text, int startIndex, int length)

Parameters

text

string

startIndex

int

length

int

Returns

string

Trim(string)

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

Declaration

cs-api-definition
public static string Trim(string text)

Parameters

text

string

Returns

string

Upper(string)

Returns String in uppercase.

Declaration

cs-api-definition
public static string Upper(string text)

Parameters

text

string

Returns

string

UpperInvariant(string)

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

Declaration

cs-api-definition
public static string UpperInvariant(string text)

Parameters

text

string

Returns

string