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

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

IndentedTextWriter コンストラクタ (TextWriter)


IndentedTextWriter コンストラクタ (TextWriter, String)

テキスト ライタタブ文字列を指定して、IndentedTextWriter クラス新しインスタンス初期化します。

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

Public Sub New ( _
    writer As TextWriter, _
    tabString As String _
)
Dim writer As TextWriter
Dim tabString As String

Dim instance As New IndentedTextWriter(writer,
 tabString)
public IndentedTextWriter (
    TextWriter writer,
    string tabString
)
public:
IndentedTextWriter (
    TextWriter^ writer, 
    String^ tabString
)
public IndentedTextWriter (
    TextWriter writer, 
    String tabString
)
public function IndentedTextWriter (
    writer : TextWriter, 
    tabString : String
)

パラメータ

writer

出力使用する TextWriter

tabString

インデント幅として使用するタブ文字列。

使用例使用例

指定したタブ文字列を使用して 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 名前空間
TextWriter

IndentedTextWriter コンストラクタ




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

辞書ショートカット

すべての辞書の索引

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

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

   

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



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

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

©2025 GRAS Group, Inc.RSS