Spread Windows Forms 7.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 2000 Professional (SP4), Windows 2000 Server, Windows 2003 Server (SP1), Windows 2008, Windows XP (SP2), Windows Vista, Windows 7, Windows 8

See Also

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