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
Default
The options of a plain Save(): nothing accepted.
public static SaveOptions Default { get; }
Property Value
Methods
Equals(SaveOptions?)
public bool Equals(SaveOptions? other)
Parameters
otherSaveOptions
Returns
Equals(object?)
public override bool Equals(object? obj)
Parameters
objobject
Returns
GetHashCode()
public override int GetHashCode()
Returns
ToString()
public override string ToString()
Returns
Operators
operator ==(SaveOptions?, SaveOptions?)
public static bool operator ==(SaveOptions? left, SaveOptions? right)
Parameters
leftSaveOptionsrightSaveOptions
Returns
operator !=(SaveOptions?, SaveOptions?)
public static bool operator !=(SaveOptions? left, SaveOptions? right)
Parameters
leftSaveOptionsrightSaveOptions