FormattedText.SetNumberSubstitution Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
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
.NET
피드백
https://aka.ms/ContentUserFeedback
출시 예정: 2024년 내내 콘텐츠에 대한 피드백 메커니즘으로 GitHub 문제를 단계적으로 폐지하고 이를 새로운 피드백 시스템으로 바꿀 예정입니다. 자세한 내용은 다음을 참조하세요.다음에 대한 사용자 의견 제출 및 보기