资源简介
DataGridView财务金额格式显示
代码片段和文件信息
using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Text;
using System.Windows.Forms;
using System.Diagnostics;
namespace WindowsApplication37
{
public class FinanceTextBoxCell : DataGridViewTextBoxCell
{
///
/// 线间隔大小
///
private int m_iLineSpace ;
///
/// 线粗
///
private float m_fBold ;
///
/// 红线颜色,特殊占位颜色,普通线颜色
///
private Color m_redColor;
private Color m_specialColor;
private Color m_normalColor;
public FinanceTextBoxCell()
{
m_iLineSpace = 12;
m_fBold = 1.0f;
m_redColor = Color.Red;
m_specialColor = Color.Blue;
m_normalColor = Color.Gray;
}
///
/// 线间距
///
public int LineSpace
{
set
{
m_iLineSpace = value;
}
get
{
FinanceTextBoxColumn financeTextBoxColumn= OwningColumn as FinanceTextBoxColumn;
if (financeTextBoxColumn != null)
{
if (financeTextBoxColumn.LineSpace != 0)
{
return financeTextBoxColumn.LineSpace;
}
}
return m_iLineSpace;
}
}
public float LineBold
{
get
{
FinanceTextBoxColumn financeTextBoxColumn = OwningColumn as FinanceTextBoxColumn;
if (financeTextBoxColumn != null)
{
if (financeTextBoxColumn.LineBold != 0.0f)
{
return financeTextBoxColumn.LineBold;
}
}
return m_fBold;
}
set
{
m_fBold = value;
}
}
public Color RedColor
{
get
{
FinanceTextBoxColumn financeTextBoxColumn = OwningColumn as FinanceTextBoxColumn;
if (financeTextBoxColumn != null)
{
if (financeTextBoxColumn.RedColor != Color.Empty)
{
return financeTextBoxColumn.RedColor;
}
}
return m_redColor;
}
set
{
m_redColor = value;
}
}
public Color SpecialColor
{
get
{
FinanceTextBoxColumn financeTextBoxColumn = OwningColumn as FinanceTextBoxColumn;
if (financeTextBoxColumn != null)
属性 大小 日期 时间 名称
----------- --------- ---------- ----- ----
文件 5612 2006-01-11 19:21 WindowsApplication37\WindowsApplication37\Properties\Resources.resx
文件 249 2006-01-11 19:21 WindowsApplication37\WindowsApplication37\Properties\Settings.settings
文件 1288 2006-01-11 19:21 WindowsApplication37\WindowsApplication37\Properties\AssemblyInfo.cs
文件 2867 2006-01-11 19:21 WindowsApplication37\WindowsApplication37\Properties\Resources.Designer.cs
文件 1103 2006-01-11 19:21 WindowsApplication37\WindowsApplication37\Properties\Settings.Designer.cs
目录 0 2006-01-11 19:21 WindowsApplication37\WindowsApplication37\Properties
文件 11081 2006-01-12 12:57 WindowsApplication37\WindowsApplication37\FinanceTextBoxCell.cs
文件 694 2006-01-12 12:49 WindowsApplication37\WindowsApplication37\Form1.cs
文件 3375 2006-01-11 20:33 WindowsApplication37\WindowsApplication37\WindowsApplication37.csproj
文件 5632 2005-08-31 04:07 WindowsApplication37\WindowsApplication37\bin\Debug\WindowsApplication37.vshost.exe
文件 28672 2006-01-12 12:57 WindowsApplication37\WindowsApplication37\bin\Debug\WindowsApplication37.exe
文件 46592 2006-01-12 12:57 WindowsApplication37\WindowsApplication37\bin\Debug\WindowsApplication37.pdb
目录 0 2006-01-11 19:21 WindowsApplication37\WindowsApplication37\bin\Debug
目录 0 2006-01-11 19:21 WindowsApplication37\WindowsApplication37\bin
目录 0 2006-01-11 19:21 WindowsApplication37\WindowsApplication37\obj\Debug\TempPE
文件 180 2006-01-12 12:49 WindowsApplication37\WindowsApplication37\obj\Debug\WindowsApplication37.Form1.resources
文件 180 2006-01-11 19:24 WindowsApplication37\WindowsApplication37\obj\Debug\WindowsApplication37.Properties.Resources.resources
文件 46592 2006-01-12 12:57 WindowsApplication37\WindowsApplication37\obj\Debug\WindowsApplication37.pdb
文件 842 2006-01-12 12:49 WindowsApplication37\WindowsApplication37\obj\Debug\WindowsApplication37.csproj.GenerateResource.Cache
文件 28672 2006-01-12 12:57 WindowsApplication37\WindowsApplication37\obj\Debug\WindowsApplication37.exe
目录 0 2006-01-11 19:27 WindowsApplication37\WindowsApplication37\obj\Debug\Refactor
目录 0 2006-01-11 19:21 WindowsApplication37\WindowsApplication37\obj\Debug
文件 359 2006-01-12 12:57 WindowsApplication37\WindowsApplication37\obj\WindowsApplication37.csproj.FileList.txt
目录 0 2006-01-11 19:21 WindowsApplication37\WindowsApplication37\obj
文件 7499 2006-01-12 12:30 WindowsApplication37\WindowsApplication37\FinanceTextBoxColumn.cs
文件 4601 2006-01-12 12:46 WindowsApplication37\WindowsApplication37\Form1.Designer.cs
文件 6366 2006-01-12 12:46 WindowsApplication37\WindowsApplication37\Form1.resx
文件 487 2006-01-11 19:21 WindowsApplication37\WindowsApplication37\Program.cs
目录 0 2006-01-11 19:21 WindowsApplication37\WindowsApplication37
文件 949 2006-01-11 19:21 WindowsApplication37\WindowsApplication37.sln
............此处省略5个文件信息
- 上一篇:6相12拍步进电机控制器
- 下一篇:软件技术文档模版
相关资源
- 6相12拍步进电机控制器
- 仿126 网易 163 邮箱 界面
- 61850客户端服务端测试程序
- AJAX下载
- MAX5417底层代码和资料
- 图片上传组件v1.0
- oracle ebs 11i总帐、应收、应付、库存、
- 教育系统网站源代码(真正可用的源
- 160个crackme程序
- Yy-z02计算机组成原理实验仪软件 V1.
- 广告交换 1.0 Beta
- 解封SHOW 51VV 9158 封机器码类游戏机
- Qt 读取16进制的data文件
- 耀华XK3190-A9地磅串口代码
- winsock win10 注册表备份文件
- Origin2019最新中文版用户入门使用手册
- 在LHC s = 13 TeV时许多射流产生弱的矢量
- 沿海重污秽地区10kV架空电力线路设计
- SVNDrv.sys
- 图文手把手教你一步步用VC 2010编写通
- 图文手把手教你一步步用VC 2010编写通
- hxdef100源码、远控、后门
- masm 6.14安装版
- CentOS-6.7-x86_64-bin-DVD1to2
- GB2312 8*8点阵字库
- caxa实体设计2019破解补丁
-
解决安装vs2012后vs2010 li
nk : fatal er - Zr55Al10Ni5Cu30非晶基复合材料在塑性变
- 非晶基材表面激光立体成形Zr55Cu30Al
- 反复重熔母合金铸锭对Zr55Al10Ni5Cu30块
评论
共有 条评论