GrapeCity.Xaml.SpreadSheet.Data
GetActualRowHeight(Int32,Int32,SheetArea) Method
Example 


The row index.
The number of rows for which to return the height.
The sheet area.
Gets the height in pixels for the specified range of rows in the specified sheet area.
Syntax
'Declaration
 
Public Overloads Function GetActualRowHeight( _
   ByVal row As Integer, _
   ByVal count As Integer, _
   ByVal sheetArea As SheetArea _
) As Double
'Usage
 
Dim instance As Worksheet
Dim row As Integer
Dim count As Integer
Dim sheetArea As SheetArea
Dim value As Double
 
value = instance.GetActualRowHeight(row, count, sheetArea)
public double GetActualRowHeight( 
   int row,
   int count,
   SheetArea sheetArea
)

Parameters

row
The row index.
count
The number of rows for which to return the height.
sheetArea
The sheet area.

Return Value

Returns the height of the range of rows in pixels.
Example
This example uses the GetActualRowHeight method.
listBox1.Items.Add(gcSpreadSheet1.Sheets[0].GetActualColumnWidth(1, GrapeCity.Xaml.SpreadSheet.Data.SheetArea.ColumnHeader).ToString());
listBox1.Items.Add(gcSpreadSheet1.Sheets[0].GetActualColumnWidth(2, 2, GrapeCity.Xaml.SpreadSheet.Data.SheetArea.ColumnHeader).ToString());
listBox1.Items.Add(gcSpreadSheet1.Sheets[0].GetActualRowHeight(2, GrapeCity.Xaml.SpreadSheet.Data.SheetArea.Cells).ToString());
listBox1.Items.Add(gcSpreadSheet1.Sheets[0].GetActualRowHeight(5, 2, GrapeCity.Xaml.SpreadSheet.Data.SheetArea.Cells).ToString());
listBox1.Items.Add(gcSpreadSheet1.Sheets[0].GetActualRowVisible(11,GrapeCity.Xaml.SpreadSheet.Data.SheetArea.RowHeader).ToString());
listBox1.Items.Add(gcSpreadSheet1.Sheets(0).GetActualColumnWidth(1, GrapeCity.Xaml.SpreadSheet.Data.SheetArea.ColumnHeader).ToString())
listBox1.Items.Add(gcSpreadSheet1.Sheets(0).GetActualColumnWidth(2, 2, GrapeCity.Xaml.SpreadSheet.Data.SheetArea.ColumnHeader).ToString())
listBox1.Items.Add(gcSpreadSheet1.Sheets(0).GetActualRowHeight(2, GrapeCity.Xaml.SpreadSheet.Data.SheetArea.Cells).ToString())
listBox1.Items.Add(gcSpreadSheet1.Sheets(0).GetActualRowHeight(5, 2, GrapeCity.Xaml.SpreadSheet.Data.SheetArea.Cells).ToString())
listBox1.Items.Add(gcSpreadSheet1.Sheets(0).GetActualRowVisible(11,GrapeCity.Xaml.SpreadSheet.Data.SheetArea.RowHeader).ToString())
Requirements

Target Platforms: Windows Server 2012, Windows RT

See Also

Reference

Worksheet Class
Worksheet Members
Overload List

 

 


Copyright © GrapeCity, inc. All rights reserved.

Support Options