Spread WPF Documentation
SetRowResizable(Int32,SheetArea,Boolean) Method
Example 


The row index.
The sheet area.
Set to true to let the users resize the specified row.
Sets whether users can resize the specified row in the specified sheet area.
Syntax
'Declaration
 
Public Overloads Sub SetRowResizable( _
   ByVal row As System.Integer, _
   ByVal sheetArea As SheetArea, _
   ByVal value As System.Boolean _
) 
'Usage
 
Dim instance As Worksheet
Dim row As System.Integer
Dim sheetArea As SheetArea
Dim value As System.Boolean
 
instance.SetRowResizable(row, sheetArea, value)
public void SetRowResizable( 
   System.int row,
   SheetArea sheetArea,
   System.bool value
)

Parameters

row
The row index.
sheetArea
The sheet area.
value
Set to true to let the users resize the specified row.
Example
This example uses the SetRowResizable method.
gcSpreadSheet1.Sheets[0].ColumnCount = 7;
gcSpreadSheet1.Sheets[0].RowCount = 10;
gcSpreadSheet1.Sheets[0].Cells[0, 0].Text = "Western";
gcSpreadSheet1.Sheets[0].Cells[0, 1].Text = "Western";
gcSpreadSheet1.Sheets[0].Cells[0, 2].Text = "Western";
gcSpreadSheet1.Sheets[0].Cells[1, 0].Text = "A";
gcSpreadSheet1.Sheets[0].Cells[1, 1].Text = "B";
gcSpreadSheet1.Sheets[0].Cells[1, 2].Text = "C";
gcSpreadSheet1.Sheets[0].SetColumnResizable(0, GrapeCity.Windows.SpreadSheet.Data.SheetArea.ColumnHeader, true);
gcSpreadSheet1.Sheets[0].SetRowResizable(0, GrapeCity.Windows.SpreadSheet.Data.SheetArea.RowHeader, true);
gcSpreadSheet1.Invalidate();           

        private void button1_Click(object sender, RoutedEventArgs e)
        {
listBox1.Items.Add(gcSpreadSheet1.Sheets[0].GetColumnResizable(0).ToString());
//ListBox1.Items.Add(gcSpreadSheet1.Sheets[0].GetColumnResizable(0, GrapeCity.Windows.SpreadSheet.Data.SheetArea.ColumnHeader).ToString());
//ListBox1.Items.Add(gcSpreadSheet1.Sheets[0].GetRowResizable(0).ToString());
listBox1.Items.Add(gcSpreadSheet1.Sheets[0].GetRowResizable(0, GrapeCity.Windows.SpreadSheet.Data.SheetArea.RowHeader).ToString());
gcSpreadSheet1.Invalidate();           
        }
GcSpreadSheet1.Sheets(0).ColumnCount = 7
GcSpreadSheet1.Sheets(0).RowCount = 10
GcSpreadSheet1.Sheets(0).Cells(0, 0).Text = "Western"
GcSpreadSheet1.Sheets(0).Cells(0, 1).Text = "Western"
GcSpreadSheet1.Sheets(0).Cells(0, 2).Text = "Western"
GcSpreadSheet1.Sheets(0).Cells(1, 0).Text = "A"
GcSpreadSheet1.Sheets(0).Cells(1, 1).Text = "B"
GcSpreadSheet1.Sheets(0).Cells(1, 2).Text = "C"
GcSpreadSheet1.Sheets(0).SetColumnResizable(0, GrapeCity.Windows.SpreadSheet.Data.SheetArea.ColumnHeader, True)
GcSpreadSheet1.Sheets(0).SetRowResizable(0, GrapeCity.Windows.SpreadSheet.Data.SheetArea.RowHeader, True)
GcSpreadSheet1.Invalidate()

    Private Sub Button1_Click(sender As System.Object, e As System.Windows.RoutedEventArgs) Handles Button1.Click
ListBox1.Items.Add(GcSpreadSheet1.Sheets(0).GetColumnResizable(0).ToString())
'ListBox1.Items.Add(GcSpreadSheet1.Sheets(0).GetColumnResizable(0, GrapeCity.Windows.SpreadSheet.Data.SheetArea.ColumnHeader).ToString())
'ListBox1.Items.Add(GcSpreadSheet1.Sheets(0).GetRowResizable(0).ToString())
ListBox1.Items.Add(GcSpreadSheet1.Sheets(0).GetRowResizable(0, GrapeCity.Windows.SpreadSheet.Data.SheetArea.RowHeader).ToString())
GcSpreadSheet1.Invalidate()
    End Sub
Requirements

Target Platforms: Windows 7, Windows 8 Desktop, Windows Vista SP1 or later, Windows Server 2000, Windows 2000 Professional (SP4), Windows XP (SP2), Windows 2008, Windows 2003 Server (SP1)

See Also

Reference

Worksheet Class
Worksheet Members
Overload List

 

 


Copyright © GrapeCity, inc. All rights reserved.