Windows Dev Center

The topic you requested is included in another documentation set. For convenience, it's displayed below. Choose Switch to see the topic in its original location.

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.6, 4.5, 4, 3.5, 3.0

.NET Framework Client Profile

Supported in: 4, 3.5 SP1
© 2015 Microsoft