ConnectorFormat.EndConnected プロパティ (Publisher)

指定したコネクタの末尾が図形に接続されているかどうかを示す MsoTriState 定数を返します。 読み取り専用です。

構文

EndConnected

ConnectorFormat オブジェクトを表す変数。

戻り値

MsoTriState

注釈

コネクタの始点が図形に接続されているかどうかを調べるには、 BeginConnected プロパティを使用します。

EndConnected プロパティの値には、Microsoft Office のタイプ ライブラリで宣言されているし、次の表に示す msotristate クラス の定数のいずれかを指定できます。

定数 説明
msoFalse 指定したコネクタの終点は図形に接続されていません。
msoTriStateMixed 戻り値だけです。 msoTruemsoFalse を指定した図形範囲の組み合わせを示します。
msoTrue 指定したコネクタの終点は図形に接続されています。

作業中の文書の最初のページの 3 番目の図形が、図形に終点が接続するコネクタの場合、次の使用例は、結合点の番号を保存し、結合した図形への参照を保存し、次に、コネクタの終点と図形の接続を解除します。

Dim intSite As Integer 
Dim shpConnected As Shape 
 
With ActiveDocument.Pages(1).Shapes(3) 
 
 ' Test whether shape is a connector. 
 If .Connector Then 
 With .ConnectorFormat 
 
 ' Test whether connector is connected to another shape. 
 If .End Connected Then 
 
 ' Store connection site number. 
 intSite = .EndConnectionSite 
 
 ' Set reference to connected shape. 
 Set shpConnected = .EndConnectedShape 
 
 ' Disconnect connector and shape. 
 .EndDisconnect 
 End If 
 End With 
 End If 
End With 

サポートとフィードバック

Office VBA またはこの説明書に関するご質問やフィードバックがありますか? サポートの受け方およびフィードバックをお寄せいただく方法のガイダンスについては、Office VBA のサポートおよびフィードバックを参照してください。