Click or drag to resize
TextOpenSave Enumeration
Mutually exclusive options for opening/saving a document in the Text Object Model.

Namespace: TextObjectModel
Assembly: ManagedTOM2 (in ManagedTOM2.dll) Version: 1.0.5577.41188
Syntax
public enum TextOpenSave
Members
  Member nameValueDescription
Default0 Gives read/write access and read/write sharing, open always, and automatic recognition of the file format (unrecognized file formats are treated as text).
CreateNew16Create a new file. Fail if the file already exists.
CreateAlways32Create a new file. Destroy the existing file if it exists.
OpenExisting48Open an existing file. Fail if the file does not exist.
OpenAlways64Open an existing file. Create a new file if the file does not exist.
TruncateExisting80Open an existing file, but truncate it to zero length.
RTF1Open as RTF.
Text2Open as text ANSI or Unicode.
HTML3Open as HTML.
WordDocument4Open as Word document.
See Also