DisplayType Property

See Also21QBNN

Applies To

OLE control2HQDVVU.

Description

Determines whether an object displays its contents or an icon.

Usage

[form.]ole.DisplayType [ = setting ]

Setting

The DisplayType property settings are:

Setting         Description

 

0                   (Default) Content.  When the OLE control contains an object, the object's data is displayed in the control.

1                   Icon.  When the OLE control contains an object, the object's icon is displayed in the control.

 

Remarks

This property determines the default setting of the Icon check box in the Insert Object and Paste Special dialogs.  When you display these dialogs either at run time (set Action to 14 or 15) or design time, the Icon check box is automatically selected if this property is set to 1 (Icon).

When creating an object at run time using the Action property, you use the DisplayType property to determine if the object is to be displayed as an icon (set DisplayType = 1), or if the objects data is to be displayed in the control (set DisplayType = 0).

Once an object is created, you cannot change its display type.

Data Type

IntegerDOKXHY


See Also

Help:

Action Property04T78S3