Document Members

Include Protected Members
Include Inherited Members

Represents a document in the environment open for editing.

The Document type exposes the following members.

Methods

 

Name

Description

Public method

Activate

Moves the focus to the current item.

Public method

ClearBookmarks

Infrastructure. Microsoft Internal Use Only.

Public method

Close

Closes the open document and optionally saves it, or closes and destroys the window.

Public method

MarkText

Infrastructure. Microsoft Internal Use Only.

Public method

NewWindow

Creates a new window in which to view the document.

Public method

Object

Returns an interface or object that can be accessed at run time by name.

Public method

PrintOut

Infrastructure. Microsoft Internal Use Only.

Public method

Redo

Re-executes the last action that was undone by the Undo method or the user.

Public method

ReplaceText

Infrastructure. Microsoft Internal Use Only.

Public method

Save

Saves the document.

Public method

Undo

Reverses the action last performed by the user in the document.

Top

Properties

 

Name

Description

Public property

ActiveWindow

Gets the currently active window, or the topmost window if no others are active. Returns Nothing if no windows are open.

Public property

Collection

Gets the collection containing the Document object.

Public property

DTE

Gets the top-level extensibility object.

Public property

Extender

Returns the requested Extender if it is available for this object.

Public property

ExtenderCATID

Gets the Extender category ID (CATID) for the object.

Public property

ExtenderNames

Gets a list of available Extenders for the object.

Public property

FullName

Gets the full path and name of the object's file.

Public property

IndentSize

Infrastructure. Microsoft Internal Use Only.

Public property

Kind

Gets a GUID string indicating the kind or type of the object.

Public property

Language

Infrastructure. Microsoft Internal Use Only.

Public property

Name

Gets the name of the Document.

Public property

Path

Gets the path, without file name, for the directory containing the document.

Public property

ProjectItem

Gets the ProjectItem object associated with the Document object.

Public property

ReadOnly

Infrastructure. Microsoft Internal Use Only.

Public property

Saved

Returns true if the object has not been modified since last being saved or opened.

Public property

Selection

Gets an object representing the current selection on the Document.

Public property

TabSize

Infrastructure. Microsoft Internal Use Only.

Public property

Type

Infrastructure. Microsoft Internal Use Only.

Public property

Windows

Gets a Windows collection containing the windows that display in the object.

Top

See Also

Reference

Document Interface

EnvDTE Namespace