Spread Windows Forms 11.0 Product Documentation
SetColumnSizeable Method
Example 


FarPoint.Win.Spread Assembly > FarPoint.Win.Spread Namespace > SheetView Class : SetColumnSizeable Method
Column index
Whether to allow users to resize the column
Sets whether the user can resize a specified column on this sheet.
Syntax
'Declaration
 
Public Sub SetColumnSizeable( _
   ByVal column As Integer, _
   ByVal sizeable As Boolean _
) 
'Usage
 
Dim instance As SheetView
Dim column As Integer
Dim sizeable As Boolean
 
instance.SetColumnSizeable(column, sizeable)
public void SetColumnSizeable( 
   int column,
   bool sizeable
)

Parameters

column
Column index
sizeable
Whether to allow users to resize the column
Example
This example illustrates the use of this member by returning whether the specified column can be resized.
bool b;
fpSpread1.ActiveSheet.SetColumnSizeable(0, false);
b = fpSpread1.ActiveSheet.GetColumnSizeable(0);
label1.Text = "GetColumnSizeable for Column 0 = " + b.ToString + " - Try to resize the first column.";
Dim b As Boolean
FpSpread1.ActiveSheet.SetColumnSizeable(0, False)
b = FpSpread1.ActiveSheet.GetColumnSizeable(0)
Label1.Text = "GetColumnSizeable for Column 0 = " & b.ToString & " - Try to resize the first column."
See Also

Reference

SheetView Class
SheetView Members

User-Task Documentation

Allowing the User to Resize Rows or Columns