| TextOpenSave Enumeration |
Mutually exclusive options for opening/saving a document in the Text Object Model.
Namespace: TextObjectModelAssembly: ManagedTOM2 (in ManagedTOM2.dll) Version: 1.0.5577.41188
Syntax Public Enumeration TextOpenSave
public enum class TextOpenSave
Members
| Member name | Value | Description |
---|
| Default | 0 |
Gives read/write access and read/write sharing, open always, and
automatic recognition of the file format (unrecognized file formats
are treated as text).
|
| CreateNew | 16 | Create a new file. Fail if the file already exists. |
| CreateAlways | 32 | Create a new file. Destroy the existing file if it exists. |
| OpenExisting | 48 | Open an existing file. Fail if the file does not exist. |
| OpenAlways | 64 | Open an existing file. Create a new file if the file does not exist. |
| TruncateExisting | 80 | Open an existing file, but truncate it to zero length. |
| RTF | 1 | Open as RTF. |
| Text | 2 | Open as text ANSI or Unicode. |
| HTML | 3 | Open as HTML. |
| WordDocument | 4 | Open as Word document. |
See Also