IndentedTextWriter.Indent プロパティ
アセンブリ: System (system.dll 内)

Dim instance As IndentedTextWriter Dim value As Integer value = instance.Indent instance.Indent = value
インデント幅として使用する空白文字の数。

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, " ");

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


Weblioに収録されているすべての辞書からIndentedTextWriter.Indent プロパティを検索する場合は、下記のリンクをクリックしてください。

- IndentedTextWriter.Indent プロパティのページへのリンク