Hi aspx! 

> -----Ursprüngliche Nachricht-----
> Von: [EMAIL PROTECTED] 
> [mailto:[EMAIL PROTECTED] Im Auftrag von aspx
> Gesendet: Donnerstag, 29. September 2005 16:31
> An: [email protected]
> Betreff: AW: [Asp.net] wordwrap funktion
> 
> 
> private const int m_maxWidth = 70;
> 
> private string WrapWords(string actualText)
>               {
>                       const char space = (char)32;
>                       string []words = actualText.Split(space);
> 
>                       string ret = string.Empty;
>                       int lineCounter = 1;
> 
>                       foreach(string word in words)
>                       {
>                               if (ret.Length + word.Length > 
> m_maxWidth * lineCounter)
>                               {
>                                       ret = 
> string.Concat(ret, "\n", word);
>                                       lineCounter++;
>                               }
>                               else
>                               {
>                                       ret = 
> string.Concat(ret, space, word);
>                               }
>                       }
> 
>                       return ret.Trim();
>               }
> 
> -----Ursprüngliche Nachricht-----
> Von: [EMAIL PROTECTED] 
> [mailto:[EMAIL PROTECTED]
> Auftrag von Daniel Wasser
> Gesendet: Donnerstag, 29. September 2005 14:07
> An: [email protected]
> Betreff: [Asp.net] wordwrap funktion
> 
> 
> Hallo Liste,
> 
> hat jemand von euch eine Funktion die ein
> <br> nach einer bestimmten Anzahl von Zeichen in
> einen Text einfügt?
> Wäre super wenn jemand Sie posten könnte.
> 
> Grüße, Daniel
> 
> _______________________________________________
> Asp.net Mailingliste, Postings senden an:
> [email protected]
> An-/Abmeldung und Suchfunktion unter:
> http://www.glengamoi.com/mailman/listinfo/asp.net
> 
> _______________________________________________
> Asp.net Mailingliste, Postings senden an:
> [email protected]
> An-/Abmeldung und Suchfunktion unter:
> http://www.glengamoi.com/mailman/listinfo/asp.net
> 

_______________________________________________
Asp.net Mailingliste, Postings senden an:
[email protected]
An-/Abmeldung und Suchfunktion unter:
http://www.glengamoi.com/mailman/listinfo/asp.net

Antwort per Email an