Autor Beitrag
anything
Hält's aus hier
Beiträge: 1



BeitragVerfasst: Sa 12.12.09 22:44 
Hallo ...
ich habe ein langes Text...

ausblenden 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 :
ausblenden 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 :

ausblenden 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 ?

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


Danke im Voraus