Sets whether or how cells in a column on this sheet that have the same content are joined in a single cell across multiple rows.
Syntax
Visual Basic (Usage) | Copy Code |
---|
Dim instance As SheetView
Dim column As Integer
Dim value As MergePolicy
instance.SetColumnMerge(column, value) |
Parameters
- column
- Column index
- value
- MergePolicy enumeration setting
Remarks
Example
This example sets all cells in a column that contain the same data to automatically merge.
C# | Copy Code |
---|
FpSpread1.ActiveSheetView.Cells[0, 2, 2, 2].Text = "Test";
FpSpread1.ActiveSheetView.SetColumnMerge(2, FarPoint.Web.Spread.Model.MergePolicy.Always);
|
Visual Basic | Copy Code |
---|
FpSpread1.ActiveSheetView.Cells(0, 2, 2, 2).Text = "Test"
FpSpread1.ActiveSheetView.SetColumnMerge(2, FarPoint.Web.Spread.Model.MergePolicy.Always) |
Requirements
Target Platforms: Windows 98, Windows NT 4.0, Windows Millennium Edition, Windows 2000, Windows XP Home Edition, Windows XP Professional, Windows Server 2003 family, Windows Vista, Windows Server 2008 family
See Also