DisplayType Property (OLEObject Object)

       

Returns or sets a value indicating whether an object displays its contents or an icon.

Syntax

object.DisplayType [ = value]

The DisplayType property syntax has these parts:

Part Description
object An object expression that evaluates to an object in the Applies To list.
value An integer or constant specifying whether an object displays its contents or an icon, as described in Settings.

Settings

The settings for value are:

Constant Value Description
rtfDisplayContent 0 Content. When the RichTextBox control contains an object, the object's data is displayed in the control.
rtfDisplayIcon 1 Icon. When the RichTextBox control contains an object, the object's icon is displayed in the control.

Remarks

After adding the object to the OLEObjects Collection, use the DisplayType property to change how that object is displayed.