我目前使用了: Spread_RecdCertif.LegacyBehaviors = LegacyBehaviors.Style;这种方式 查看以前制做的模板,表格线和以前一样了。
富文本也能正常的保存并显示。
但是我想请问一下版主: LegacyBehaviors 的这么多种方式。分别是什么意思。有什么变化?我现在使用的LegacyBehaviors.Style这种方式,是个什么情况?
会对我以前制做的模板产生什么影响吗?
我们会制做很多模板。目前已制了几百个了。
以后全线启动的话会制做几千个模板。如果做好了之后,又要改模板的话,那用户意见就大了。
//
// 摘要:
// New behaviors will be applied automatically in new releases.
None = 0,
//
// 摘要:
// All style default settings and behaviors will be compatible with previous version.
//
// 备注:
// Turn off this option to use new style system which is compatible with Excel.
Style = 1,
//
// 摘要:
// Row height won't be auto adjusted when cell's value or properties are changed
// on UI of Spread, all auto fit row height will be treated as custom row height
AutoRowHeight = 2,
//
// 摘要:
// Fallbacks to old behaviors of calculation engine.
CalculationEngine = 4,
//
// 摘要:
// Initialized values of some properties will be different compared with previous
// versions.
//
// 备注:
// If this flag is turned off:
// FarPoint.Win.Spread.FpSpread.AllowUserFormulas is true.
// FarPoint.Win.Spread.FpSpread.AllowDragDrop is true.
// FarPoint.Win.Spread.FpSpread.AllowDragFill is true.
// FarPoint.Win.Spread.FpSpread.AllowSheetMove is true.
// FarPoint.Win.Spread.FpSpread.AllowEditOverflow is true.
// FarPoint.Win.Spread.FpSpread.BorderCollapse is FarPoint.Win.Spread.BorderCollapse.Collapse.
// FarPoint.Win.Spread.FpSpread.ResizeZeroIndicator is true.
// FarPoint.Win.Spread.FpSpread.TabStripPolicy is FarPoint.Win.Spread.TabStripPolicy.Always.
// FarPoint.Win.Spread.SheetView.SelectionPolicy is FarPoint.Win.Spread.Model.SelectionPolicy.MultiRange.
// FarPoint.Win.Spread.SheetView.AutoFilterMode is FarPoint.Win.Spread.AutoFilterMode.EnhancedContextMenu.
// Changes for keys:
// - F2 start editing with current cell value.
// - Backspace start editing with empty editor.
// - F4 takes no effect.
// - When user press an input key to start editing, the current cell value will
// be replaced by the pressed key.
// The changed properties may be added more in the future release.
PropertyDefaults = 8,
//
// 摘要:
// Initialized values of sheetview's Protect and cell's lock will be different compared
// with previous versions.
Protect = 16,
//
// 摘要:
// All behaviors are compatible with previous version.
All = 31,
//
// 摘要:
// Any attempt to set a value to a cell that contains a formula to fail and instead
// raise the FarPoint.Win.Spread.FpSpread.Error event.
KeepFormulaOnSetValue = 32,
//
// 摘要:
// The cell text will be exported if there is an explicit cell type.
//
// 备注:
// This option doesn't affects to numeric, System.DateTime and System.TimeSpan values.
PreferTextOnExport = 64
|