Spread Windows Forms 7.0 Product Documentation
GetColumnWidth(Int32) Method
See Also  Example Support Options
FarPoint.Win.Spread Assembly > FarPoint.Win.Spread Namespace > SheetView Class : GetColumnWidth(Int32) 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

Example

This example uses the GetColumnWidth method.
C#Copy Code
listBox1.Items.Add(fpSpread1.Sheets[0].GetColumnWidth(2).ToString());
Visual BasicCopy Code
ListBox1.Items.Add(FpSpread1.Sheets(0).GetColumnWidth(2).ToString())

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.