Gets the cell merge policy for the specified row or column.
Syntax
Parameters
- index
- Row or column index
Return Value
MergePolicy setting that determines how the automatic merging is done
Example
This example gets the policy for whether to automatically merge adjacent identical cells in the specified column.
C# | Copy Code |
---|
FarPoint.Win.Spread.Model.BaseSheetAxisModel baseModel;
baseModel = (FarPoint.Win.Spread.Model.BaseSheetAxisModel)fpSpread1.ActiveSheet.Models.ColumnAxis;
baseModel.SetMergePolicy(1, FarPoint.Win.Spread.Model.MergePolicy.Always);
listBox1.Items.Add(baseModel.GetMergePolicy(1).ToString()); |
Visual Basic | Copy Code |
---|
Dim baseModel As FarPoint.Win.Spread.Model.BaseSheetAxisModel
baseModel = FpSpread1.ActiveSheet.Models.ColumnAxis
baseModel.SetMergePolicy(1, FarPoint.Win.Spread.Model.MergePolicy.Always)
ListBox1.Items.Add(baseModel.GetMergePolicy(1).ToString) |
Requirements
Target Platforms: Windows 2000 Professional (SP4), Windows 2000 Server, Windows 2003 Server (SP1), Windows 2008, Windows XP (SP2), Windows Vista, Windows 7, Windows 8
See Also