我創建了一個Telerik Windows Form Application專案,然后我添加了一個RadGridView.

但似乎字體更改不會影響列和行等等。我應該將主題更改為ControlDefault以影響字體。


上也出現這個問題RadButtons。問題出在哪兒?
uj5u.com熱心網友回復:
請記住,對于某些控制元件(如 RadLabel),設定 Font 屬性就足夠了,而對于其他控制元件(如 RadGridView),您需要在格式化事件中引入此設定,例如RadGridView 的 CellFormatting / ViewCellFormatting事件優惠:
Font f = new Font("Arial", 10, System.Drawing.FontStyle.Regular);
private void RadGridView1_ViewCellFormatting(object sender, CellFormattingEventArgs e)
{
e.CellElement.Font = f;
}
我建議您查看以下知識庫文章:https : //docs.telerik.com/devtools/winforms/knowledge-base/change-the-font
轉載請註明出處,本文鏈接:https://www.uj5u.com/net/365594.html
