Application Interface
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Represents the Word application.
public interface class Application : Microsoft::Office::Interop::Word::_Application, Microsoft::Office::Interop::Word::ApplicationEvents4_Event
[System.Runtime.InteropServices.Guid("00020970-0000-0000-C000-000000000046")]
public interface Application : Microsoft.Office.Interop.Word._Application, Microsoft.Office.Interop.Word.ApplicationEvents4_Event
type Application = interface
interface _Application
interface ApplicationEvents4_Event
Public Interface Application
Implements _Application, ApplicationEvents4_Event
- Derived
- Attributes
- Implements
Remarks
This is a .NET interface derived from a COM coclass that is required by managed code for interoperability with the corresponding COM object. Use this derived interface to access all method, property, and event members of the COM object. However, if a method or event you want to use shares the same name under the same COM object, cast to the corresponding primary interface to call the method, and cast to the latest events interface to connect to the event. Refer to this topic for information about the COM object. For information about the method and property members of the COM object, see _Application. For information about the event members of the COM object, see ApplicationEvents4_Event.
Properties
ActiveDocument |
Returns a Document object that represents the active document. (Inherited from _Application) |
ActiveEncryptionSession |
Returns a Integer that represents the encryption session associated with the active document. Read-only. (Inherited from _Application) |
ActivePrinter |
Returns or sets the name of the active printer. (Inherited from _Application) |
ActiveProtectedViewWindow |
Gets a ProtectedViewWindow object that represents the active protected view window. (Inherited from _Application) |
ActiveWindow |
Returns a Window object that represents the active window. (Inherited from _Application) |
AddIns |
Returns a AddIns collection that represents all available add-ins, regardless of whether they're currently loaded. (Inherited from _Application) |
AnswerWizard |
Returns a AnswerWizard object that contains the files used by the online Help search engine. (Inherited from _Application) |
Application |
Returns a Application object that represents the Microsoft Word application. (Inherited from _Application) |
ArbitraryXMLSupportAvailable |
Returns a Boolean that represents whether Microsoft Word accepts custom XML schemas. Returns True if Word accepts custom XML schemas, or False if schemas are not accepted. (Inherited from _Application) |
Assistance |
Returns an Microsoft.Office.Core.IAssistance object that represents the Microsoft Office Help Viewer. Read-only. (Inherited from _Application) |
Assistant |
Returns a Assistant object that represents the Microsoft Office Assistant. (Inherited from _Application) |
AutoCaptions |
Returns a AutoCaptions collection that represents the captions that are automatically added when items such as tables and pictures are inserted into a document. (Inherited from _Application) |
AutoCorrect |
Returns a AutoCorrect object that contains the current AutoCorrect options, entries, and exceptions. (Inherited from _Application) |
AutoCorrectEmail |
Returns a AutoCorrect object that represents automatic corrections made to e-mail messages. (Inherited from _Application) |
AutomationSecurity |
Returns or sets a MsoAutomationSecurity constant that represents the security setting Microsoft Word uses when programmatically opening files. (Inherited from _Application) |
BackgroundPrintingStatus |
Returns the number of print jobs in the background printing queue. (Inherited from _Application) |
BackgroundSavingStatus |
Returns the number of files queued up to be saved in the background. (Inherited from _Application) |
Bibliography |
Returns a Bibliography object that represents the bibliography references sources stored in Microsoft Office Word. Read-only. (Inherited from _Application) |
BrowseExtraFileTypes |
Set this property to "text/html" to allow hyperlinked HTML files to be opened in Microsoft Word (instead of the default Internet browser). (Inherited from _Application) |
Browser |
Returns a Browser object that represents the Select Browse Object tool on the vertical scroll bar. (Inherited from _Application) |
Build |
Returns the version and build number of the Word application. (Inherited from _Application) |
BuildFeatureCrew |
Reserved for internal use. (Inherited from _Application) |
BuildFull |
Reserved for internal use. (Inherited from _Application) |
CapsLock |
Determines if the CAPS LOCK key is turned on. Returns True if the CAPS LOCK key is turned on, and False if it is not. (Inherited from _Application) |
Caption |
Returns or sets the caption text for the specified document or application window. (Inherited from _Application) |
CaptionLabels |
Returns a CaptionLabels collection that represents all the available caption labels. (Inherited from _Application) |
ChartDataPointTrack |
Returns or sets a Boolean (bool in C#) that specifies whether charts use cell-reference data-point tracking. Read-write. (Inherited from _Application) |
CheckLanguage |
Determines if Microsoft Word automatically detects the language you are using as you type. Returns True if Microsoft Word automatically detects the language you are using as you type, and False if it does not automatically detect the language. (Inherited from _Application) |
COMAddIns |
Returns a reference to the COMAddIns collection that represents all the Component Object Model (COM) add-ins currently loaded in Microsoft Word. (Inherited from _Application) |
CommandBars |
Returns a CommandBars collection that represents the menu bar and all the toolbars in Microsoft Word. (Inherited from _Application) |
Creator |
Returns a 32-bit integer that indicates the application in which the specified object was created. (Inherited from _Application) |
CustomDictionaries |
Returns a Dictionaries object that represents the collection of active custom dictionaries. Active custom dictionaries are marked with a check in the Custom Dictionariesdialog box. (Inherited from _Application) |
CustomizationContext |
Returns or sets a Template or Document object that represents the template or document in which changes to menu bars, toolbars, and key bindings are stored. (Inherited from _Application) |
DefaultLegalBlackline |
Determines if Microsoft Word will compare and merge documents using the Legal blackline option in the Compare and Merge Documents dialog box. Returns True if Word will use the option, and False if not. (Inherited from _Application) |
DefaultSaveFormat |
Returns or sets the default format that will appear in the Save as type box in the Save As dialog box (File menu). (Inherited from _Application) |
DefaultTableSeparator |
Returns or sets the single character used to separate text into cells when text is converted to a table. (Inherited from _Application) |
Dialogs |
Returns a Dialogs collection that represents all the built-in dialog boxes in Microsoft Word. (Inherited from _Application) |
DisplayAlerts |
Returns or sets the way certain alerts and messages are handled while a macro is running. (Inherited from _Application) |
DisplayAutoCompleteTips |
Determines if Microsoft Word displays tips that suggest text for completing words, dates, or phrases as you type. (Inherited from _Application) |
DisplayDocumentInformationPanel |
Returns or sets a Boolean that represents whether the document properties panel is displayed. Read/write. (Inherited from _Application) |
DisplayRecentFiles |
Determines if the names of recently used files are displayed on the File menu. (Inherited from _Application) |
DisplayScreenTips |
Determines if comments, footnotes, endnotes, and hyperlinks are displayed as tips. Text marked as having comments is highlighted. (Inherited from _Application) |
DisplayScrollBars |
Determines if Word displays a scroll bar in at least one document window. (Inherited from _Application) |
DisplayStatusBar |
Determines if the status bar is displayed. (Inherited from _Application) |
Documents |
Returns a Documents collection that represents all the open documents. (Inherited from _Application) |
DontResetInsertionPointProperties |
Returns or sets a Boolean that represents whether Microsoft Office Word maintains the formatting properties of the text at that position of the Insertion Point after running other code. Read/write. (Inherited from _Application) |
Dummy1 |
Reserved for internal use. (Inherited from _Application) |
EmailOptions |
Returns an EmailOptions object that represents the global preferences for e-mail authoring. (Inherited from _Application) |
EmailTemplate |
Returns or sets a String that represents the document template to use when sending e-mail messages. (Inherited from _Application) |
EnableCancelKey |
Returns or sets the way that Word handles CTRL+BREAK user interruptions. (Inherited from _Application) |
FeatureInstall |
Returns or sets how Microsoft Word handles calls to methods and properties that require features not yet installed. (Inherited from _Application) |
FileConverters |
Returns a FileConverters collection that represents all the file converters available to Microsoft Word. (Inherited from _Application) |
FileDialog[MsoFileDialogType] |
Returns a FileDialog object which represents a single instance of a file dialog box. (Inherited from _Application) |
FileSearch |
Returns a FileSearch object that can be used to search for files using either an absolute or relative path. (Inherited from _Application) |
FileValidation |
Gets or sets how Word will validate files before opening them. (Inherited from _Application) |
FindKey[Int32, Object] |
Returns a KeyBindings object that represents the specified key combination. (Inherited from _Application) |
FocusInMailHeader |
Determines if the insertion point is in an e-mail header field. (Inherited from _Application) |
FontNames |
Returns a FontNames object that includes the names of all the available fonts. (Inherited from _Application) |
HangulHanjaDictionaries |
Returns a HangulHanjaConversionDictionaries collection that represents all the active custom conversion dictionaries. (Inherited from _Application) |
Height |
Returns or sets the height of the active document window. (Inherited from _Application) |
International[WdInternationalIndex] |
Returns information about the current country/region and international settings. (Inherited from _Application) |
IsObjectValid[Object] |
Determines if the specified variable that references an object is valid. (Inherited from _Application) |
IsSandboxed |
Gets whether the application window is a protected view window. (Inherited from _Application) |
KeyBindings |
Returns a KeyBindings collection that represents customized key assignments, which include a key code, a key category, and a command. (Inherited from _Application) |
KeysBoundTo[WdKeyCategory, String, Object] |
Returns a KeysBoundTo object that represents all the key combinations assigned to the specified item. (Inherited from _Application) |
LandscapeFontNames |
Returns a FontNames object that includes the names of all the available landscape fonts. (Inherited from _Application) |
Language |
Returns an MsoLanguageID constant that represents the language selected for the Microsoft Word user interface. (Inherited from _Application) |
Languages |
Returns a Languages collection that represents the proofing languages listed in the Language dialog box. (Inherited from _Application) |
LanguageSettings |
Returns a LanguageSettings object, which contains information about the language settings in Microsoft Word. (Inherited from _Application) |
Left |
Returns or sets an Integer that represents the horizontal position of the active document (for the Application object) or the specified task or window, measured in points. (Inherited from _Application) |
ListGalleries |
Returns a ListGalleries collection that represents the three list template galleries (Bulleted, Numbered, and Outline Numbered). (Inherited from _Application) |
MacroContainer |
Returns a Template or Document object that represents the template or document in which the module that contains the running procedure is stored. (Inherited from _Application) |
MailingLabel |
Returns a MailingLabel object that represents a mailing label. (Inherited from _Application) |
MailMessage |
Returns a MailMessage object that represents the active e-mail message. (Inherited from _Application) |
MailSystem |
Returns the mail system (or systems) installed on the host machine. (Inherited from _Application) |
MAPIAvailable |
Determines if MAPI is installed. This property returns True if MAPI is installed, and False if not. (Inherited from _Application) |
MathCoprocessorAvailable |
Determines if a math coprocessor is installed and available to Microsoft Word. This property returns True if a math coprocessor is installed and available to Microsoft Word, and False if not. (Inherited from _Application) |
MouseAvailable |
Determines if there's a mouse available for the system. This property returns True if there's a mouse available for the system, and False if not. (Inherited from _Application) |
Name |
Returns or sets the name of the specified object. (Inherited from _Application) |
NormalTemplate |
Returns a Template object that represents the Normal template. (Inherited from _Application) |
NumLock |
Returns the state of the NUM LOCK key. Returns True if the keys on the numeric keypad insert numbers, and False if the keys move the insertion point. (Inherited from _Application) |
OMathAutoCorrect |
Returns the auto correct entries for equations. Read-only. (Inherited from _Application) |
OpenAttachmentsInFullScreen |
Returns or sets a Boolean that represents whether Microsoft Office Word opens e-mail attachments in Reading mode. Read/write. (Inherited from _Application) |
Options |
Returns an Options object that represents application settings in Microsoft Word. (Inherited from _Application) |
Parent |
Returns an object that represents the parent object of the specified object. (Inherited from _Application) |
Path |
Returns the disk or Web path to the specified object. (Inherited from _Application) |
PathSeparator |
Returns the character used to separate folder names. (Inherited from _Application) |
PickerDialog |
Gets a PickerDialog object that provides the functionality to select people or data in a dialog box. (Inherited from _Application) |
PortraitFontNames |
Returns a FontNames object that includes the names of all the available portrait fonts. (Inherited from _Application) |
PrintPreview |
Determines if print preview is the current view. This property returns True if print preview is the current view, and False if not. (Inherited from _Application) |
ProtectedViewWindows |
Gets a ProtectedViewWindows collection that represents all protected view windows. (Inherited from _Application) |
RecentFiles |
Returns a RecentFiles collection that represents the most recently accessed files. (Inherited from _Application) |
RestrictLinkedStyles |
Returns or sets a Boolean that represents whether Microsoft Office Word allows linked styles. Read/write. (Inherited from _Application) |
ScreenUpdating |
Determines if screen updating is turned on. Returns True if screen updating is turned on, and False if not. (Inherited from _Application) |
Selection |
Returns the Selection object that represents a selected range or the insertion point. (Inherited from _Application) |
ShowAnimation |
This object, member, or enumeration is deprecated and is not intended to be used in your code. (Inherited from _Application) |
ShowStartupDialog |
Determines if the Task Pane will be displayed when starting Microsoft Word. (Inherited from _Application) |
ShowStylePreviews |
Returns or sets a Boolean that represents whether Microsoft Office Word shows a preview of the formatting for styles in the Styles dialog box. Read/write. (Inherited from _Application) |
ShowVisualBasicEditor |
Determines if the Visual Basic Editor window is visible. This property returns True if the Visual Basic Editor window is visible, and False if not. (Inherited from _Application) |
ShowWindowsInTaskbar |
This object, member, or enumeration is deprecated and is not intended to be used in your code. (Inherited from _Application) |
SmartArtColors |
Gets a SmartArtColors object that represents the set of color styles that are currently loaded in the application. (Inherited from _Application) |
SmartArtLayouts |
Gets a SmartArtLayouts object that represents the set of SmartArt layouts that are currently loaded in the application. (Inherited from _Application) |
SmartArtQuickStyles |
Gets a SmartArtQuickStyles object that represents the set of SmartArt styles that are currently loaded in the application. (Inherited from _Application) |
SmartTagRecognizers |
Returns a SmartTagRecognizers collection for an application. (Inherited from _Application) |
SmartTagTypes |
Returns a SmartTagTypes collection that represents the smart tag types for the smart tag components installed in Microsoft Word. (Inherited from _Application) |
SpecialMode |
Determines if Microsoft Word is in a special mode (for example, CopyText mode or MoveText mode). (Inherited from _Application) |
StartupPath |
Returns or sets the complete path of the startup folder, excluding the final separator. (Inherited from _Application) |
StatusBar |
Displays the specified text in the status bar. (Inherited from _Application) |
SynonymInfo[String, Object] |
Returns a SynonymInfo object that contains information from the thesaurus on synonyms, antonyms, or related words and expressions for the specified word or phrase. (Inherited from _Application) |
System |
Returns a System object, which can be used to return system-related information and perform system-related tasks. (Inherited from _Application) |
TaskPanes |
Returns a TaskPanes object that represents the most commonly performed tasks in Microsoft Word. (Inherited from _Application) |
Tasks |
Returns a Tasks collection that represents all the applications that are running. (Inherited from _Application) |
Templates |
Returns a Templates collection that represents all the available templates — global templates as well as those attached to open documents. (Inherited from _Application) |
Top |
Returns or sets the vertical position of the active document, in points. (Inherited from _Application) |
UndoRecord |
Gets an UndoRecord object that provides a custom entry point into the undo stack. (Inherited from _Application) |
UsableHeight |
Returns the maximum height (in points) to which you can set the height of a Microsoft Word document window. (Inherited from _Application) |
UsableWidth |
Returns the maximum width (in points) to which you can set the width of a Microsoft Word document window. (Inherited from _Application) |
UserAddress |
Returns or sets the user's mailing address. (Inherited from _Application) |
UserControl |
Determines if the document or application was created or opened by the user. (Inherited from _Application) |
UserInitials |
Returns or sets the user's initials, which Microsoft Word uses to construct comment marks. (Inherited from _Application) |
UserName |
Returns or sets the user's name, which is used on envelopes and for the Author document property. (Inherited from _Application) |
VBE |
Returns a VBE object that represents the Visual Basic Editor. (Inherited from _Application) |
Version |
Returns the Microsoft Word version number. (Inherited from _Application) |
Visible |
Determines if the specified object is visible. This property returns True if the specified object is visible, and False if not. (Inherited from _Application) |
Width |
Returns or sets the width of the specified object, in points. (Inherited from _Application) |
Windows |
Returns a Windows collection that represents all document windows. (Inherited from _Application) |
WindowState |
Returns or sets the state of the specified document window or task window. (Inherited from _Application) |
WordBasic |
Returns an automation object (Word.Basic) that includes methods for all the WordBasic statements and functions available in Microsoft Word version 6.0 and Word for Windows 95. (Inherited from _Application) |
XMLNamespaces |
Returns an XMLNamespaces collection that represents the XML schemas in the Schema Library. (Inherited from _Application) |
Methods
Events
DocumentBeforeClose |
Occurs immediately before any open document closes. (Inherited from ApplicationEvents4_Event) |
DocumentBeforePrint |
Occurs before any open document is printed. (Inherited from ApplicationEvents4_Event) |
DocumentBeforeSave |
Occurs before any open document is saved. (Inherited from ApplicationEvents4_Event) |
DocumentChange |
Occurs when a new document is created, when an existing document is opened, or when another document is made the active document. (Inherited from ApplicationEvents4_Event) |
DocumentOpen |
Occurs when a document is opened. (Inherited from ApplicationEvents4_Event) |
DocumentSync |
Occurs when the local copy of a document that is part of a Document Workspace is synchronized with the copy on the server. (Inherited from ApplicationEvents4_Event) |
EPostageInsert |
Occurs when a user inserts electronic postage into a document. (Inherited from ApplicationEvents4_Event) |
EPostageInsertEx |
Occurs when a user inserts electronic postage into a document. (Inherited from ApplicationEvents4_Event) |
EPostagePropertyDialog |
Occurs when a user clicks the E-postage Properties (Labels and Envelopes dialog box) button or Print Electronic Postage toolbar button. (Inherited from ApplicationEvents4_Event) |
MailMergeAfterMerge |
Occurs after all records in a mail merge have merged successfully. (Inherited from ApplicationEvents4_Event) |
MailMergeAfterRecordMerge |
Occurs after each record in the data source successfully merges in a mail merge. (Inherited from ApplicationEvents4_Event) |
MailMergeBeforeMerge |
Occurs when a merge is executed before any records merge. (Inherited from ApplicationEvents4_Event) |
MailMergeBeforeRecordMerge |
Occurs as a merge is executed for the individual records in a merge. (Inherited from ApplicationEvents4_Event) |
MailMergeDataSourceLoad |
Occurs when the data source is loaded for a mail merge. (Inherited from ApplicationEvents4_Event) |
MailMergeDataSourceValidate |
Occurs when a user performs address verification by clicking Validate in the Mail Merge Recipients dialog box. (Inherited from ApplicationEvents4_Event) |
MailMergeDataSourceValidate2 |
Occurs when a user validates mail merge recipients by clicking the Validate addresses link button in the Mail Merge Recipients dialog box. (Inherited from ApplicationEvents4_Event) |
MailMergeWizardSendToCustom |
Occurs when the custom button is clicked on step six of the Mail Merge Wizard. (Inherited from ApplicationEvents4_Event) |
MailMergeWizardStateChange |
Occurs when a user changes from a specified step to a specified step in the Mail Merge Wizard. (Inherited from ApplicationEvents4_Event) |
NewDocument |
Occurs when a new document is created. (Inherited from ApplicationEvents4_Event) |
ProtectedViewWindowActivate |
Occurs when any protected view window is activated. (Inherited from ApplicationEvents4_Event) |
ProtectedViewWindowBeforeClose |
Occurs immediately before a protected view window or a document in a protected view window closes. (Inherited from ApplicationEvents4_Event) |
ProtectedViewWindowBeforeEdit |
Occurs immediately before editing is enabled on the document in the specified protected view window. (Inherited from ApplicationEvents4_Event) |
ProtectedViewWindowDeactivate |
Occurs when a protected view window is deactivated. (Inherited from ApplicationEvents4_Event) |
ProtectedViewWindowOpen |
Occurs when a protected view window is opened. (Inherited from ApplicationEvents4_Event) |
ProtectedViewWindowSize |
Occurs when a protected view window is moved or resized. (Inherited from ApplicationEvents4_Event) |
Quit |
Occurs when the user quits Word. (Inherited from ApplicationEvents4_Event) |
Startup |
Reserved for internal use. (Inherited from ApplicationEvents4_Event) |
WindowActivate |
Occurs when any document window is activated. (Inherited from ApplicationEvents4_Event) |
WindowBeforeDoubleClick |
Occurs when the editing area of a document window is double-clicked, before the default double-click action. (Inherited from ApplicationEvents4_Event) |
WindowBeforeRightClick |
Occurs when the editing area of a document window is right-clicked, before the default right-click action. (Inherited from ApplicationEvents4_Event) |
WindowDeactivate |
Occurs when any document window is deactivated. (Inherited from ApplicationEvents4_Event) |
WindowSelectionChange |
Occurs when the selection changes in the active document window. (Inherited from ApplicationEvents4_Event) |
WindowSize |
Occurs when the application window is resized or moved. (Inherited from ApplicationEvents4_Event) |
XMLSelectionChange |
Occurs when the parent XML node of the current selection changes. (Inherited from ApplicationEvents4_Event) |
XMLValidationError |
Occurs when there is a validation error in the document. (Inherited from ApplicationEvents4_Event) |