Description |
---|
Excerpt |
---|
Represents a Word document. |
Signature | C# | C# | |
---|---|---|---|
Wiki Markup | |||
{description}
{excerpt}Represents a Word document.{excerpt}
{signature:C#}
public sealed class Document : Element
| |||
Signature | |||
{signature}{signature:vb.net | vb.net | }
Public NotInheritable Class Document
Inherits Element
| |
Remarks | |||
To create a new document, use {signature} {remarks}To create a new document, use [WordApplication.Create()|WordApplication.Create()]. To open an existing document, use [WordApplication.Open(). |WordApplication.Open]. Note: [Document|Document] inherits from [Element|Element] and inherits a lot basic functionality from that class. Be sure to see the {{Element}} API docs when looking for specific functionality. | |||
Example | |||
Code Block | | csharp | csharp |
title | C# | ||
Code Block | vb.net | title |
Properties |
---|
...
Name
...
Description
...
...
{code} {example} {properties} ||Name||Description|| |[AutoformatType|Document.AutoformatType]|{excerpt-include:Document.AutoformatType |
...
|nopanel=true}| |[CompatibilitySettings|Document.CompatibilitySettings]|{excerpt-include |
...
:Document.CompatibilitySettings |
...
|nopanel=true}| |[ChangeTracking|Document.ChangeTracking]|{excerpt-include |
...
:Document.ChangeTracking |
...
|nopanel=true}| |[DateCreated|Document.DateCreated]|{excerpt-include |
...
:Document.DateCreated |
...
|nopanel=true}| |[DatePrinted|Document.DatePrinted]|{excerpt-include |
...
:Document.DatePrinted |
...
|nopanel=true}| |[DateRevised|Document.DateRevised]|{excerpt-include |
...
:Document.DateRevised |
...
|nopanel=true}| |[DefaultTabWidth|Document.DefaultTabWidth]|{excerpt-include |
...
:Document.DefaultTabWidth |
...
|nopanel=true}| |[DocumentProperties|Document.DocumentProperties]|{excerpt-include |
...
:Document.DocumentProperties |
...
|nopanel=true}| |[DocumentProtection|Document.DocumentProtection]|{excerpt-include |
...
:Document.DocumentProtection |
...
|nopanel=true}| |[GutterPosition|Document.GutterPosition]|{excerpt-include |
...
:Document.GutterPosition |
...
|nopanel=true}| |[HyphenSettings|Document.HyphenSettings]|{excerpt-include |
...
:Document.HyphenSettings |
...
|nopanel=true}| |[MergeStylesFromTemplate|Document.MergeStylesFromTemplate]|{excerpt-include |
...
:Document.MergeStylesFromTemplate |
...
|nopanel=true}| |[NumCharacters|Document.NumCharacters]|{excerpt-include |
...
:Document.NumCharacters |
...
|nopanel=true}| |[NumPagesOnLastOpen|Document.NumPagesOnLastOpen]|{excerpt-include |
...
:Document.NumPagesOnLastOpen |
...
|nopanel=true}| |[NumParagraphs|Document.NumParagraphs]|{excerpt-include |
...
:Document.NumParagraphs |
...
|nopanel=true}| |[NumWords|Document.NumWords]|{excerpt-include |
...
:Document.NumWords |
...
|nopanel=true}| |[PrintDataInFormFields|Document.PrintDataInFormFields]|{excerpt-include |
...
:Document.PrintDataInFormFields |
...
|nopanel=true}| |[PrintFacingPages|Document.PrintFacingPages]|{excerpt-include |
...
:Document.PrintFacingPages |
...
|nopanel=true}| |[SaveDataInFormField|Document.SaveDataInFormField]|{excerpt-include |
...
:Document.SaveDataInFormField |
...
|nopanel=true}| |[Sections|Document.Sections]|{excerpt-include |
...
:Document.Sections |
...
|nopanel=true}| |[Styles|Document.Styles]|{excerpt-include |
...
:Document.Styles |
...
|nopanel=true}| |[UseWidowControl|Document.UseWidowControl]|{excerpt-include |
...
:Document.UseWidowControl |
...
|nopanel=true}| |[ViewSettings|Document.ViewSettings]|{excerpt-include |
...
:Document.ViewSettings |
...
|nopanel=true}| |[Watermark|Document.Watermark]|{excerpt-include |
...
:Document.Watermark |
...
Methods |
---|
...
Name
...
Description
|nopanel=true}| {methods} ||Name||Description|| |[Append(Document) |
...
|Document.Append(Document) |
...
]|{excerpt-include:Document.Append(Document) |
...
|nopanel |
...
=true}| |[CreateDataImportProperties() |
...
|Document.CreateDataImportProperties() |
...
]|{excerpt-include:Document.CreateDataImportProperties() |
...
|nopanel |
...
=true}| |[CreateFont() |
...
|Document.CreateFont() |
...
]|{excerpt-include:Document.CreateFont() |
...
|nopanel |
...
=true}| |[CreateParagraphFormatting() |
...
|Document.CreateParagraphFormatting() |
...
]|{excerpt-include:Document.CreateParagraphFormatting() |
...
|nopanel |
...
=true}| |[CreateTableFormatting() |
...
|Document.CreateTableFormatting() |
...
]|{excerpt-include:Document.CreateTableFormatting() |
...
|nopanel |
...
=true}| |[GetBookmark(String) |
...
|Document.GetBookmark(String) |
...
]|{excerpt-include:Document.GetBookmark(String) |
...
|nopanel |
...
=true}| |[GetVariable(String) |
...
|Document.GetVariable(String) |
...
]|{excerpt-include:Document.GetVariable(String) |
...
|nopanel |
...
=true}| |[SetVariable(String, String) |
...
|Document.SetVariable(String, String) |
...
]|{excerpt-include:Document.SetVariable(String, String) |
...
|nopanel |
...
Classes |
---|
...
Name
...
Description
...
...
=true}| {classes} ||Name||Description|| |[Autoformat|Document.Autoformat]|{excerpt-include:Document.Autoformat |
...
|nopanel=true}| |[Gutter|Document.Gutter]|{excerpt-include |
...
:Document.Gutter |
...
|nopanel=true}| |