FontDialog fd = new FontDialog();
fd.ShowDialog();
textBox1.Font = fd.Font;
```
FontDialog fd = new FontDialog();
fd.ShowDialog();
textBox1.Font = fd.Font;
```
FontDialog
是一个类,fd
是你在实例化FontDialog
对象时指定的一个变量名,方便你在后续的代码中使用fd
来操作的实例化出来的FontDialog
实例的可访问成员。
关于《C#变量》,可参考: