PDA

View Full Version : تغییر سایز فونت Runtime



#Faranak
یک شنبه 26 اردیبهشت 1389, 20:01 عصر
سلام
چه جوری می شه RunTimeسایزفونت را تغییر دهیم؟من این کد رو نوشتم


Button1.Font.Bold = true;
Button1.Font.Size = XX - Large;
Button1.Text = "O";

Vahid_moghaddam
یک شنبه 26 اردیبهشت 1389, 20:07 عصر
به این شکل عمل کنید:



Button1.Style["font-size"] = "xx-large";
Button1.Style["font-weight"]="Bold";

Peyman.Gh
یک شنبه 26 اردیبهشت 1389, 23:16 عصر
Button3.Font.Name = "Arial Black";
Button3.Font.Size = 20;

Button3.Font.Size = FontUnit.Parse(FontSize.Small.ToString());

موفق باشید.