treeview字体扩大缩小
来源:互联网 发布:tf家族官方淘宝网 编辑:程序博客网 时间:2024/05/01 07:39
private void tsbZoomIn_Click(object sender, EventArgs e)
{
try
{
//字体を拡大する
this.trv.Font = new System.Drawing.Font("MS UI Gothic", ++fontSize, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(128)));
this.trv.ItemHeight = this.trv.ItemHeight + 2;
}
catch (Exception ex)
{
StackFrame fr = new StackFrame(true);
Log.WriteLine(fr.GetMethod().ReflectedType.FullName + "_" + fr.GetMethod().Name, ex.Message, LogLevel.Error);
}
}
private void tsbZoomOut_Click(object sender, EventArgs e)
{
try
{
//字体を縮小する
if (fontSize == 1.0)
{
return;
}
this.trv.Font = new System.Drawing.Font("MS UI Gothic", --fontSize, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(128)));
this.trv.ItemHeight = this.trv.ItemHeight - 2;
}
catch (Exception ex)
{
StackFrame fr = new StackFrame(true);
Log.WriteLine(fr.GetMethod().ReflectedType.FullName + "_" + fr.GetMethod().Name, ex.Message, LogLevel.Error);
}
}
private void tsbDefault_Click(object sender, EventArgs e)
{
try
{
//字体を回復する
fontSize = 9F;
this.trv.Font = new System.Drawing.Font("MS UI Gothic", fontSize, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(128)));
this.trv.ItemHeight = 20;
}
catch (Exception ex)
{
StackFrame fr = new StackFrame(true);
Log.WriteLine(fr.GetMethod().ReflectedType.FullName + "_" + fr.GetMethod().Name, ex.Message, LogLevel.Error);
}
}
- treeview字体扩大缩小
- StretchBlt缩小扩大失真
- titlewindow扩大,缩小
- MFC椭圆扩大与缩小
- vc static扩大,缩小效果
- layoutstretch 控件按比例扩大缩小
- 字体扩大手机旋转
- LVM的扩大与缩小 (转)
- 滑轮滑动 图片跟随扩大或缩小
- OpenCV3_C++_Resize()图像扩大缩小 实例
- 字体放大缩小
- TreeView更改字体
- word整体放大、缩小字体
- 水晶报表字体自动缩小
- jquery 控制字体放大缩小
- 缩小客户区(扩大非客户区)的方法
- 图片不变形,按照等比例缩小或扩大显示
- 通过操作swap文件来扩大或缩小swap空间
- 程序调试
- Java输入输出Excel文档(POI API)
- 市场波动
- Html_Js_Function Load Form_Function & Form_Function Load Html_Js_Function
- CryptoAPI
- treeview字体扩大缩小
- Linux磁盘管理命令
- treeview添加节点
- curl 获取 https(ssl) 页面,苦恼啊。。。
- XML 文件的操作
- Windows下的mmap——Windows环境下模拟嵌入式Flash一法
- Android: 用Instrumentation类发送鼠标或按键事件
- VideoMemory, SystemMemory And AGPMemory
- 0 1PropertyGrid显示