C#,Delphi,Oracle,MSSQL 개발자블로그

[Farpoint Spread]소수점 표시 해제 본문

Programming/Farpoint Spread(C#)

[Farpoint Spread]소수점 표시 해제

19760323 2017. 8. 10. 20:36
//NumberCellType..
NumberCellType num = new NumberCellType();
//소수점 위치 체크를 위한 변수
int Place = 3;
//소수점 위치
num.DecimalPlaces = Place;
//소수점 구분자
num.DecimalSeparator = ".";
//소수점을 표시여부
num.FixedPoint = true;
//천단위 구분자
num.Separator = ",";
//천단위 구분자 표시 여부
num.ShowSeparator = true;
//최대값
num.MaximumValue = 9999999999;
//최소값
num.MinimumValue = -9999999999;
//원하는 부분(row,column,cell)에 할당
fpSpread1.Sheets[0].Columns[0].CellType = num;

 

 

Spread에서 소수점 표시 제거는 FixedPoint = false 해주면 된다.

 

[출처] : http://www.hoons.net/board/cshaptip/content/46271

Comments