您的位置:首页 > 移动开发 > Objective-C

LinkButton 类

2008-06-28 12:18 87 查看
ImageButton 构造函数

初始化 ImageButton 类的新实例。

命名空间:System.Web.UI.WebControls 程序集:System.Web(在 system.web.dll 中)


 语法

Visual Basic(声明)

Public Sub New


Visual Basic(用法)

Dim instance As New ImageButton


C#

public ImageButton ()


C++

public:
ImageButton ()


J#

public ImageButton ()


JScript

public function ImageButton ()



 备注

使用此构造函数创建并初始化 ImageButton 类的新实例。


 示例

下面的示例说明如何创建和初始化 ImageButton 类的新实例。

Visual Basic


复制代码

Sub Page_Load(sender As Object, e As EventArgs)
Dim img_button As New ImageButton()
End Sub


C#


复制代码

void Page_Load(Object sender, EventArgs e)
{
ImageButton img_button = new ImageButton();
}


J#


复制代码

void Page_Load(Object sender, EventArgs e)
{
ImageButton img_button = new ImageButton();
} //Page_Load


JScript


复制代码

function Page_Load(sender : Object, e : EventArgs){
var img_button : ImageButton = new ImageButton()
}
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签:  button object basic function j# c