Language Property

Home Page (Objects)OverviewFAQReference

Applies to: TextDocument object

Gets or sets the programming language used to check the syntax of the language in a document.

Syntax

object.Language [=string]

Parameters

object

An expression that evaluates to a TextDocument object.

string

A string constant of type DsLanguageSettings that specifies the type of language. Possible values are:

Remarks

The Language property has the String type.

Example

The following example sets the programming language used in the active document to C/C++:

ActiveDocument.Language = dsCPP