Spread Windows Forms 7.0 Product Documentation
SetColumnSizeable Method
See Also  Example Support Options
FarPoint.Win.Spread Assembly > FarPoint.Win.Spread Namespace > SheetView Class : SetColumnSizeable Method


column
Column index
sizeable
Whether to allow users to resize the column

Glossary Item Box

Sets whether the user can resize a specified column on this sheet.

Syntax

Visual Basic (Declaration) 
Public Sub SetColumnSizeable( _
   ByVal column As Integer, _
   ByVal sizeable As Boolean _
) 
Visual Basic (Usage)Copy Code
Dim instance As SheetView
Dim column As Integer
Dim sizeable As Boolean
 
instance.SetColumnSizeable(column, sizeable)
C# 
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.
C#Copy Code
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.";
Visual BasicCopy Code
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."

Requirements

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

See Also

© 2002-2014 ComponentOne, a division of GrapeCity. All Rights Reserved.