Spread Silverlight Documentation
GetColumnWidth(Int32,SheetArea) Method
Example 


The column index.
The sheet area.
Gets the width in pixels for the specified column in the specified sheet area.
Syntax
'Declaration
 
Public Overloads Function GetColumnWidth( _
   ByVal column As System.Integer, _
   ByVal sheetArea As SheetArea _
) As System.Double
'Usage
 
Dim instance As Worksheet
Dim column As System.Integer
Dim sheetArea As SheetArea
Dim value As System.Double
 
value = instance.GetColumnWidth(column, sheetArea)
public System.double GetColumnWidth( 
   System.int column,
   SheetArea sheetArea
)

Parameters

column
The column index.
sheetArea
The sheet area.

Return Value

Returns the column width in pixels.
Example
This example uses the GetColumnWidth method.
listBox1.Items.Add(gcSpreadSheet1.Sheets[0].GetColumnVisible(4).ToString());
listBox1.Items.Add(gcSpreadSheet1.Sheets[0].GetColumnVisible(2,GrapeCity.Windows.SpreadSheet.Data.SheetArea.ColumnHeader).ToString());
listBox1.Items.Add(gcSpreadSheet1.Sheets[0].GetColumnWidth(1).ToString());
listBox1.Items.Add(gcSpreadSheet1.Sheets[0].GetColumnWidth(3, GrapeCity.Windows.SpreadSheet.Data.SheetArea.ColumnHeader).ToString());
listBox1.Items.Add(gcSpreadSheet1.Sheets(0).GetColumnVisible(4).ToString())
listBox1.Items.Add(gcSpreadSheet1.Sheets(0).GetColumnVisible(2,GrapeCity.Windows.SpreadSheet.Data.SheetArea.ColumnHeader).ToString())
listBox1.Items.Add(gcSpreadSheet1.Sheets(0).GetColumnWidth(1).ToString())
listBox1.Items.Add(gcSpreadSheet1.Sheets(0).GetColumnWidth(3, GrapeCity.Windows.SpreadSheet.Data.SheetArea.ColumnHeader).ToString())
Requirements

Target Platforms: Windows 7, Windows 8 Desktop, Windows Vista SP1 or later, Windows Server 2000, Windows 2000 Professional, Windows XP Professional, Windows NT 4.0 Workstation, SP6, Windows NT 4.0 Server, SP6

See Also

Reference

Worksheet Class
Worksheet Members
Overload List

 

 


Copyright © GrapeCity, inc. All rights reserved.