This documentation is archived and is not being maintained.

TextEffect Constructor (Transform, Brush, Geometry, Int32, Int32)

Initializes a new instance of the TextEffect class by specifying class property values.

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

public TextEffect(
	Transform transform,
	Brush foreground,
	Geometry clip,
	int positionStart,
	int positionCount


Type: System.Windows.Media.Transform
The Transform that is applied to the TextEffect.
Type: System.Windows.Media.Brush
The Brush to apply to the content of the TextEffect.
Type: System.Windows.Media.Geometry
The clipping region of the TextEffect.
Type: System.Int32
The starting position in the text that the TextEffect applies to.
Type: System.Int32
The number of positions in the text that the TextEffect applies to.

The following code example shows how to call the TextEffect constructor. Notice that in this case, the transform and clip parameters are set to null, since those parameters values are not needed.

// Create a new TextEffect object, setting only the foreground brush, position start, and position count.
TextEffect textEffect = new TextEffect(null, solidColorBrush, null, 0, int.MaxValue);

.NET Framework

Supported in: 4, 3.5, 3.0

.NET Framework Client Profile

Supported in: 4, 3.5 SP1

Windows 7, Windows Vista SP1 or later, Windows XP SP3, Windows Server 2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or later), Windows Server 2003 SP2

The .NET Framework does not support all versions of every platform. For a list of the supported versions, see .NET Framework System Requirements.