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


The .NET API Reference documentation has a new home. Visit the .NET API Browser on docs.microsoft.com to see the new experience.

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
Available since 3.0
Return to top