首页 诗词 字典 板报 句子 名言 友答 励志 学校 网站地图
当前位置: 首页 > 教程频道 > .NET > C# >

c sharp:UIContentControl=new UIContentControl(this);中的this,该怎么处理

2012-01-05 
c sharp:_UIContentControlnew UIContentControl(this)中的this我从一位老大那知道this的意思是:这个thi

c sharp:_UIContentControl=new UIContentControl(this);中的this
我从一位老大那知道this的意思是:这个this是指向这条语句所在方法所属的类的实例的指针   。  
但是那又有什么用呢,能举个简单的例子吗?

[解决办法]
this.a();
可以列出这个类中的public访问类型的方法

this.text=“”;
this.borderstyle=none;
这种情况,是当在一个form中用时,可以设置form的属性

热点排行