HtmlTextWriter.OutputTabs メソッド
アセンブリ: System.Web (system.web.dll 内)


OutputTabs メソッドは、Indent プロパティを使用して、書き込むタブ文字列の数を確認し、必要なインデントを取得します。
タブ文字列は、HtmlTextWriter コンストラクタを使用して指定します。タブ文字列が指定されていない場合は、DefaultTabString 定数 (\t) が使用されます。

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(); }

Windows 98, Windows 2000 SP4, Windows Server 2003, Windows XP Media Center Edition, Windows XP Professional x64 Edition, Windows XP SP2, Windows XP Starter Edition
開発プラットフォームの中には、.NET Framework によってサポートされていないバージョンがあります。サポートされているバージョンについては、「システム要件」を参照してください。


Weblioに収録されているすべての辞書からHtmlTextWriter.OutputTabs メソッドを検索する場合は、下記のリンクをクリックしてください。

- HtmlTextWriter.OutputTabs メソッドのページへのリンク