Edytuj

Udostępnij za pośrednictwem


Global Interface

Definition

Contains top-level properties and methods that don't need to be preceded by the Application property.

public interface class Global : Microsoft::Office::Interop::Word::_Global
[System.Runtime.InteropServices.Guid("000209B9-0000-0000-C000-000000000046")]
public interface Global : Microsoft.Office.Interop.Word._Global
type Global = interface
    interface _Global
Public Interface Global
Implements _Global
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 _Global.

Properties

ActiveDocument

Returns a Document object that represents the active document (the document with the focus). If there are no documents open, an error occurs.

(Inherited from _Global)
ActivePrinter

Returns or sets the name of the active printer.

(Inherited from _Global)
ActiveProtectedViewWindow

Gets a ProtectedViewWindow object that represents the active protected view window (the protected view window with the focus).

(Inherited from _Global)
ActiveWindow

Returns a Window object that represents the active window (the window with the focus).

(Inherited from _Global)
AddIns

Returns a AddIns collection that represents all available add-ins, regardless of whether they're currently loaded.

(Inherited from _Global)
AnswerWizard

Returns a AnswerWizard object that contains the files used by the online Help search engine.

(Inherited from _Global)
Application

Returns a _Application object that represents the Microsoft Word application.

(Inherited from _Global)
Assistant

Returns a Assistant object that represents the Microsoft Office Assistant.

(Inherited from _Global)
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 _Global)
AutoCorrect

Returns a AutoCorrect object that contains the current AutoCorrect options, entries, and exceptions.

(Inherited from _Global)
AutoCorrectEmail

Returns a AutoCorrect object that represents automatic corrections made to e-mail messages.

(Inherited from _Global)
CaptionLabels

Returns a CaptionLabels collection that represents all the available caption labels.

(Inherited from _Global)
CommandBars

Returns a CommandBars collection that represents the menu bar and all the toolbars in Microsoft Word.

(Inherited from _Global)
Creator

Returns a 32-bit integer that indicates the application in which the specified object was created.

(Inherited from _Global)
CustomDictionaries

Returns a Dictionaries object that represents the collection of active custom dictionaries. Active custom dictionaries are marked with a check in the Custom Dictionaries dialog box.

(Inherited from _Global)
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 _Global)
Dialogs

Returns a Dialogs collection that represents all the built-in dialog boxes in Microsoft Word.

(Inherited from _Global)
Documents

Returns a Documents collection that represents all the open documents.

(Inherited from _Global)
FileConverters

Returns a FileConverters collection that represents all the file converters available to Microsoft Word.

(Inherited from _Global)
FindKey[Int32, Object]

Returns a KeyBinding object that represents the specified key combination.

(Inherited from _Global)
FontNames

Returns a FontNames object that includes the names of all the available fonts.

(Inherited from _Global)
HangulHanjaDictionaries

Returns a HangulHanjaConversionDictionaries collection that represents all the active custom conversion dictionaries.

(Inherited from _Global)
IsObjectValid[Object]

Determines if the specified variable that references an object is valid.

(Inherited from _Global)
IsSandboxed

Gets whether the application window is a protected view window.

(Inherited from _Global)
KeyBindings

Returns a KeyBindings collection that represents customized key assignments, which include a key code, a key category, and a command.

(Inherited from _Global)
KeysBoundTo[WdKeyCategory, String, Object]

Returns a KeysBoundTo object that represents all the key combinations assigned to the specified item.

(Inherited from _Global)
LandscapeFontNames

Returns a FontNames object that includes the names of all the available landscape fonts.

(Inherited from _Global)
Languages

Returns a Languages collection that represents the proofing languages listed in the Language dialog box.

(Inherited from _Global)
LanguageSettings

Returns a LanguageSettings object, which contains information about the language settings in Microsoft Word.

(Inherited from _Global)
ListGalleries

Returns a ListGalleries collection that represents the three list template galleries: Bulleted, Numbered, and Outline Numbered.

(Inherited from _Global)
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 _Global)
Name

Returns or sets the name of the specified object.

(Inherited from _Global)
NormalTemplate

Returns a Template object that represents the Normal template.

(Inherited from _Global)
Options

Returns an Options object that represents application settings in Microsoft Word.

(Inherited from _Global)
Parent

Returns an object that represents the parent object of the specified object.

(Inherited from _Global)
PortraitFontNames

Returns a FontNames object that includes the names of all the available portrait fonts.

(Inherited from _Global)
PrintPreview

Determines if print preview is the current view.

(Inherited from _Global)
ProtectedViewWindows

Gets a ProtectedViewWindows object that represents the open protected view windows.

(Inherited from _Global)
RecentFiles

Returns a RecentFiles collection that represents the most recently accessed files.

(Inherited from _Global)
Selection

Returns the Selection object that represents a selected range or the insertion point.

(Inherited from _Global)
ShowVisualBasicEditor

Determines if the Visual Basic Editor window is visible.

(Inherited from _Global)
StatusBar

Displays the specified text in the status bar.

(Inherited from _Global)
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 _Global)
System

Returns a System object, which can be used to return system-related information and perform system-related tasks.

(Inherited from _Global)
Tasks

Returns a Tasks collection that represents all the applications that are running.

(Inherited from _Global)
Templates

Returns a Templates collection that represents all the available templates — global templates as well as those attached to open documents.

(Inherited from _Global)
VBE

Returns a VBE object that represents the Visual Basic Editor.

(Inherited from _Global)
Windows

Returns a Windows collection that represents all document windows. The collection corresponds to the window names that appear at the bottom of the Window menu.

(Inherited from _Global)
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 _Global)

Methods

BuildKeyCode(WdKey, Object, Object, Object)

Returns a unique number for the specified key combination.

(Inherited from _Global)
CentimetersToPoints(Single)

Converts a measurement from centimeters to points (1 cm = 28.35 points).

(Inherited from _Global)
ChangeFileOpenDirectory(String)

Sets the folder in which Microsoft Word searches for documents.

(Inherited from _Global)
CheckSpelling(String, Object, Object, Object, Object, Object, Object, Object, Object, Object, Object, Object, Object)

Checks a string for spelling errors.

(Inherited from _Global)
CleanString(String)

Removes nonprinting characters (character codes 1 – 29) and special Microsoft Word characters from the specified string or changes them to spaces (character code 32).

(Inherited from _Global)
DDEExecute(Int32, String)

Sends a command or series of commands to an application through the specified dynamic data exchange (DDE) channel.

(Inherited from _Global)
DDEInitiate(String, String)

Opens a dynamic data exchange (DDE) channel to another application, and returns the channel number.

(Inherited from _Global)
DDEPoke(Int32, String, String)

Uses an open dynamic data exchange (DDE) channel to send data to an application.

(Inherited from _Global)
DDERequest(Int32, String)

Uses an open dynamic data exchange (DDE) channel to request information from the receiving application, and returns the information as a string.

(Inherited from _Global)
DDETerminate(Int32)

Closes the specified dynamic data exchange (DDE) channel to another application.

(Inherited from _Global)
DDETerminateAll()

Closes all dynamic data exchange (DDE) channels opened by Microsoft Word.

(Inherited from _Global)
GetSpellingSuggestions(String, Object, Object, Object, Object, Object, Object, Object, Object, Object, Object, Object, Object, Object)

Returns a SpellingSuggestions collection that represents the words suggested as spelling replacements for a given word.

(Inherited from _Global)
Help(Object)

Displays on-line Help information.

(Inherited from _Global)
InchesToPoints(Single)

Converts a measurement from inches to points (1 inch = 72 points).

(Inherited from _Global)
KeyString(Int32, Object)

Returns the key combination string for the specified keys (for example, CTRL+SHIFT+A).

(Inherited from _Global)
LinesToPoints(Single)

Converts a measurement from lines to points (1 line = 12 points).

(Inherited from _Global)
MillimetersToPoints(Single)

Converts a measurement from millimeters to points (1 mm = 2.85 points).

(Inherited from _Global)
NewWindow()

Opens a new window with the same document as the specified window.

(Inherited from _Global)
PicasToPoints(Single)

Converts a measurement from picas to points (1 pica = 12 points).

(Inherited from _Global)
PixelsToPoints(Single, Object)

Converts a measurement from pixels to points.

(Inherited from _Global)
PointsToCentimeters(Single)

Converts a measurement from points to centimeters (1 centimeter = 28.35 points).

(Inherited from _Global)
PointsToInches(Single)

Converts a measurement from points to inches (1 inch = 72 points).

(Inherited from _Global)
PointsToLines(Single)

Converts a measurement from points to lines (1 line = 12 points).

(Inherited from _Global)
PointsToMillimeters(Single)

Converts a measurement from points to millimeters (1 millimeter = 2.835 points).

(Inherited from _Global)
PointsToPicas(Single)

Converts a measurement from points to picas (1 pica = 12 points).

(Inherited from _Global)
PointsToPixels(Single, Object)

Converts a measurement from points to pixels.

(Inherited from _Global)
Repeat(Object)

Repeats the most recent editing action one or more times.

(Inherited from _Global)

Applies to