GrapeCity.Xaml.SpreadSheet.Data
GetColumnWidth(Int32) Method
Example 


GrapeCity.Xaml.SpreadSheet.Data Namespace > Worksheet Class > GetColumnWidth Method : GetColumnWidth(Int32) Method
The column index.
Gets the width in pixels for the specified column in the specified sheet area.
Syntax
'Declaration
 
Public Overloads Function GetColumnWidth( _
   ByVal column As Integer _
) As Double
'Usage
 
Dim instance As Worksheet
Dim column As Integer
Dim value As Double
 
value = instance.GetColumnWidth(column)
public double GetColumnWidth( 
   int column
)

Parameters

column
The column index.

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.Xaml.SpreadSheet.Data.SheetArea.ColumnHeader).ToString());
listBox1.Items.Add(gcSpreadSheet1.Sheets[0].GetColumnWidth(1).ToString());
listBox1.Items.Add(gcSpreadSheet1.Sheets[0].GetColumnWidth(3, GrapeCity.Xaml.SpreadSheet.Data.SheetArea.ColumnHeader).ToString());
listBox1.Items.Add(gcSpreadSheet1.Sheets(0).GetColumnVisible(4).ToString())
listBox1.Items.Add(gcSpreadSheet1.Sheets(0).GetColumnVisible(2,GrapeCity.Xaml.SpreadSheet.Data.SheetArea.ColumnHeader).ToString())
listBox1.Items.Add(gcSpreadSheet1.Sheets(0).GetColumnWidth(1).ToString())
listBox1.Items.Add(gcSpreadSheet1.Sheets(0).GetColumnWidth(3, GrapeCity.Xaml.SpreadSheet.Data.SheetArea.ColumnHeader).ToString())
See Also

Reference

Worksheet Class
Worksheet Members
Overload List