Table of contents
TOC
Recolher sumário
Expandir sumário

Propriedade Shape.ConnectionSiteCount (PowerPoint)Shape.ConnectionSiteCount Property (PowerPoint)

office 365 dev account|Última Atualização: 22/03/2018
|
2 Colaboradores

Retorna o número de locais de conexão na forma especificada. Somente leitura.Returns the number of connection sites on the specified shape. Read-only.

SintaxeSyntax

expressão. ConnectionSiteCountexpression. ConnectionSiteCount

expressão Uma variável que representa um objeto Shape .expression A variable that represents a Shape object.

Valor retornadoReturn Value

LongLong

ExemploExample

Este exemplo adiciona dois retângulos a myDocument e os une com dois conectores. Os inícios de ambos os conectores anexar ao site de conexão um no primeiro retângulo; anexação de extremidades de conectores para os sites de conexão e o sobrenome do segundo retângulo.This example adds two rectangles to myDocument and joins them with two connectors. The beginnings of both connectors attach to connection site one on the first rectangle; the ends of the connectors attach to the first and last connection sites of the second rectangle.

Set myDocument = ActivePresentation.Slides(1)

Set s = myDocument.Shapes

Set firstRect = s.AddShape(msoShapeRectangle, 100, 50, 200, 100)

Set secondRect = s.AddShape(msoShapeRectangle, 300, 300, 200, 100)

lastsite = secondRect.ConnectionSiteCount

With s.AddConnector(msoConnectorCurve, 0, 0, 100, 100) _
        .ConnectorFormat

    .BeginConnect ConnectedShape:=firstRect, ConnectionSite:=1
    .EndConnect ConnectedShape:=secondRect, ConnectionSite:=1

End With

With s.AddConnector(msoConnectorCurve, 0, 0, 100, 100) _
        .ConnectorFormat

    .BeginConnect ConnectedShape:=firstRect, ConnectionSite:=1
    .EndConnect ConnectedShape:=secondRect, _
        ConnectionSite:=lastsite

End With

Ver tambémSee also

ConceitosConcepts

Objeto ShapeShape Object

© 2018 Microsoft