Share via


Type Property

Home Page (Objects)OverviewFAQReference

Applies to: Breakpoint object, Document object, Project object, TextDocument object, TextWindow object, Window object

Returns a string describing the type of breakpoint, document, project, or window.

Syntax

object**.Type**

Parameters

object

An expression that evaluates to one of the objects in the Applies To list above.

Return Values

The following table describes what the Type property returns for each object in the Applies To list:

Object Type returned Description
Document
TextDocument
Window
TextWindow
Generic


Text
Contains any file other than a text file.

Contains a text file.
Project Build Represents a project created with Visual C++.
Breakpoint dsChangedExpression
dsLocation
dsLocationWithTrueExpression
dsLocationWithChangedExpression
dsMessage
dsTrueExpression

Remarks

The Type property has the String type for all objects except the Breakpoint object. Used with the Breakpoint object, the Type property is an enum of type DsBreakpointType.

Example

The following example gets the type of the active document:

Dim doctype
doctype = ActiveDocument.Type