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

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

IndentedTextWriter.Indent プロパティ

インデント幅として適用する空白文字の数を取得または設定します

名前空間: System.CodeDom.Compiler
アセンブリ: System (system.dll 内)
構文構文

使用例使用例

IndentedTextWriter のインデント幅の設定方法については、次のコード例参照してくださいインデント幅は、各行先頭設定するタブ文字列の数です。

' Create a TextWriter to use as the base output writer.
Dim baseTextWriter As New
 System.IO.StringWriter
      
' Create an IndentedTextWriter and set the tab string to use 
' as the indentation string for each indentation level.
Dim indentWriter = New IndentedTextWriter(baseTextWriter,
 "    ")
// Creates a TextWriter to use as the base output writer.
System.IO.StringWriter baseTextWriter = new System.IO.StringWriter();
            

// Create an IndentedTextWriter and set the tab string to use 
// as the indentation string for each indentation level.
System.CodeDom.Compiler.IndentedTextWriter indentWriter = new
 IndentedTextWriter(baseTextWriter, "    ");           
// Creates a TextWriter to use as the base output writer.
System::IO::StringWriter^ baseTextWriter = gcnew System::IO::StringWriter;

// Create an IndentedTextWriter and set the tab string to use 
// as the indentation string for each indentation level.
System::CodeDom::Compiler::IndentedTextWriter^ indentWriter = gcnew IndentedTextWriter(
 baseTextWriter,"    " );

// Creates a TextWriter to use as the base output writer.
System.IO.StringWriter baseTextWriter = new System.IO.StringWriter();

// Create an IndentedTextWriter and set the tab string to use 
// as the indentation string for each indentation level.
System.CodeDom.Compiler.IndentedTextWriter indentWriter 
    = new IndentedTextWriter(baseTextWriter, "    ");

プラットフォームプラットフォーム
バージョン情報バージョン情報
参照参照
関連項目
IndentedTextWriter クラス
IndentedTextWriter メンバ
System.CodeDom.Compiler 名前空間


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

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

辞書ショートカット

すべての辞書の索引

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

   

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



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

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

©2024 GRAS Group, Inc.RSS