返回或设置文本区域的起始位置。 只读。
语法
expression。 TextRangeStart
表达 一个代表 Effect 对象的变量。
返回值
长型
示例
本示例添加一个包含文本的形状,并旋转该形状而保持文本静止。
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.TextRange.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
另请参阅
支持和反馈
有关于 Office VBA 或本文档的疑问或反馈? 请参阅 Office VBA 支持和反馈,获取有关如何接收支持和提供反馈的指南。