HtmlTextWriter.OutputTabs メソッドとは? わかりやすく解説

Weblio 辞書 > コンピュータ > .NET Framework クラス ライブラリ リファレンス > HtmlTextWriter.OutputTabs メソッドの意味・解説 

HtmlTextWriter.OutputTabs メソッド

マークアップ文字の行のインデント レベルを表す一連のタブ文字列を書き込みます

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

Protected Overridable Sub
 OutputTabs
Me.OutputTabs
protected void OutputTabs ()
解説解説
使用例使用例

HtmlTextWriter クラスから派生したクラスOutputTabs メソッドオーバーライドする方法次のコード例示しますOutputTabs オーバーライドは、常に DefaultTabString 定数使用してインデント実行します

' Override the OutputTabs method to set the tab to
' the number of spaces defined by the Indent variable.   
Protected Overrides Sub
 OutputTabs()
    ' Output the DefaultTabString for the number
    ' of times specified in the Indent property.
    Dim i As Integer
    For i = 0 To Indent - 1
        Write(DefaultTabString)
    Next i
    MyBase.OutputTabs()
End Sub
// Override the OutputTabs method to set the tab to
// the number of spaces defined by the Indent variable.      
protected override void OutputTabs()
{
    // Output the DefaultTabString for the number
    // of times specified in the Indent property.
    for (int i = 0; i < Indent; i++)
        Write(DefaultTabString);
    base.OutputTabs();
}
// Override the OutputTabs method to set the tab to
// the number of spaces defined by the Indent variable.
virtual void OutputTabs() override
{
   
   // Output the DefaultTabString for the number
   // of times specified in the Indent property.
   for ( int i = 0; i < Indent; i++ )
      Write( DefaultTabString );
   __super::OutputTabs();
}
// Override the OutputTabs method to tab the number
// of spaces defined by the Indent variable.
protected void OutputTabs()
{
    // Output the 'DefaultTabString' for 'Indent' number of times.
    for (int i = 0; i < get_Indent(); i++)
 {
        Write(DefaultTabString);
    }
    super.OutputTabs();
} //OutputTabs
プラットフォームプラットフォーム
バージョン情報バージョン情報
参照参照
関連項目
HtmlTextWriter クラス
HtmlTextWriter メンバ
System.Web.UI 名前空間
TextWriter
Indent
DefaultTabString


このページでは「.NET Framework クラス ライブラリ リファレンス」からHtmlTextWriter.OutputTabs メソッドを検索した結果を表示しています。
Weblioに収録されているすべての辞書からHtmlTextWriter.OutputTabs メソッドを検索する場合は、下記のリンクをクリックしてください。
 全ての辞書からHtmlTextWriter.OutputTabs メソッド を検索

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

辞書ショートカット

すべての辞書の索引

HtmlTextWriter.OutputTabs メソッドのお隣キーワード
検索ランキング

   

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



HtmlTextWriter.OutputTabs メソッドのページの著作権
Weblio 辞書 情報提供元は 参加元一覧 にて確認できます。

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

©2025 GRAS Group, Inc.RSS