首页  编辑  

输出"路径..."的文字

Tags: /C#/图形图像/   Date Created:

private void button1_Click( object sender , EventArgs ce)

{

    Graphics vGraphics = Graphics . FromHwnd(Handle);

    StringFormat vStringFormat = new StringFormat ();

   vStringFormat . FormatFlags |= StringFormatFlags . LineLimit;

   vStringFormat . Trimming = StringTrimming . EllipsisWord;

   vGraphics . DrawString( "Zswang , Font, Brushes . Blue,

        new RectangleF ( 0 , 0 , 40 , 20 ), vStringFormat);

}