TelerikUtils
Provides utility methods for Telerik RadRichTextBox.
Definition
Namespace:Telerik.Windows.Documents.Utils
Assembly:Telerik.Windows.Controls.RichTextBox.dll
Syntax:
public static class TelerikUtils
Inheritance: objectTelerikUtils
Methods
Tries to parse the specified string representation of an enumeration value into its corresponding enum type.
public static bool EnumTryParse<TEnum>(string valueAsString, bool ignoreCase, out TEnum value) where TEnum : struct
The string representation of the enumeration value to parse.
ignoreCaseboolA boolean value indicating whether to ignore case during the parsing.
valueTEnumWhen this method returns, contains the parsed enum value if the parsing succeeded; otherwise, the default value of the enum type.
Returns:True if the parsing was successful; otherwise, false.
Tries to parse a string representation of the specified enumeration type into the corresponding enum value.
public static bool EnumTryParse<TEnum>(string valueAsString, out TEnum value) where TEnum : struct
The string representation of the enumeration value to parse.
valueTEnumWhen this method returns, contains the parsed enumeration value if the parsing succeeded; otherwise, the default value of the enumeration type.
Returns:Returns true if the parsing was successful; otherwise, false.
Retrieves the URI of a specified resource as a string.
public static Uri GetResourceUri(string resource)
The name of the resource for which the URI is to be obtained.
Returns:Uri
The URI of the specified resource as a string.
Swaps the values of two parameters of the same type.
public static void Swap<T>(ref T first, ref T second)
The first value to be swapped.
secondTThe second value to be swapped.