HtmlInputImage コンストラクタとは? わかりやすく解説

Weblio 辞書 > コンピュータ > .NET Framework クラス ライブラリ リファレンス > HtmlInputImage コンストラクタの意味・解説 

HtmlInputImage コンストラクタ

HtmlInputImage クラス新しインスタンス初期化します。

名前空間: System.Web.UI.HtmlControls
アセンブリ: System.Web (system.web.dll 内)
構文構文

Dim instance As New HtmlInputImage
public HtmlInputImage ()
public:
HtmlInputImage ()
public HtmlInputImage ()
public function HtmlInputImage ()
解説解説
使用例使用例

HtmlInputImage コントロール新しインスタンス作成して Web ページ配置する方法次のコード例示します

<%@ Page Language="VB" AutoEventWireup="True"
 %>

<script runat="server" >
  
  Sub Page_Load(ByVal sender As
 Object, ByVal e As EventArgs)

    ' Create an HtmlInputImage control.
    Dim image As HtmlInputImage = New
 HtmlInputImage()
    image.Src = "Image.jpg"
    image.Alt = "Alternate text for image."
 
    ' Add the control to the Controls collection of the 
    ' PlaceHolder control.
    Place.Controls.Clear()
    Place.Controls.Add(image)
         
  End Sub
  
</script>

<html>
  
<body>

   <form runat="server">
  
      <h3> HtmlInputImage Constructor Example </h3> 
  
      <asp:PlaceHolder id="Place" runat="server"/>
  
   </form>

</body>
</html>
 
<%@ Page Language="C#" AutoEventWireup="True" %>

<script runat="server" >
  
  void Page_Load(Object sender, EventArgs e)
  {

    // Create an HtmlInputImage control.
    HtmlInputImage image = new HtmlInputImage();
    image.Src = "Image.jpg";
    image.Alt = "Alternate text for image.";

    // Add the control to the Controls collection of the 
    // PlaceHolder control.
    Place.Controls.Clear();
    Place.Controls.Add(image);

  }
  
   </script>

<html>
  
<body>

   <form runat="server">
  
      <h3> HtmlInputImage Constructor Example </h3> 
  
      <asp:PlaceHolder id="Place" 
                       runat="server"/>
  
   </form>

</body>
</html>
 
プラットフォームプラットフォーム
バージョン情報バージョン情報
参照参照



英和和英テキスト翻訳>> Weblio翻訳
英語⇒日本語日本語⇒英語
  

辞書ショートカット

すべての辞書の索引

「HtmlInputImage コンストラクタ」の関連用語

HtmlInputImage コンストラクタのお隣キーワード
検索ランキング

   

英語⇒日本語
日本語⇒英語
   



HtmlInputImage コンストラクタのページの著作権
Weblio 辞書 情報提供元は 参加元一覧 にて確認できます。

   
日本マイクロソフト株式会社日本マイクロソフト株式会社
© 2025 Microsoft.All rights reserved.

©2025 GRAS Group, Inc.RSS