→ smmoon: winform? wpf?..forecolor跟selectioncolor是property喔 06/29 14:49
各位版友好,
在輸出資料時,遇到特定字串想用其他顏色替代,
會呼叫底下函式,
public static void setRedText(this RichTextBox rtb,String text)
{
}
從網路上找的資料可透過ForeColor或SelectionColor達成目的,
但我下rtb.找尋可用函式時,找不到這兩個函式,
請問有可能是哪裡我沒注意到嗎?
--
※ 發信站: 批踢踢實業坊(ptt.cc), 來自: 114.137.42.243
※ 文章網址: https://www.ptt.cc/bbs/C_Sharp/M.1530235121.A.9A2.html