Spread Windows Forms 10.0 Product Documentation
SetMultipleColumnWidths Method
Example 


Column index of first column
Number of columns for which to set the width
Width in pixels
Sets the width in pixels for the specified columns on this sheet.
Syntax
'Declaration
 
Public Sub SetMultipleColumnWidths( _
   ByVal column As Integer, _
   ByVal count As Integer, _
   ByVal value As Integer _
) 
'Usage
 
Dim instance As SheetView
Dim column As Integer
Dim count As Integer
Dim value As Integer
 
instance.SetMultipleColumnWidths(column, count, value)
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.
fpSpread1.ActiveSheet.SetMultipleColumnWidths(0, 2, 80);
FpSpread1.ActiveSheet.SetMultipleColumnWidths(0, 2, 80)
Requirements

Target Platforms: Windows 2000 Professional (SP4), Windows 2000 Server, Windows 2003 Server (SP1), Windows Server 2012 R2, Windows 2008, Windows XP (SP2), Windows Vista, Windows 7, Windows 8, Windows 8.1, Windows 10

See Also

Reference

SheetView Class
SheetView Members
SetColumnWidth Method

User-Task Documentation

Setting the Row Height or Column Width

 

 


Copyright © GrapeCity, inc. All rights reserved.