Share via


TextDisplayQuality Property [Visio 2003 SDK Documentation]

Determines the quality of the text display in the Microsoft Office Visio window.

retVal = object.TextDisplayQuality

object.TextDisplayQuality = newVal

retVal   VisTextDisplayQualityTypes. Current text display quality. See Remarks for possible values.

object    Required. An expression that returns an ApplicationSettings object.

newVal   Required VisTextDisplayQualityTypes. New text display quality. See Remarks for possible values.

Version added

2003

Remarks

Setting the TextDisplayQuality property is equivalent to setting the Text quality option in the Options dialog box (Tools menu).

The following VisTextDisplayQualityTypes constants, which are declared in the Visio type libary, show the possible values for the TextDisplayQuality property.

Constant Value Description

visTextDisplayClear

2

ClearType text display (antialiased, LCD displays)

visTextDisplayFaster

0

Faster text display (aliased)

visTextDisplayHigherQuality

1

Higher-quality text display (antialiased)

Note  Some VisTextDisplayQualityTypes constants are not valid on some computers. For example, visTextDisplayClear is valid only on systems running Microsoft Windows XP, and text display quality options may also be limited on computers running Visio from a terminal server.

Example

This Microsoft Visual Basic for Applications (VBA) macro shows how to use the TextDisplayQuality property to print the current text qualtiy setting in the Immediate window. It also shows how to get an ApplicationSettings object from the Visio Application object.

Public Sub TextDisplayQuality_Example()

    Dim vsoApplicationSettings As Visio.ApplicationSettings
    Dim textQuality As VisTextDisplayQualityTypes

    Set vsoApplicationSettings = Visio.Application.Settings
    textQuality = vsoApplicationSettings.TextDisplayQuality

    Debug.Print textQuality

End Sub

Applies to | ApplicationSettings object