This documentation is archived and is not being maintained.
TextEffect Class
Visual Studio 2008
Represents a text effect that can be applied to text objects.
Assembly: PresentationCore (in PresentationCore.dll)
XMLNS for XAML: http://schemas.microsoft.com/winfx/2006/xaml/presentation, http://schemas.microsoft.com/netfx/2007/xaml/presentation
The TextEffect object allows you to add effects, such as animations, to text objects, such as TextBlock, TextElement, and FlowDocument objects.
In the following markup example, a TextEffect is created for a TextBlock object. In this case, the effect is a rotation animation.
<TextBlock.TextEffects> <!-- The TextEffect to animate. --> <TextEffect PositionCount="1" x:Name="MyTextEffect"> <TextEffect.Transform> <RotateTransform x:Name="TextEffectRotateTransform" Angle="0" CenterX="10" CenterY="10" /> </TextEffect.Transform> </TextEffect> </TextBlock.TextEffects>
To view the complete sample, see TextEffect Sample.
Windows 7, Windows Vista, Windows XP SP2, Windows Server 2008 R2, Windows Server 2008, Windows Server 2003
The .NET Framework and .NET Compact Framework do not support all versions of every platform. For a list of the supported versions, see .NET Framework System Requirements.
Show: