AnimationSettings.TextUnitEffect Property
Indicates whether the text in the specified shape is animated paragraph by paragraph, word by word, or letter by letter. Read/write.
Namespace: Microsoft.Office.Interop.PowerPoint
Assembly: Microsoft.Office.Interop.PowerPoint (in Microsoft.Office.Interop.PowerPoint.dll)
Syntax
'Declaration
Property TextUnitEffect As PpTextUnitEffect
Get
Set
'Usage
Dim instance As AnimationSettings
Dim value As PpTextUnitEffect
value = instance.TextUnitEffect
instance.TextUnitEffect = value
PpTextUnitEffect TextUnitEffect { get; set; }
Property Value
Type: Microsoft.Office.Interop.PowerPoint.PpTextUnitEffect
PpTextUnitEffect
Remarks
The value of the TextUnitEffect property can be one of these PpTextUnitEffect constants.
ppAnimateByCharacter |
ppAnimateByParagraph |
ppAnimateByWord |
ppAnimateUnitMixed |
For the TextUnitEffect property setting to take effect, the TextLevelEffect property for the specified shape must have a value other than ppAnimateLevelNone or ppAnimateByAllLevels, and the AnimateAction property must be set to True.
Examples
This example adds a title slide and title text to the active presentation and sets the title to be built letter by letter.
With ActivePresentation.Slides.Add(Index:=1, _
Layout:=ppLayoutTitleOnly).Shapes(1)
.TextFrame.TextRange.Text = "Sample title"
With .AnimationSettings
.Animate = True
.TextLevelEffect = ppAnimateByFirstLevel
.TextUnitEffect= ppAnimateByCharacter
.EntryEffect = ppEffectFlyFromLeft
End With
End With