List Info

Thread: wrap function in C#




wrap function in C#
user name
2006-02-07 16:13:07
Hi Folks,

I need to develop a C# function that receives, as input, a
string
(let's say from an ASP.NET text box) and that returns a
string which is
the input string wrapped at the column number specified by
the caller
(as another function parameter); another requirement is
that, when
wrapping the text, a word cannot be cut (it has to go to the
new line
instead). Any ideas/ suggestions/resources?

Thanks a lot

wrap function in C#
user name
2006-02-08 00:39:23
What does wrapping mean exactly?

Marty

wrap function in C#
user name
2006-02-08 08:58:48
Hi Marty,

wrapping means formatting the text on a single line into
fixed-length
multi-line text.

[1-3]

about | contact  Other archives ( Real Estate discussion Medical topics )