FormattedText.SetNumberSubstitution Method (NumberSubstitution, Int32, Int32)

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

Supported in: 4.6, 4.5, 4, 3.5, 3.0

.NET Framework Client Profile

Supported in: 4, 3.5 SP1
Was this page helpful?
(1500 characters remaining)
Thank you for your feedback
© 2015 Microsoft