[]
        
(Showing Draft Content)

GrapeCity.Documents.Word.SaveOptions

Class SaveOptions

Namespace
GrapeCity.Documents.Word
Assembly
GcDocs.Word.dll

Provides various options controlling how a document is saved.

public class SaveOptions : FormattingBag
Inheritance
object
SaveOptions
Inherited Members
object.ToString()
object.Equals(object)
object.Equals(object, object)
object.ReferenceEquals(object, object)
object.GetHashCode()
object.GetType()
object.MemberwiseClone()

Properties

AvailableFonts

Gets or sets fonts available to save in the document. The default value is GrapeCity.Documents.Text.FontCollection.SystemFonts.

public IFontCollection AvailableFonts { get; set; }

Property Value

GrapeCity.Documents.Text.IFontCollection

CommonSystemFontNames

Gets the collection of common system font names. If the value of EmbedSystemFonts is false, then the fonts from this collection will not be embedded.

public HashSet<string> CommonSystemFontNames { get; }

Property Value

System.Collections.Generic.HashSet<T><string>

EmbedSystemFonts

Gets or sets a value indicating whether to embed common system fonts. The default is false.

This property has no effect if the value of the FontEmbedMode property is None.

public bool EmbedSystemFonts { get; set; }

Property Value

bool

FontEmbedMode

Gets or sets the font embedding mode. The default value is None.

This property has no effect if the value of the SaveFontInfos property is KeepExisting.

public FontEmbedMode FontEmbedMode { get; set; }

Property Value

FontEmbedMode

SaveFontInfos

Gets or sets a value specifying how to save information about the fonts used in the current document. The default value is SaveMissing.

public SaveFontInfos SaveFontInfos { get; set; }

Property Value

SaveFontInfos

Methods

GetFontsInUse()

Gets the names and types of all fonts that are used in the document.

public Dictionary<string, HashSet<EmbeddedFontType>> GetFontsInUse()

Returns

System.Collections.Generic.Dictionary<TKey, TValue><string, System.Collections.Generic.HashSet<T><EmbeddedFontType>>

All font names and their types that are used in the document.