Was this page helpful?
Your feedback about this content is important. Let us know what you think.
Additional feedback?
1500 characters remaining
PositionCount Property

TextEffect.PositionCount Property

Gets or sets the position in the text that the TextEffect applies to.

Namespace:  System.Windows.Media
Assembly:  PresentationCore (in PresentationCore.dll)
XMLNS for XAML: http://schemas.microsoft.com/winfx/2006/xaml/presentation, http://schemas.microsoft.com/netfx/2007/xaml/presentation

'Declaration
Public Property PositionCount As Integer
<object PositionCount="int" .../>

Property Value

Type: System.Int32
The Int32 value representing the position in the text that the TextEffect applies to.

Identifier field

PositionCountProperty

Metadata properties set to true

None

Setting the PositionCount value to a number that is greater than the maximum position in the affected text is valid.

The following code example shows how you can set PositionCount value to the maximum Int32 value to ensure that all characters in the text are affected.

			' Ensure that all characters in the text are affected.
			textEffect.PositionCount = Integer.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