OLEFormat.ClassType Property

Returns or sets the class type for the specified OLE object, picture, or field.

Namespace:  Microsoft.Office.Interop.Word
Assembly:  Microsoft.Office.Interop.Word (in Microsoft.Office.Interop.Word.dll)

Syntax

'Declaration
Property ClassType As String
    Get
    Set
'Usage
Dim instance As OLEFormat
Dim value As String

value = instance.ClassType

instance.ClassType = value
string ClassType { get; set; }

Property Value

Type: System.String

Remarks

This property is read-only for linked objects other than DDE links.

You can see a list of the available applications in the Object type box on the Create New tab in the Object dialog box (Insert menu). You can find the ClassType string by inserting an object as an inline shape and then viewing the field codes. The class type of the object follows either the word "EMBED" or the word "LINK."

See Also

Reference

OLEFormat Interface

OLEFormat Members

Microsoft.Office.Interop.Word Namespace