Spread Windows Forms 6.0 Product Documentation
GetMergePolicy Method
See Also  Example Support Options
FarPoint.Win.Spread Assembly > FarPoint.Win.Spread.Model Namespace > BaseSheetAxisModel Class : GetMergePolicy Method


index
Row or column index

Glossary Item Box

Gets the cell merge policy for the specified row or column.

Syntax

Visual Basic (Declaration) 
Public Overridable Function GetMergePolicy( _
   ByVal index As Integer _
) As MergePolicy
Visual Basic (Usage)Copy Code
Dim instance As BaseSheetAxisModel
Dim index As Integer
Dim value As MergePolicy
 
value = instance.GetMergePolicy(index)
C# 
public virtual MergePolicy GetMergePolicy( 
   int index
)

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 BasicCopy 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 7, Windows Vista SP1 or later, Windows XP SP3, Windows Server 2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or later), Windows Server 2003 SP2

See Also

© 2002-2012 ComponentOne, a division of GrapeCity. All Rights Reserved.