PointToClient(Location) 的输出为什么 不变化呢。
using System;
using System.Collections;
using System.Collections.Generic;
using System.IO;
using System.Text;
using System.Threading;
using System.Globalization;
using System.Windows.Forms;
using System.Reflection;
using System.Security.AccessControl;
using System.Drawing;
class App:Form
{
public static void Main(String[] args)
{
Application .Run(new App());
}
public App()
{
Text = "Form size";
BackColor = Color.White;
Width = 400;
}
protected override void OnMove(EventArgs e)
{
Invalidate();
}
protected override void OnResize(EventArgs e)
{
Invalidate();
}
protected override void OnPaint(PaintEventArgs e)
{
Graphics gf = e.Graphics ;
string str = "location :"+ Location+"\n"+
"Size : "+Size+"\n"+
"bound :"+ Bounds +"\n"+
"width"+Width +"\n"+
"Height:"+ Height+"\n"+
"Left :"+ Left+"\n"+
"top :"+ Top+"\n"+
"Right"+Right+"\n"+
"Bottom :"+ Bottom+"\n"+
"DesktopLocation :"+ DesktopLocation+"\n"+
"DesktopBounds"+ DesktopBounds+"\n"+
"ClientSize "+ ClientSize+"\n"+
"ClientRectangle"+ClientRectangle+"\n"+
"displayRectangle:"+ DisplayRectangle+"\n"+
"client--RectangleToScreen"+ RectangleToScreen(ClientRectangle)+"\n"+
"capitonHeight:"+ SystemInformation.CaptionHeight+"\n"+
"locaionto Client"+ PointToClient(Location);
gf.DrawString(str,Font,Brushes.Black,0,0);
}
}
"locaionto Client"+ PointToClient(Location) 的输出为什么 不变化呢。