Was this page helpful?
Your feedback about this content is important. Let us know what you think.
Additional feedback?
1500 characters remaining
Export (0) Print
Expand All

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
)

Parameters

transform
Type: System.Windows.Media.Transform

The Transform that is applied to the TextEffect.

foreground
Type: System.Windows.Media.Brush

The Brush to apply to the content of the TextEffect.

clip
Type: System.Windows.Media.Geometry

The clipping region of the TextEffect.

positionStart
Type: System.Int32

The starting position in the text that the TextEffect applies to.

positionCount
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
Show:
© 2015 Microsoft