public static string Format(string mask, string text, char promptChar, CultureInfo culture) { MaskedTextResultHint hint; int hintPosition; return(RadMaskedEditBoxElement.Format(mask, text, promptChar, culture, out hint, out hintPosition)); }
public static string Format(string mask, string text) { MaskedTextResultHint hint; int hintPosition; return(RadMaskedEditBoxElement.Format(mask, text, char.MinValue, (CultureInfo)null, out hint, out hintPosition)); }
// Static methods /// <summary> /// Format the specified text using the specified mask and prompt /// character. /// </summary> /// <param name="mask">The mask to use.</param> /// <param name="text">The text to format.</param> /// <param name="promptChar">The prompt character to use for missing /// characters. If a null character ('\x0') is specified, prompt /// characters are omitted.</param> /// <returns>The formatted text string.</returns> public static string Format(string mask, string text, char promptChar) { MaskedTextResultHint hint; int pos; return(RadMaskedEditBoxElement.Format(mask, text, promptChar, null, out hint, out pos)); }
/// <summary> /// Format the specified text using the specified mask /// </summary> /// <param name="mask">The mask to use</param> /// <param name="text">The text to format</param> /// <returns>The formatted text string</returns> /// <overloads>There are four overloads for this method.</overloads> public static string Format(string mask, string text) { MaskedTextResultHint hint; int pos; return(RadMaskedEditBoxElement.Format(mask, text, '\x0', null, out hint, out pos)); }