ContainsWorkspace property

Microsoft Visio Developer Reference

ContainsWorkspace property

   Example   

Determines whether the document was saved as a workspace.

Version added

2002

Syntax

boolRet = object.ContainsWorkspace

boolRet

Boolean. True if the document was saved as a workspace; otherwise, False.

object

Required. An expression that returns a Document object.

Remarks

This property is read only, but you can cause a document to be saved as a workspace by passing the visSaveAsWS flag to the SaveAsEx method.

This is equivalent to clicking Workspace under the Save button in the Save As dialog box (on the File menu, click Save As, and then click the arrow next to Save).