forked from dotnet/Open-XML-SDK
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathOpenXmlPartWriterSettings.cs
More file actions
29 lines (24 loc) · 1.04 KB
/
OpenXmlPartWriterSettings.cs
File metadata and controls
29 lines (24 loc) · 1.04 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
// Copyright (c) Microsoft. All rights reserved.
// Licensed under the MIT license. See LICENSE file in the project root for full license information.
using System.Text;
namespace DocumentFormat.OpenXml;
/// <summary>
/// Settings for the OpenXmlPartWriter.
/// </summary>
public class OpenXmlPartWriterSettings
{
#if FEATURE_ASYNC_SAX_XML
/// <summary>
/// Gets or sets a value indicating whether asynchronous OpenXmlPartWriter methods can be used.
/// </summary>
public bool Async { get; set; }
#endif
/// <summary>
/// Gets or sets a value indicating whether the OpenXmlPartWriter should check to ensure that all characters in the document conform to the "2.2 Characters" section of the W3C XML 1.0 Recommendation.
/// </summary>
public bool CloseOutput { get; set; }
/// <summary>
/// Gets or sets a value indicating whether the OpenXmlPartWriter should also close the underlying stream or TextWriter when the Close() method is called.
/// </summary>
public Encoding Encoding { get; set; } = Encoding.UTF8;
}