FormattedText.SetNumberSubstitution Method (NumberSubstitution, Int32, Int32)


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

Sets the number substitution behavior for specified text within a FormattedText object.

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

public void SetNumberSubstitution(
	NumberSubstitution numberSubstitution,
	int startIndex,
	int count


Type: System.Windows.Media.NumberSubstitution

Number substitution behavior to apply to the text; can be null, in which case the default number substitution method for the text culture is used.

Type: System.Int32

The start index of initial character to apply the change to.

Type: System.Int32

The number of characters the change should be applied to.

The NumberSubstitution class specifies how numbers in text are to be displayed. To set the number substitution behavior for the entire text string, use the SetNumberSubstitution(NumberSubstitution) method.

.NET Framework
Available since 3.0
Return to top