|
71 | 71 | <Docs>
|
72 | 72 | <summary>Provides a text writer that can indent new lines by a tab string token.</summary>
|
73 | 73 | <remarks>
|
74 |
| - <format type="text/markdown"><![CDATA[ |
75 |
| - |
76 |
| -## Remarks |
77 |
| - <xref:System.CodeDom.Compiler.IndentedTextWriter> extends a <xref:System.IO.TextWriter> by providing methods that insert a tab string and track the current indentation level. Text formatted with multiple indentation levels is useful for generated code, so this class is used by CodeDOM code generator implementations. |
78 |
| - |
79 |
| - The tab string is the string that each indentation consists of. Typically the tab string contains white space. |
80 |
| - |
| 74 | + <format type="text/markdown"><![CDATA[ |
| 75 | +
|
| 76 | +## Remarks |
| 77 | + <xref:System.CodeDom.Compiler.IndentedTextWriter> extends a <xref:System.IO.TextWriter> by providing methods that insert a tab string and track the current indentation level. Text formatted with multiple indentation levels is useful for generated code, so this class is used by CodeDOM code generator implementations. |
| 78 | +
|
| 79 | + The tab string is the string that each indentation consists of. Typically the tab string contains white space. |
| 80 | +
|
81 | 81 | > [!NOTE]
|
82 |
| -> This class contains a link demand and an inheritance demand at the class level that applies to all members. A <xref:System.Security.SecurityException> is thrown when either the immediate caller or the derived class does not have full-trust permission. For details about security demands, see [Link Demands](/dotnet/framework/misc/link-demands) and [Inheritance Demands](https://learn.microsoft.com/previous-versions/dotnet/netframework-4.0/x4yx82e6(v=vs.100)). |
83 |
| - |
84 |
| - |
85 |
| - |
86 |
| -## Examples |
87 |
| - The following code example demonstrates using an <xref:System.CodeDom.Compiler.IndentedTextWriter> to write text at different levels of indentation. |
88 |
| - |
| 82 | +> This class contains a link demand and an inheritance demand at the class level that applies to all members. A <xref:System.Security.SecurityException> is thrown when either the immediate caller or the derived class does not have full-trust permission. For details about security demands, see [Link Demands](/dotnet/framework/misc/link-demands) and [Inheritance Demands](https://learn.microsoft.com/previous-versions/dotnet/netframework-4.0/x4yx82e6(v=vs.100)). |
| 83 | +
|
| 84 | +
|
| 85 | +
|
| 86 | +## Examples |
| 87 | + The following code example demonstrates using an <xref:System.CodeDom.Compiler.IndentedTextWriter> to write text at different levels of indentation. |
| 88 | +
|
89 | 89 | :::code language="cpp" source="~/snippets/cpp/VS_Snippets_CLR/IndentedTextWriterExample/CPP/form1.cpp" id="Snippet1":::
|
90 | 90 | :::code language="csharp" source="~/snippets/csharp/System.CodeDom.Compiler/IndentedTextWriter/Overview/form1.cs" id="Snippet1":::
|
91 |
| - :::code language="vb" source="~/snippets/visualbasic/VS_Snippets_CLR/IndentedTextWriterExample/VB/form1.vb" id="Snippet1"::: |
92 |
| - |
| 91 | + :::code language="vb" source="~/snippets/visualbasic/VS_Snippets_CLR/IndentedTextWriterExample/VB/form1.vb" id="Snippet1"::: |
| 92 | +
|
93 | 93 | ]]></format>
|
94 | 94 | </remarks>
|
95 | 95 | </Docs>
|
|
205 | 205 | <param name="tabString">The tab string to use for indentation.</param>
|
206 | 206 | <summary>Initializes a new instance of the <see cref="T:System.CodeDom.Compiler.IndentedTextWriter" /> class using the specified text writer and tab string.</summary>
|
207 | 207 | <remarks>
|
208 |
| - <format type="text/markdown"><![CDATA[ |
209 |
| - |
210 |
| -## Examples |
211 |
| - The following code example demonstrates creating an <xref:System.CodeDom.Compiler.IndentedTextWriter> using a specified tab string. |
212 |
| - |
| 208 | + <format type="text/markdown"><![CDATA[ |
| 209 | +
|
| 210 | +## Examples |
| 211 | + The following code example demonstrates creating an <xref:System.CodeDom.Compiler.IndentedTextWriter> using a specified tab string. |
| 212 | +
|
213 | 213 | :::code language="cpp" source="~/snippets/cpp/VS_Snippets_CLR/IndentedTextWriterExample/CPP/form1.cpp" id="Snippet3":::
|
214 | 214 | :::code language="csharp" source="~/snippets/csharp/System.CodeDom.Compiler/IndentedTextWriter/Overview/form1.cs" id="Snippet3":::
|
215 |
| - :::code language="vb" source="~/snippets/visualbasic/VS_Snippets_CLR/IndentedTextWriterExample/VB/form1.vb" id="Snippet3"::: |
216 |
| - |
| 215 | + :::code language="vb" source="~/snippets/visualbasic/VS_Snippets_CLR/IndentedTextWriterExample/VB/form1.vb" id="Snippet3"::: |
| 216 | +
|
217 | 217 | ]]></format>
|
218 | 218 | </remarks>
|
219 | 219 | <altmember cref="T:System.IO.TextWriter" />
|
|
310 | 310 | <Docs>
|
311 | 311 | <summary>Specifies the default tab string. This field is constant.</summary>
|
312 | 312 | <remarks>
|
313 |
| - <format type="text/markdown"><![CDATA[ |
314 |
| - |
315 |
| -## Remarks |
316 |
| - The default tab string consists of a single white space. (" ") |
317 |
| - |
| 313 | + <format type="text/markdown"><![CDATA[ |
| 314 | +
|
| 315 | +## Remarks |
| 316 | + The default tab string consists of a single white space. (" ") |
| 317 | +
|
318 | 318 | ]]></format>
|
319 | 319 | </remarks>
|
320 | 320 | </Docs>
|
|
352 | 352 | <summary>Performs application-defined tasks associated with freeing, releasing, or resetting unmanaged resources asynchronously.</summary>
|
353 | 353 | <returns>A <see cref="T:System.Threading.Tasks.ValueTask" /> representing the asynchronous dispose operation.</returns>
|
354 | 354 | <remarks>To be added.</remarks>
|
355 |
| - <inheritdoc /> |
356 | 355 | </Docs>
|
357 | 356 | </Member>
|
358 | 357 | <Member MemberName="Encoding">
|
|
447 | 446 | <Docs>
|
448 | 447 | <summary>Flushes the stream.</summary>
|
449 | 448 | <remarks>
|
450 |
| - <format type="text/markdown"><![CDATA[ |
451 |
| - |
452 |
| -## Remarks |
453 |
| - This clears the stream of any data. |
454 |
| - |
| 449 | + <format type="text/markdown"><![CDATA[ |
| 450 | +
|
| 451 | +## Remarks |
| 452 | + This clears the stream of any data. |
| 453 | +
|
455 | 454 | ]]></format>
|
456 | 455 | </remarks>
|
457 | 456 | </Docs>
|
|
489 | 488 | <summary>Clears all buffers for this <see cref="T:System.CodeDom.Compiler.IndentedTextWriter" /> asynchronously and causes any buffered data to be written to the underlying device.</summary>
|
490 | 489 | <returns>A <see cref="T:System.Threading.Tasks.Task" /> representing the asynchronous flush operation.</returns>
|
491 | 490 | <remarks>This method stores in the task it returns all non-usage exceptions that the method's synchronous counterpart can throw. If an exception is stored into the returned task, that exception will be thrown when the task is awaited. Usage exceptions, such as <see cref="T:System.ArgumentException" />, are still thrown synchronously. For the stored exceptions, see the exceptions thrown by <see cref="M:System.CodeDom.Compiler.IndentedTextWriter.Flush" />.</remarks>
|
492 |
| - <inheritdoc /> |
493 | 491 | </Docs>
|
494 | 492 | </Member>
|
495 | 493 | <Member MemberName="FlushAsync">
|
|
580 | 578 | <summary>Gets or sets the number of spaces to indent.</summary>
|
581 | 579 | <value>The number of spaces to indent.</value>
|
582 | 580 | <remarks>
|
583 |
| - <format type="text/markdown"><![CDATA[ |
584 |
| - |
585 |
| -## Examples |
586 |
| - The following code example demonstrates setting the indentation level of an <xref:System.CodeDom.Compiler.IndentedTextWriter>. The indentation level is the number of tab strings to prefix each line with. |
587 |
| - |
| 581 | + <format type="text/markdown"><![CDATA[ |
| 582 | +
|
| 583 | +## Examples |
| 584 | + The following code example demonstrates setting the indentation level of an <xref:System.CodeDom.Compiler.IndentedTextWriter>. The indentation level is the number of tab strings to prefix each line with. |
| 585 | +
|
588 | 586 | :::code language="cpp" source="~/snippets/cpp/VS_Snippets_CLR/IndentedTextWriterExample/CPP/form1.cpp" id="Snippet3":::
|
589 | 587 | :::code language="csharp" source="~/snippets/csharp/System.CodeDom.Compiler/IndentedTextWriter/Overview/form1.cs" id="Snippet3":::
|
590 |
| - :::code language="vb" source="~/snippets/visualbasic/VS_Snippets_CLR/IndentedTextWriterExample/VB/form1.vb" id="Snippet3"::: |
591 |
| - |
| 588 | + :::code language="vb" source="~/snippets/visualbasic/VS_Snippets_CLR/IndentedTextWriterExample/VB/form1.vb" id="Snippet3"::: |
| 589 | +
|
592 | 590 | ]]></format>
|
593 | 591 | </remarks>
|
594 | 592 | </Docs>
|
|
2687 | 2685 | <summary>Asynchronously writes the line terminator to the underlying <see cref="T:System.IO.TextWriter" />.</summary>
|
2688 | 2686 | <returns>A <see cref="T:System.Threading.Tasks.Task" /> representing the asynchronous line writing operation.</returns>
|
2689 | 2687 | <remarks>This method stores in the task it returns all non-usage exceptions that the method's synchronous counterpart can throw. If an exception is stored into the returned task, that exception will be thrown when the task is awaited. Usage exceptions, such as <see cref="T:System.ArgumentException" />, are still thrown synchronously. For the stored exceptions, see the exceptions thrown by <see cref="M:System.CodeDom.Compiler.IndentedTextWriter.WriteLine" />.</remarks>
|
2690 |
| - <inheritdoc /> |
2691 | 2688 | </Docs>
|
2692 | 2689 | </Member>
|
2693 | 2690 | <Member MemberName="WriteLineAsync">
|
|
2957 | 2954 | <param name="s">The string to write.</param>
|
2958 | 2955 | <summary>Writes the specified string to a line without tabs.</summary>
|
2959 | 2956 | <remarks>
|
2960 |
| - <format type="text/markdown"><![CDATA[ |
2961 |
| - |
2962 |
| -## Examples |
2963 |
| - The following code example demonstrates writing a line without tab string indentations. |
2964 |
| - |
| 2957 | + <format type="text/markdown"><![CDATA[ |
| 2958 | +
|
| 2959 | +## Examples |
| 2960 | + The following code example demonstrates writing a line without tab string indentations. |
| 2961 | +
|
2965 | 2962 | :::code language="cpp" source="~/snippets/cpp/VS_Snippets_CLR/IndentedTextWriterExample/CPP/form1.cpp" id="Snippet6":::
|
2966 | 2963 | :::code language="csharp" source="~/snippets/csharp/System.CodeDom.Compiler/IndentedTextWriter/Overview/form1.cs" id="Snippet6":::
|
2967 |
| - :::code language="vb" source="~/snippets/visualbasic/VS_Snippets_CLR/IndentedTextWriterExample/VB/form1.vb" id="Snippet6"::: |
2968 |
| - |
| 2964 | + :::code language="vb" source="~/snippets/visualbasic/VS_Snippets_CLR/IndentedTextWriterExample/VB/form1.vb" id="Snippet6"::: |
| 2965 | +
|
2969 | 2966 | ]]></format>
|
2970 | 2967 | </remarks>
|
2971 | 2968 | </Docs>
|
|
0 commit comments