WebControl.Height プロパティとは? わかりやすく解説

Weblio 辞書 > コンピュータ > .NET Framework クラス ライブラリ リファレンス > WebControl.Height プロパティの意味・解説 

WebControl.Height プロパティ

Web サーバー コントロールの高さを取得または設定します

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

例外例外
例外種類条件

ArgumentException

高さが負の値に設定されました。

解説解説
使用例使用例

WebControl 基本クラスから継承された、Table コントロールHeight プロパティ宣言による設定方法の例を次に示します

<%@ Page Language="VB" AutoEventWireup="True"
 %>
<html>
 <body>
     <h3>Height Property of a Web Control</h3>
 
 <form runat="server">
 
 <asp:Table id="Table1" runat="server"
    CellPadding="10" 
    GridLines="Both"    
    Height="300">
 
    <asp:TableRow>
       <asp:TableCell>
          Row 0, Col 0
       </asp:TableCell>
 
       <asp:TableCell>
          Row 0, Col 1
       </asp:TableCell>
    </asp:TableRow>
 
    <asp:TableRow>
       <asp:TableCell>
          Row 1, Col 0
       </asp:TableCell>
 
       <asp:TableCell>
          Row 1, Col 1
       </asp:TableCell>
    </asp:TableRow>
 
 </asp:Table>
 
 </form>
 
 </body>
 </html>
 
<%@ Page Language="C#" AutoEventWireup="True" %>
<html>
 <body>
     <h3>Height Property of a Web Control</h3>
 
 <form runat="server">
 
 <asp:Table id="Table1" runat="server"
    CellPadding="10" 
    GridLines="Both"
    Height="300">
 
    <asp:TableRow>
       <asp:TableCell>
          Row 0, Col 0
       </asp:TableCell>
 
       <asp:TableCell>
          Row 0, Col 1
       </asp:TableCell>
    </asp:TableRow>
 
    <asp:TableRow>
       <asp:TableCell>
          Row 1, Col 0
       </asp:TableCell>
 
       <asp:TableCell>
          Row 1, Col 1
       </asp:TableCell>
    </asp:TableRow>
 
 </asp:Table>
 
 </form>
 
 </body>
 </html>
 
<%@ Page Language="JScript" AutoEventWireup="True" %>
<html>
 <body>
     <h3>Height Property of a Web Control</h3>
 
 <form runat="server">
 
 <asp:Table id="Table1" runat="server"
    CellPadding="10" 
    GridLines="Both"    
    Height="300">
 
    <asp:TableRow>
       <asp:TableCell>
          Row 0, Col 0
       </asp:TableCell>
 
       <asp:TableCell>
          Row 0, Col 1
       </asp:TableCell>
    </asp:TableRow>
 
    <asp:TableRow>
       <asp:TableCell>
          Row 1, Col 0
       </asp:TableCell>
 
       <asp:TableCell>
          Row 1, Col 1
       </asp:TableCell>
    </asp:TableRow>
 
 </asp:Table>
 
 </form>
 
 </body>
 </html>
 
プラットフォームプラットフォーム
バージョン情報バージョン情報
参照参照



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

辞書ショートカット

すべての辞書の索引

「WebControl.Height プロパティ」の関連用語

WebControl.Height プロパティのお隣キーワード
検索ランキング

   

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



WebControl.Height プロパティのページの著作権
Weblio 辞書 情報提供元は 参加元一覧 にて確認できます。

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

©2024 GRAS Group, Inc.RSS