IndentedStringBuilder 類別
定義
重要
部分資訊涉及發行前產品,在發行之前可能會有大幅修改。 Microsoft 對此處提供的資訊,不做任何明確或隱含的瑕疵擔保。
外面覆蓋一層薄薄的包裝 StringBuilder ,為每條線增加凹痕。
此類型通常由資料庫提供者(及其他擴充功能)使用。 它通常不被用於應用程式程式碼中。
[System.Runtime.CompilerServices.Nullable(0)]
public class IndentedStringBuilder
public class IndentedStringBuilder
[<System.Runtime.CompilerServices.Nullable(0)>]
type IndentedStringBuilder = class
type IndentedStringBuilder = class
Public Class IndentedStringBuilder
- 繼承
-
IndentedStringBuilder
- 屬性
備註
更多資訊與範例請參見 資料庫提供者與擴充功能的實作 。
建構函式
| 名稱 | Description |
|---|---|
| IndentedStringBuilder() |
外面覆蓋一層薄薄的包裝 StringBuilder ,為每條線增加凹痕。 此類型通常由資料庫提供者(及其他擴充功能)使用。 它通常不被用於應用程式程式碼中。 |
屬性
| 名稱 | Description |
|---|---|
| IndentCount |
會得到目前的縮排等級。 |
| Length |
目前組裝的弦長。 |
方法
| 名稱 | Description |
|---|---|
| Append(Char) |
將目前的縮排加上所給定的字元,然後加到正在建立的字串上。 |
| Append(FormattableString) |
將目前的縮排加上給定字串,然後附加在正在建立的字串上。 |
| Append(IEnumerable<Char>) |
將目前的縮排加上所給的字元,然後再加到正在建立的字串上。 |
| Append(IEnumerable<String>) |
將目前的縮排加上給定的字串到正在建立的字串上。 |
| Append(String) |
將目前的縮排加上給定字串,然後附加在正在建立的字串上。 |
| AppendJoin(IEnumerable<String>, String) |
將給定集合的成員串接起來,使用指定的分隔符,然後附加產生的字串, |
| AppendJoin(String, String[]) |
將給定集合的成員串接起來,使用指定的分隔符,然後附加產生的字串, |
| AppendLine() |
在正在建造的弦上加上一行新線。 |
| AppendLine(FormattableString) |
將目前的縮排、給定字串及新行附加於正在建立的字串上。 |
| AppendLine(String) |
將目前的縮排、給定字串及新行附加於正在建立的字串上。 |
| AppendLines(String, Boolean) |
將給定字串分成行,然後在每行前加上當前縮排並接新行,附加在正在建立的字串上。 |
| Clear() |
重置這個建構器,準備重新製作弦。 |
| Clone() |
複製此內容 IndentedStringBuilder,複製已建構的字串和目前縮排等級。 |
| DecrementIndent() |
縮排會減少。 |
| IncrementIndent() |
縮排會增加。 |
| Indent() |
建立一個有範圍的壓軸,讓縮排增加,處理時再遞減。 |
| SuspendIndent() |
暫時停用所有縮排。 當歸還物品被丟棄時,會恢復原本的縮排。 |
| ToString() |
回傳已建成的弦。 |