共用方式為


_Application Members

Include Protected Members
Include Inherited Members

A primary interface in a COM coclass that managed code requires to interoperate with the corresponding COM object. Use this primary interface to disambiguate when a method and an event on the COM object share the same name. Cast to this interface to call the method; cast to the latest events interface to connect to the event. Otherwise, use the interface in the Microsoft® .NET Framework that is derived from the COM coclass to access methods, properties, and events of the COM object.

For information about the COM object, see Application.

The _Application type exposes the following members.

Properties

  Name Description
Public property Active Returns whether the specified pane or window is active. Read-only.
Public property ActiveEncryptionSession Represents the encryption session associated with the active presentation. Read-only.
Public property ActivePresentation Returns a Presentation object that represents the presentation open in the active window. Read-only.
Public property ActivePrinter Returns the name of the active printer. Read-only.
Public property ActiveProtectedViewWindow Returns a ProtectedViewWindow object that represents the active Protected View window (the window on top). Read-only.
Public property ActiveWindow Returns a DocumentWindow object that represents the active document window. Read-only.
Public property AddIns Returns the program-specific AddIns collection that represents all the add-ins listed in the Add-Ins dialog box (click the Office button, click PowerPoint Options, click Add-Ins, click PowerPoint Add-Ins on the Manage list). Read-only.
Public property AnswerWizard Returns the AnswerWizard object that contains the files used by the online Help search engine. Read-only.
Public property Assistance Gets a reference to the Microsoft Office IAssistance object, which provides a means for developers to create a customized help experience for users within Microsoft Office. Read-only.
Public property Assistant Returns an Assistant object that represents the Office Assistant. Read-only.
Public property AutoCorrect Returns an AutoCorrect object that represents the AutoCorrect functionality in Microsoft PowerPoint.
Public property AutomationSecurity Represents the security mode that Microsoft PowerPoint uses when it opens files programmatically. Read/write.
Public property Build Returns the build number for the current instance of Microsoft PowerPoint. Read-only.
Public property Caption Returns the text that appears in the title bar of the application window. Read/write.
Public property COMAddIns Returns a reference to the Component Object Model (COM) add-ins currently loaded in Microsoft PowerPoint. These add-ins are listed on the Add-Ins tab in the PowerPoint Options dialog box. Read-only.
Public property CommandBars Returns a CommandBars collection that represents all the command bars in Microsoft PowerPoint. Read-only.
Public property Creator Returns a 64-bit signed integer that represents the four-character creator code for the application in which the specified object was created. For example, if the object was created in Microsoft PowerPoint, this property returns the hexadecimal number 50575054. Read-only.
Public property DefaultWebOptions Returns the DefaultWebOptions object, which contains global application-level attributes used by Microsoft PowerPoint when you publish or save a complete or partial presentation as a Web page or open a Web page. Read-only.
Public property Dialogs Reserved for internal use.
Public property DisplayAlerts Sets or returns whether Microsoft PowerPoint displays alerts while running a macro. Read/write.
Public property DisplayDocumentInformationPanel Returns or sets whether the Document Properties panel is displayed in the Microsoft PowerPoint user interface. Read/write.
Public property DisplayGridLines Determines whether to display gridlines in Microsoft PowerPoint. Read/write.
Public property FeatureInstall Returns or sets how Microsoft PowerPoint handles calls to methods and properties that require features not yet installed. Read/write.
Public property FileConverters Returns information about installed file converters. Returns a null reference (Nothing in Visual Basic) if there are no converters installed. Read-only.
Public property FileDialog Returns a FileDialog object that represents a single instance of a file dialog box. Read-only.
Public property FileFind Reserved for internal use.
Public property FileSearch Reserved for internal use.
Public property FileValidation Returns or sets a value that indicates how Microsoft PowerPoint will validate files before opening them. Read/write.
Public property Height Returns or sets the height of the specified object, in points. Read/write.
Public property HWND Reserved for internal use.
Public property IsSandboxed Returns whether the specified presentation is open in a Protected View window. Read-only.
Public property LanguageSettings Returns a LanguageSettings object that contains information about the language settings in Microsoft PowerPoint. Read-only.
Public property Left Returns or sets a single-precision floating-point number that represents the distance in points from the left edge of the document, application, and slide show windows to the left edge of the application window's client area. Setting this property to a very large positive or negative value may position the window completely off the desktop. Read/write.
Public property Marker Reserved for internal use.
Public property MsoDebugOptions Reserved for internal use.
Public property Name Returns the string "Microsoft PowerPoint". Read-only.
Public property NewPresentation Returns a NewFile object that represents a presentation listed on the New Presentation task pane. Read-only.
Public property OperatingSystem Returns the name of the operating system. Read-only.
Public property Options Returns an Options object that represents application options in Microsoft PowerPoint.
Public property Path Returns a value that represents the path to the specified Application object. Read-only.
Public property Presentations Returns a Presentations collection that represents all open presentations. Read-only.
Public property ProductCode Returns the Microsoft PowerPoint globally unique identifier (GUID). Read-only.
Public property ProtectedViewWindows Returns a ProtectedViewWindows collection that represents all the Protected View windows that are open in the application. Read-only.
Public property ResampleMediaTasks Reserved for internal use.
Public property ShowStartupDialog Determines whether to display the New Presentation task pane when Microsoft PowerPoint is started. Read/write.
Public property ShowWindowsInTaskbar Determines whether there is a separate Windows taskbar button for each open presentation. Read/write.
Public property SlideShowWindows Returns a SlideShowWindows collection that represents all open slide show windows. Read-only.
Public property SmartArtColors Returns the SmartArt colors of the current Application object. Read-only.
Public property SmartArtLayouts Returns the SmartArt layout of the current Application object. Read-only.
Public property SmartArtQuickStyles Returns the quick styles of the SmartArt diagram in the current Application object. Read-only.
Public property Top Returns or sets a single-precision floating-point number that represents the distance in points from the top edge of the document, application, and slide show window to the top edge of the application window's client area. Read/write.
Public property VBE Returns a VBE object that represents the Visual Basic Editor. Read-only.
Public property Version Returns the Microsoft PowerPoint version number. Read-only.
Public property Visible Returns or sets the visibility of the specified object or the formatting applied to the specified object. Read/write.
Public property Width Returns or sets the width of the specified object, in points. Read/write.
Public property Windows Returns a DocumentWindows collection that represents all open document windows. Read-only.
Public property WindowState Returns or sets the state of the specified window. Read/write.

Top

Methods

  Name Description
Public method Activate Activates the specified object.
Public method GetOptionFlag Reserved for internal use.
Public method Help Displays a Help topic.
Public method LaunchPublishSlidesDialog Reserved for internal use.
Public method LaunchSendToPPTDialog Reserved for internal use.
Public method LaunchSpelling Reserved for internal use.
Public method PPFileDialog Reserved for internal use.
Public method Quit Quits Microsoft PowerPoint. This is equivalent to clicking the Office button and then clicking Exit PowerPoint.
Public method Run Runs a Visual Basic procedure.
Public method SetOptionFlag Reserved for internal use.
Public method SetPerfMarker Reserved for internal use.
Public method StartNewUndoEntry Starts a new undo entry in the Application object.

Top

See Also

Reference

_Application Interface

Microsoft.Office.Interop.PowerPoint Namespace