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


column
Column index of first column
count
Number of columns for which to set the width
value
Width in pixels

Glossary Item Box

Sets the width in pixels for the specified columns on this sheet.

Syntax

Visual Basic (Declaration) 
Public Sub SetMultipleColumnWidths( _
   ByVal column As Integer, _
   ByVal count As Integer, _
   ByVal value As Integer _
) 
Visual Basic (Usage)Copy Code
Dim instance As SheetView
Dim column As Integer
Dim count As Integer
Dim value As Integer
 
instance.SetMultipleColumnWidths(column, count, value)
C# 
public void SetMultipleColumnWidths( 
   int column,
   int count,
   int value
)

Parameters

column
Column index of first column
count
Number of columns for which to set the width
value
Width in pixels

Example

This example sets the width in pixels for the specified columns.
C#Copy Code
fpSpread1.ActiveSheet.SetMultipleColumnWidths(0, 2, 80);
Visual BasicCopy Code
FpSpread1.ActiveSheet.SetMultipleColumnWidths(0, 2, 80)

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.