Windows apps
Collapse the table of content
Expand the table of content
Information
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.PositionCount Property

 

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

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

public int PositionCount { get; set; }

Property Value

Type: System.Int32

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

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

Identifier field

PositionCountProperty

Metadata properties set to true

None

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 = int.MaxValue;

.NET Framework
Available since 3.0
Return to top
Show:
© 2017 Microsoft