[]
Represents options that control protection, view, compatibility and other settings.
public class Settings : FormattingBag
Gets or sets the full path of the template attached to the document.
public Uri AttachedTemplate { get; set; }
Gets the list of custom XML schema whose target namespace should be associated with this document when it is loaded, if such a schema is available to the hosting application. Applications can also load and utilize any additional schemas as well as those explicitly mentioned here. These custom XML schemas can then be used to validate the structure of the XmlDocument in the document, etc.
public List<string> AttachedXmlSchemas { get; }
Gets or sets a value indicating whether the styles in the document are updated to match the styles in the attached template each time the document is opened in MS Word.
public bool AutomaticallyUpdateSyles { get; set; }
Gets the base (this class) key for formatting properties.
protected override string BaseKey { get; }
Returns an object that represents all the built-in document properties of the document.
public BuiltInPropertyCollection BuiltinProperties { get; }
Provides access to document compatibility options.
public CompatibilityOptions CompatibilityOptions { get; }
Returns a collection that represents all the custom document properties of the document.
public CustomPropertyCollection CustomProperties { get; }
Provides access to options that control the document protection features.
public DocumentProtection DocumentProtection { get; }
Provides access to East Asian typography options.
public EastAsianTypography EastAsianTypography { get; }
Provides options that control numbering and positioning of endnotes in the document.
public EndnoteOptions EndnoteOptions { get; }
Provides options that control numbering and positioning of footnotes in the document.
public FootnoteOptions FootnoteOptions { get; }
Gets a value indicating whether the document has a VBA project (macros).
public bool HasMacros { get; }
Provides access to document hyphenation options.
public HyphenationOptions HyphenationOptions { get; }
Gets or sets the default locale name (language) of formatted characters.
public string LocaleName { get; set; }
Gets or sets the locale name (language) of complex script characters.
public string LocaleNameBi { get; set; }
Gets or sets the locale name (language) of formatted Asian characters.
public string LocaleNameFarEast { get; set; }
Provides access to the Office Math zone options on the document level.
public OMathOptions OMathOptions { get; }
Gets the document save options.
public SaveOptions SaveOptions { get; }
Returns the collection of variables added to the document.
public VariableCollection Variables { get; }
Provides various options that control how a document is shown in application.
public ViewOptions ViewOptions { get; }
Gets a ThemeColor from the ColorScheme by its ThemeColorId.
public ThemeColor GetThemeColor(ThemeColorId id)
id
ThemeColorIdThe theme color Id.
A ThemeColor from the color scheme.
Sets the color mapping layer which allows a user to define colors for background and text. This allows for swapping out of light/dark colors for backgrounds and the text on top of the background in order to maintain readability of the text on a deeper level.
public void RemapColor(ThemeColorId themeColorId, ThemeColorSchemeId themeColorSchemeId)
themeColorId
ThemeColorIdThe theme color id to map.
themeColorSchemeId
ThemeColorSchemeIdthe theme color scheme id to map.
Removes all macros (the VBA project) as well as toolbars and command customizations from the document.
public void RemoveMacros()