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


column
Column index

Glossary Item Box

Gets the width in pixels for the specified column on this sheet.

Syntax

Visual Basic (Declaration) 
Public Function GetColumnWidth( _
   ByVal column As Integer _
) As Integer
Visual Basic (Usage)Copy Code
Dim instance As SheetView
Dim column As Integer
Dim value As Integer
 
value = instance.GetColumnWidth(column)
C# 
public int GetColumnWidth( 
   int column
)

Parameters

column
Column index

Return Value

Integer number of pixels in the column width

Example

This example illustrates the use of this member by returning the width for the specified column.
C#Copy Code
fpSpread1.ActiveSheet.SetColumnWidth(0, 120); 
int i;
i = fpSpread1.ActiveSheet.GetColumnWidth(0);
listBox1.Items.Add(i.ToString());
Visual BasicCopy Code
FpSpread1.ActiveSheet.SetColumnWidth(0, 120)
Dim i As Integer
i = FpSpread1.ActiveSheet.GetColumnWidth(0)
ListBox1.Items.Add(i.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.