Edit

Share via


FormattedText.SetNumberSubstitution Method

Definition

Sets the number substitution behavior for the FormattedText object.

Overloads

SetNumberSubstitution(NumberSubstitution)

Sets the number substitution behavior for the entire set of characters in the FormattedText object.

SetNumberSubstitution(NumberSubstitution, Int32, Int32)

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

SetNumberSubstitution(NumberSubstitution)

Sets the number substitution behavior for the entire set of characters in the FormattedText object.

public:
 void SetNumberSubstitution(System::Windows::Media::NumberSubstitution ^ numberSubstitution);
public void SetNumberSubstitution (System.Windows.Media.NumberSubstitution numberSubstitution);
member this.SetNumberSubstitution : System.Windows.Media.NumberSubstitution -> unit
Public Sub SetNumberSubstitution (numberSubstitution As NumberSubstitution)

Parameters

numberSubstitution
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.

Remarks

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

Applies to

SetNumberSubstitution(NumberSubstitution, Int32, Int32)

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

public:
 void SetNumberSubstitution(System::Windows::Media::NumberSubstitution ^ numberSubstitution, int startIndex, int count);
public void SetNumberSubstitution (System.Windows.Media.NumberSubstitution numberSubstitution, int startIndex, int count);
member this.SetNumberSubstitution : System.Windows.Media.NumberSubstitution * int * int -> unit
Public Sub SetNumberSubstitution (numberSubstitution As NumberSubstitution, startIndex As Integer, count As Integer)

Parameters

numberSubstitution
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.

startIndex
Int32

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

count
Int32

The number of characters the change should be applied to.

Remarks

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.

Applies to