private static void ProcessIndentAndSpacingFormat(IndentAndSpacingFormat iasf, XmlWriter xmlw) { xmlw.WriteStartElement("IndentAndSpacingFormat"); xmlw.WriteAttributeString("FirstLineIndent", iasf.FirstLineIndent.ToStringSafe()); xmlw.WriteAttributeString("LeftIndent", iasf.LeftIndent.ToStringSafe()); xmlw.WriteAttributeString("LineSpacing", iasf.LineSpacing.ToStringSafe()); xmlw.WriteAttributeString("LineSpacingType", iasf.LineSpacingType.ToStringSafe()); xmlw.WriteAttributeString("RightIndent", iasf.RightIndent.ToStringSafe()); xmlw.WriteEndElement(); }
private static void ProcessIndentAndSpacingFormat(IndentAndSpacingFormat iasf, Utf8JsonWriter jsonw) { jsonw.WritePropertyName("IndentAndSpacingFormat"); jsonw.WriteStartObject(); jsonw.WriteString("FirstLineIndent", iasf.FirstLineIndent.ToStringSafe()); jsonw.WriteString("LeftIndent", iasf.LeftIndent.ToStringSafe()); jsonw.WriteString("LineSpacing", iasf.LineSpacing.ToStringSafe()); jsonw.WriteString("LineSpacingType", iasf.LineSpacingType.ToStringSafe()); jsonw.WriteString("RightIndent", iasf.RightIndent.ToStringSafe()); jsonw.WriteEndObject(); }