ForeignType Property [Visio 2003 SDK Documentation]
Returns the subtype of a Shape object that represents a foreign object.
intval = object.ForeignType
intVal VisShapeTypes. Subtype of the Shape object that represents a foreign object. See Remarks for possible values.
object Required. An expression that returns an OLEObject or Shape object.
Version added
4.1
Remarks
If the Type property of a Shape object returns any value other than visTypeForeignObject, the ForeignType property returns the same value as the Shape object's Type property. If the Type property of a Shape object returns visTypeForeignObject, the ForeignType property returns a combination of the following values.
Constant | Value |
---|---|
visTypeMetafile |
&H0010 |
visTypeBitmap |
&H0020 |
visTypeIsLinked |
&H0100 |
visTypeIsEmbedded |
&H0200 |
visTypeIsControl |
&H0400 |
visTypeIsOLE2 |
&H8000 |
If the shape represents an OLE 2.0 embedded object, for example, its ForeignType property is &H8200.
Applies to | OLEObject object | Shape object
See Also | ClassID property | ForeignData property | Object property | ObjectIsInherited property | ProgID property | Type property