LinkButton 类

来源:互联网 发布:2012年网络作家富豪榜 编辑:程序博客网 时间:2024/06/14 04:22
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()}
原创粉丝点击