Spread for ASP.NET 9.0 Product Documentation
GetColumnSizeable Method
Example 


Column index
Gets whether the user can resize a specified column.
Syntax
'Declaration
 
Public Function GetColumnSizeable( _
   ByVal column As Integer _
) As Boolean
'Usage
 
Dim instance As SheetView
Dim column As Integer
Dim value As Boolean
 
value = instance.GetColumnSizeable(column)
public bool GetColumnSizeable( 
   int column
)

Parameters

column
Column index

Return Value

true if users can resize the column; otherwise false
Remarks

This method returns true if the user can resize the specified column.

To specify whether users can resize a column, use the SetColumnSizeable method.

To specify whether users can resize a specified row, use the SetRowSizeable method.

Example
This example creates a SheetView object and a Column object. The second column cannot be resized and this value is returned to a list box using the SheetView object.
FarPoint.Web.Spread.Column mycol;
FarPoint.Web.Spread.SheetView sv;
sv=FpSpread1.ActiveSheetView;
mycol=sv.Columns[1];
mycol.Resizable=false;
ListBox1.Items.Add(Convert.ToString(sv.GetColumnSizeable(1)));
Dim mycol As FarPoint.Web.Spread.Column
Dim sv As FarPoint.Web.Spread.SheetView
sv=FpSpread1.ActiveSheetView
mycol=sv.Columns(1)
mycol.Resizable=False
ListBox1.Items.Add(sv.GetColumnSizeable(1))
Requirements

Target Platforms: Windows 7, Windows 8, Windows 10, Windows Vista, Windows Server 2003, Windows Server 2008, Windows Server 2012, Windows XP Professional

See Also

Reference

SheetView Class
SheetView Members
GetRowSizeable Method
SetColumnSizeable Method

User-Task Documentation

Allowing the User to Resize Rows and Columns

 

 


Copyright © GrapeCity, inc. All rights reserved.