Spread日付セールのカレンダーに本日を初期値として表示する

        Application.CurrentCulture = New System.Globalization.CultureInfo("ja-JP", false)
Dim dt As FarPoint.Win.Spread.CellType.DateTimeCellType = New FarPoint.Win.Spread.CellType.DateTimeCellType()
dt.CalendarSurroundingDaysColor = System.Drawing.SystemColors.GrayText
dt.DateDefault = Date.Now
dt.DateSeparator = "/"
dt.DateTimeFormat = FarPoint.Win.Spread.CellType.DateTimeFormat.UserDefined
dt.MaximumTime = System.TimeSpan.Parse("23:59:59.9999999")
dt.TimeDefault = Date.Now
dt.UserDefinedFormat = "yyyy/MM/dd"
FpSpead1.ActiveSheet.Columns.Get(0).CellType = dt

标签: spread
posted @ 2011-12-26 14:06 sekihin 阅读(22) 评论(0) 编辑 收藏
Creative Commons License 本作品采用 知识共享署名-非商业性使用 2.5 中国大陆许可协议进行许可。