Nota:
El acceso a esta página requiere autorización. Puede intentar iniciar sesión o cambiar directorios.
El acceso a esta página requiere autorización. Puede intentar cambiar los directorios.
Obtiene un long que representa la longitud de un intervalo de texto. Solo lectura.
Sintaxis
expresión. Largura
expresión Expresión que devuelve un objeto TextRange2 .
Valor devuelto
Long
Ejemplo
En este ejemplo se agrega una forma con texto y se gira la forma sin girar el texto en la presentación activa de PowerPoint.
Sub SetTextRange()
Dim shpStar As Shape
Dim sldOne As Slide
Dim effNew As Effect
Set sldOne = ActivePresentation.Slides(1)
Set shpStar = sldOne.Shapes.AddShape(Type:=msoShape5pointStar, _
Left:=32, Top:=32, Width:=300, Height:=300)
shpStar.TextFrame.TextRange2.Text = "Animated shape."
Set effNew = sldOne.TimeLine.MainSequence.AddEffect(Shape:=shpStar, _
EffectId:=msoAnimEffectPath5PointStar, Level:=msoAnimateTextByAllLevels, _
Trigger:=msoAnimTriggerAfterPrevious)
With effNew
If .TextRangeStart = 0 And .TextRangeLength > 0 Then
With .Behaviors.Add(Type:=msoAnimTypeRotation).RotationEffect
.From = 0
.To = 360
End With
.Timing.AutoReverse = msoTrue
End If
End With
End Sub
Vea también
Soporte técnico y comentarios
¿Tiene preguntas o comentarios sobre VBA para Office o esta documentación? Vea Soporte técnico y comentarios sobre VBA para Office para obtener ayuda sobre las formas en las que puede recibir soporte técnico y enviar comentarios.