我不能将我的文字的一部分“红色”。
//this.RTF = RichEditBox
this.RTF.IsColorFontEnabled = true;
this.RTF.Document.SetText(Windows.UI.Text.TextSetOptions.None, "some text");
this.RTF.Document.Selection.StartPosition = 0;
this.RTF.Document.Selection.EndPosition = 4;
//nope: this.RTF.Document.Selection.FormattedText.CharacterFormat.ForegroundColor = Colors.Red;
this.RTF.Document.Selection.CharacterFormat.ForegroundColor = Colors.Red;
this.RTF.Document.Selection.CharacterFormat.Strikethrough = Windows.UI.Text.FormatEffect.On;
this.RTF.Document.Selection.EndPosition = 0;
我尝试了背景,它有效,在样本中尝试删除线,工作......谷歌搜索没有 - 或者我错过了答案的正确问题。
如果其他人在努力解决这个问题,并且知道如何做到这一点,请帮忙!