Gets 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
value = instance.GetColumnMerge(column) |
Parameters
- column
- Column index
Return Value
MergePolicy setting that specifies if and how cells in this column are automatically merged
Remarks
Example
This example returns the merge policy for the model.
C# | Copy Code |
---|
FpSpread1.ActiveSheetView.Cells[0, 2, 2, 2].Text = "Test";
FpSpread1.ActiveSheetView.SetColumnMerge(2, FarPoint.Web.Spread.Model.MergePolicy.Always);
FarPoint.Web.Spread.Model.MergePolicy mp;
mp = FpSpread1.ActiveSheetView.GetColumnMerge(2);
Response.Write(mp.ToString());
|
Visual Basic | Copy Code |
---|
FpSpread1.ActiveSheetView.Cells(0, 2, 2, 2).Text = "Test"
FpSpread1.ActiveSheetView.SetColumnMerge(2, FarPoint.Web.Spread.Model.MergePolicy.Always)
Dim mp As FarPoint.Web.Spread.Model.MergePolicy
mp = FpSpread1.ActiveSheetView.GetColumnMerge(2)
Response.Write(mp.ToString()) |
Requirements
Target Platforms: Windows 7, Windows 8, Windows Vista, Windows Server 2000, Windows 2000 Professional, Windows XP Professional, Windows NT 4.0 Workstation, SP6, Windows NT 4.0 Server, SP6
See Also