XmlTextWriter.IndentChar 屬性

定義

取得或設定當 Formatting 設為 Formatting.Indented 時用於縮排的字元。

public:
 property char IndentChar { char get(); void set(char value); };
public char IndentChar { get; set; }
member this.IndentChar : char with get, set
Public Property IndentChar As Char

屬性值

Char

用來縮排的字元。 預設值是空白。

備註

XmlTextWriter 可讓您將這個屬性設定為任何字元。 若要確保有效的 XML,您必須指定有效的空白字元、0x9、0x10、0x13或0x20。

注意

從 .NET Framework 2.0 開始,我們建議您使用 XmlWriter.Create 方法和 XmlWriterSettings 類別來建立 XmlWriter 實例,以利用新功能。

適用於

另請參閱