ComOfficeby KDAN API Reference for Windows and Linux
Table of Contents

Class SaveOptions

Namespace
ComOfficeKit
Assembly
ComOfficeKit.dll

How a save is done: the options of Save(SaveOptions) and the SaveAs forms that take them.

public sealed record SaveOptions : IEquatable<SaveOptions>
Inheritance
SaveOptions
Implements
Inherited Members

Constructors

SaveOptions()

public SaveOptions()

Properties

AcceptContentLoss

Writes OpenDocument text (.odt) even when it leaves content out (comments, tracked changes, drawing shapes). Off, such a save throws ContentLossException and writes nothing. Set it once the user has agreed to what Loss or GetContentLoss() counts. No other save is affected.

public bool AcceptContentLoss { get; init; }

Property Value

bool

Default

The options of a plain Save(): nothing accepted.

public static SaveOptions Default { get; }

Property Value

SaveOptions

Methods

Equals(SaveOptions?)

public bool Equals(SaveOptions? other)

Parameters

other SaveOptions

Returns

bool

Equals(object?)

public override bool Equals(object? obj)

Parameters

obj object

Returns

bool

GetHashCode()

public override int GetHashCode()

Returns

int

ToString()

public override string ToString()

Returns

string

Operators

operator ==(SaveOptions?, SaveOptions?)

public static bool operator ==(SaveOptions? left, SaveOptions? right)

Parameters

left SaveOptions
right SaveOptions

Returns

bool

operator !=(SaveOptions?, SaveOptions?)

public static bool operator !=(SaveOptions? left, SaveOptions? right)

Parameters

left SaveOptions
right SaveOptions

Returns

bool