관리 누락 파일 추가
This commit is contained in:
		
							
								
								
									
										29
									
								
								SubProject/FPJ0000/FPUtil.cs
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										29
									
								
								SubProject/FPJ0000/FPUtil.cs
									
									
									
									
									
										Normal file
									
								
							| @@ -0,0 +1,29 @@ | ||||
| using System; | ||||
| using System.Collections.Generic; | ||||
| using System.Linq; | ||||
| using System.Text; | ||||
| using System.Threading.Tasks; | ||||
|  | ||||
| namespace FPJ0000 | ||||
| { | ||||
|     public static class FPUtil | ||||
|     { | ||||
|         public static void ColsizeSave(FarPoint.Win.Spread.FpSpread dv, string fn) | ||||
|         { | ||||
|             arUtil.INIHelper ini = new arUtil.INIHelper(fn); | ||||
|             foreach (FarPoint.Win.Spread.Column col in dv.ActiveSheet.Columns) | ||||
|                 ini.set_Data("colsize", "index_" + col.Index.ToString(), col.Width.ToString()); | ||||
|             ini.Flush(); | ||||
|         } | ||||
|         public static void ColSizeLoad(ref FarPoint.Win.Spread.FpSpread dv, string fn) | ||||
|         { | ||||
|             if (System.IO.File.Exists(fn) == false) return; | ||||
|             arUtil.INIHelper ini = new arUtil.INIHelper(fn); | ||||
|             foreach (FarPoint.Win.Spread.Column col in dv.ActiveSheet.Columns) | ||||
|             { | ||||
|                 var width = ini.get_Data("colsize", "index_" + col.Index.ToString(), "0"); | ||||
|                 col.Width = float.Parse(width); | ||||
|             } | ||||
|         } | ||||
|     } | ||||
| } | ||||
		Reference in New Issue
	
	Block a user
	 chikyun.kim
					chikyun.kim