ToSheet property

Microsoft Visio Developer Reference

ToSheet property

       

Returns the shape to which one or more connections are made.

Version added

2.0

Syntax

objRet = object.ToSheet

objRet

The Shape object to which the connection is made.

object

Required. An expression that returns a Connect object or Connects collection.

Remarks

The ToSheet property for a Connect object always returns the shape to which the connection is made.

The Connects collection represents several connections. If every connection represented by the collection is made to the same shape, the ToSheet property returns that shape. Otherwise, it returns Nothing and does not raise an exception.