2010-10-12 4 views

Répondre

3

écrire Juste cette méthode dans votre code:

public static string GetTextonly(string editorcontent) 
{ 
    string strtext = ""; 
    strtext = Regex.Replace(editorcontent, @"<(.|\n)*?>", string.Empty); 
    return strtext; 
} 

après écrire cet extérieur:

string plaintext = GetTextonly(txtMessage.Content); 

vous ajoutez tout espace de noms pour System.Text.RegularExpression

Questions connexes