Class ClrExpressionStringMethods
Contains all the string operations available in RadExpressionEditor.
Inheritance
Inherited Members
Namespace: Telerik.Expressions
Assembly: Telerik.Windows.Data.dll
Syntax
public static class ClrExpressionStringMethods
Methods
Concat(String, String)
Concatenates two specified instances of System.String.
Declaration
public static string Concat(string value1, string value2)
Parameters
System.String
value1
|
System.String
value2
|
Returns
System.String
|
Contains(String, String)
Returns a value indicating whether the specified System.String object occurs within this string.
Declaration
public static bool Contains(string text, string value)
Parameters
System.String
text
|
System.String
value
|
Returns
System.Boolean
|
ConvertToString(Object)
Returns a string representation of an object.
Declaration
public static string ConvertToString(object value)
Parameters
System.Object
value
|
Returns
System.String
|
EndsWith(String, String)
Determines whether the end of this string instance matches the specified string.
Declaration
public static bool EndsWith(string text, string value)
Parameters
System.String
text
|
System.String
value
|
Returns
System.Boolean
|
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
public static string Format(string formatValue, object value)
Parameters
System.String
formatValue
|
System.Object
value
|
Returns
System.String
|
IndexOf(String, String)
Reports the index of the first occurrence of the specified string in this instance.
Declaration
public static int IndexOf(string text, string value)
Parameters
System.String
text
|
System.String
value
|
Returns
System.Int32
|
Insert(String, Int32, String)
Inserts String2 into String1 at the position specified by StartPosition.
Declaration
public static string Insert(string text, int startPosition, string value)
Parameters
System.String
text
|
System.Int32
startPosition
|
System.String
value
|
Returns
System.String
|
LastIndexOf(String, String)
Reports the index position of the last occurrence of a specified string within this instance.
Declaration
public static int LastIndexOf(string text, string value)
Parameters
System.String
text
|
System.String
value
|
Returns
System.Int32
|
Len(String)
Gets the number of characters in a string.
Declaration
public static int Len(string text)
Parameters
System.String
text
|
Returns
System.Int32
|
Lower(String)
Returns the String in lowercase.
Declaration
public static string Lower(string text)
Parameters
System.String
text
|
Returns
System.String
|
LowerInvariant(String)
Returns a copy of this System.String object converted to lowercase using the casing rules of the invariant culture.
Declaration
public static string LowerInvariant(string text)
Parameters
System.String
text
|
Returns
System.String
|
PadLeft(String, Int32)
Left-aligns characters in the defined string, padding its left side with white space characters up to a specified total length.
Declaration
public static string PadLeft(string text, int length)
Parameters
System.String
text
|
System.Int32
length
|
Returns
System.String
|
PadRight(String, Int32)
Right-aligns characters in the defined string, padding its left side with white space characters up to a specified total length.
Declaration
public static string PadRight(string text, int length)
Parameters
System.String
text
|
System.Int32
length
|
Returns
System.String
|
Remove(String, Int32, Int32)
Deletes a specified number of characters from this instance, beginning at a specified position.
Declaration
public static string Remove(string text, int startPosition, int length)
Parameters
System.String
text
|
System.Int32
startPosition
|
System.Int32
length
|
Returns
System.String
|
Replace(String, String, String)
Returns a copy of String1, in which value2 has been replaced with String3.
Declaration
public static string Replace(string text, string value, string newValue)
Parameters
System.String
text
|
System.String
value
|
System.String
newValue
|
Returns
System.String
|
StartsWith(String, String)
Determines whether the beginning of this string instance matches the specified string.
Declaration
public static bool StartsWith(string text, string value)
Parameters
System.String
text
|
System.String
value
|
Returns
System.Boolean
|
Substring(String, Int32, Int32)
Retrieves a value from a string. The value starts at a specified character position and has a specified length.
Declaration
public static string Substring(string text, int startIndex, int length)
Parameters
System.String
text
|
System.Int32
startIndex
|
System.Int32
length
|
Returns
System.String
|
Trim(String)
Removes all occurrences of white space characters from the beginning and end of the string.
Declaration
public static string Trim(string text)
Parameters
System.String
text
|
Returns
System.String
|
Upper(String)
Returns String in uppercase.
Declaration
public static string Upper(string text)
Parameters
System.String
text
|
Returns
System.String
|
UpperInvariant(String)
Returns a copy of this System.String object converted to uppercase using the casing rules of the invariant culture.
Declaration
public static string UpperInvariant(string text)
Parameters
System.String
text
|
Returns
System.String
|