TextEffect::Transform Property

 

Gets or sets the Transform that is applied to the TextEffect.

Namespace:   System.Windows.Media
Assembly:  PresentationCore (in PresentationCore.dll)

public:
property Transform^ Transform {
	Transform^ get();
	void set(Transform^ value);
}

Property Value

Type: System.Windows.Media::Transform^

The Transform value of the TextEffect.

Identifier field

TransformProperty

Metadata properties set to true

None

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 .

.NET Framework
Available since 3.0
Return to top
Show: