我看课本的时候,GDI+画图这一章,有个例子是点击button的时候在窗体上画图,其中:
Graphics gp=this.CreateGraphics();
这里的this代表的是button还是form啊?如果是button的话为什么又能再form上画图?
Graphics gp=this.CreateGraphics();
这里的this代表的是button还是form啊?如果是button的话为什么又能再form上画图?
比如“人”是个类,楼主就是“人”类的一个实例(对象)
楼主说:“我”(this、me、self)结贴了。
这里的“我”就是楼主本人。就是说:
class Class1
{
this就是Class1的当前实例。
}