# ProjectSaveOptions

Serialization format, fidelity, output bounds, and file conflict policy.

Class 

`OfficeIMO.Project`

**Namespace**

`OfficeIMO.Project`

**Assembly**

`OfficeIMO.Project`

**Source revision**

`ba882f6b0d07` with working tree changes

**Source**

[ProjectOptions.cs:101](https://github.com/EvotecIT/OfficeIMO/blob/ba882f6b0d07acddd884b5e7d3086b0cfff0a05a/OfficeIMO.Project/ProjectOptions.cs#L101)

**Modifiers**

sealed

Serialization format, fidelity, output bounds, and file conflict policy.

## Inheritance

- object
- ProjectSaveOptions

## Usage

Explore 5 API references to this type

This type appears in these public API surfaces even when no hand-authored example is attached directly to the page.

### Accepted by parameters 5

- Method [ProjectDocument.AssessSave](/api/project/officeimo-project-projectdocument/#method-assesssave-officeimo-project-projectsaveoptions-threading-cancellationtoken) parameter `options`
- Method [ProjectDocument.Clone](/api/project/officeimo-project-projectdocument/#method-clone-officeimo-project-projectsaveoptions-threading-cancellationtoken-officeimo-project-projectloadoptions) parameter `options`
- Method [ProjectDocument.Save](/api/project/officeimo-project-projectdocument/#method-save-officeimo-project-projectsaveoptions-threading-cancellationtoken) parameter `options`
- Method [ProjectDocument.SaveAsync](/api/project/officeimo-project-projectdocument/#method-saveasync-string-officeimo-project-projectsaveoptions-threading-cancellationtoken) parameter `options`
- Method [ProjectDocument.ToXml](/api/project/officeimo-project-projectdocument/#method-toxml-officeimo-project-projectsaveoptions-threading-cancellationtoken) parameter `options`

Filter members 

Show inherited

## Constructors

`public ProjectSaveOptions()` [#](#constructor-ctor)

[ProjectOptions.cs:101](https://github.com/EvotecIT/OfficeIMO/blob/ba882f6b0d07acddd884b5e7d3086b0cfff0a05a/OfficeIMO.Project/ProjectOptions.cs#L101)

## Inherited Methods

`public virtual bool Equals(object? obj)` [#](#method-equals-object)

Inherited from object

Parameters

**obj object? required**

Returns

`bool`

`public virtual int GetHashCode()` [#](#method-gethashcode)

Inherited from object

Returns

`int`

`public Type GetType()` [#](#method-gettype)

Inherited from object

Returns

`Type`

`public virtual string? ToString()` [#](#method-tostring)

Inherited from object

Returns

`string?`

## Properties

`public ProjectFileFormat Format { get; set; }` [#](#property-format)

[ProjectOptions.cs:93](https://github.com/EvotecIT/OfficeIMO/blob/ba882f6b0d07acddd884b5e7d3086b0cfff0a05a/OfficeIMO.Project/ProjectOptions.cs#L93)

Target format. Explicit values must agree with a path's extension.

`public ProjectMpxEncoding? MpxEncoding { get; set; }` [#](#property-mpxencoding)

[ProjectOptions.cs:95](https://github.com/EvotecIT/OfficeIMO/blob/ba882f6b0d07acddd884b5e7d3086b0cfff0a05a/OfficeIMO.Project/ProjectOptions.cs#L95)

MPX character mapping. Null retains an MPX source declaration; new MPX output uses Windows 1252. Unrepresentable characters are rejected.

`public char? MpxSeparator { get; set; }` [#](#property-mpxseparator)

[ProjectOptions.cs:97](https://github.com/EvotecIT/OfficeIMO/blob/ba882f6b0d07acddd884b5e7d3086b0cfff0a05a/OfficeIMO.Project/ProjectOptions.cs#L97)

MPX field separator. Null retains the source separator or uses a comma for new output. Rewrites reject +, -, ., % and ? because these conflict with dependency syntax.

`public bool AllowLoss { get; set; }` [#](#property-allowloss)

[ProjectOptions.cs:99](https://github.com/EvotecIT/OfficeIMO/blob/ba882f6b0d07acddd884b5e7d3086b0cfff0a05a/OfficeIMO.Project/ProjectOptions.cs#L99)

Allows a save when modeled edits may invalidate unmodeled source content. Default: false, which blocks it.

`public OfficeConversionFileConflictPolicy FileConflictPolicy { get; set; }` [#](#property-fileconflictpolicy)

[ProjectOptions.cs:101](https://github.com/EvotecIT/OfficeIMO/blob/ba882f6b0d07acddd884b5e7d3086b0cfff0a05a/OfficeIMO.Project/ProjectOptions.cs#L101)

Existing-file behavior. Associated saves replace by default through the shared atomic writer.

`public bool PreserveUnchangedBytes { get; set; }` [#](#property-preserveunchangedbytes)

[ProjectOptions.cs:103](https://github.com/EvotecIT/OfficeIMO/blob/ba882f6b0d07acddd884b5e7d3086b0cfff0a05a/OfficeIMO.Project/ProjectOptions.cs#L103)

Returns original bytes when no edits were made.

`public bool Indent { get; set; }` [#](#property-indent)

[ProjectOptions.cs:105](https://github.com/EvotecIT/OfficeIMO/blob/ba882f6b0d07acddd884b5e7d3086b0cfff0a05a/OfficeIMO.Project/ProjectOptions.cs#L105)

Indents newly serialized XML.

`public long MaxOutputBytes { get; set; }` [#](#property-maxoutputbytes)

[ProjectOptions.cs:107](https://github.com/EvotecIT/OfficeIMO/blob/ba882f6b0d07acddd884b5e7d3086b0cfff0a05a/OfficeIMO.Project/ProjectOptions.cs#L107)

Maximum serialized output bytes.

<!-- PowerForge markdown artifact sha256:B55447EB391C8D74AC40AD490790DB22DEF8E6A9FC067AD0A4E7691DB8CE95DF -->
