Entwickler-Ecke

WinForms - StringTrimming.EllipsisCharacter - >rest vom String


anything - Sa 12.12.09 22:44
Titel: StringTrimming.EllipsisCharacter - >rest vom String
Hallo ...
ich habe ein langes Text...


C#-Quelltext
1:
String myTxt="This is a very long string, i use it to check the trimming in C# and try to get the rest of the text after trimming.";                    


ich habe dafür eine Format gemacht :

C#-Quelltext
1:
2:
3:
            StringFormat MyTextFormat= new StringFormat(StringFormatFlags.LineLimit);
            MyTextFormat.Alignment = StringAlignment.Far;
            MyTextFormat.Trimming = StringTrimming.EllipsisCharacter;

nun wird das Text auch ganz schön getrimmt ...
etwa so :


C#-Quelltext
1:
This is a very long string, i use it to check the trimming in C# and try to...                    


wie kann ich nun den Rest von dem String herausfinden ?


C#-Quelltext
1:
Rest=get the rest of the text after trimming.                    


Danke im Voraus