FormattedText.SetNumberSubstitution FormattedText.SetNumberSubstitution FormattedText.SetNumberSubstitution Method

Definition

Sets the number substitution behavior for the FormattedText object.

Overloads

SetNumberSubstitution(NumberSubstitution) SetNumberSubstitution(NumberSubstitution) SetNumberSubstitution(NumberSubstitution)

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

SetNumberSubstitution(NumberSubstitution, Int32, Int32) SetNumberSubstitution(NumberSubstitution, Int32, Int32) SetNumberSubstitution(NumberSubstitution, Int32, Int32)

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

SetNumberSubstitution(NumberSubstitution) SetNumberSubstitution(NumberSubstitution) 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

Parameters

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

SetNumberSubstitution(NumberSubstitution, Int32, Int32) SetNumberSubstitution(NumberSubstitution, Int32, Int32) 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

Parameters

numberSubstitution
NumberSubstitution 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 Int32 Int32

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

count
Int32 Int32 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