Spread ASP.NET 6.0 Product Documentation
SetColumnSizeable Method
See Also  Example Send Feedback
FarPoint.Web.Spread Assembly > FarPoint.Web.Spread Namespace > SheetView Class : SetColumnSizeable Method


column
Column index
sizeable
Whether to allow users to resize columns

Glossary Item Box

Sets whether users can resize individual columns.

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 columns

Remarks

Set the sizeable parameter to true if you want to let the user resize the specified column.

To see whether users can resize a column, use the GetColumnSizeable method.

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

Example

This example illustrates the use of this member by returning whether the specified column can be resized.
C#Copy Code
FarPoint.Web.Spread.SheetView sv;
bool b;
sv = FpSpread1.ActiveSheetView;
sv.SetColumnLabel(0, 1, "Finance");
sv.SetColumnSizeable(1, false);
Visual BasicCopy Code
Dim sv As FarPoint.Web.Spread.SheetView
Dim b As Boolean
sv = FpSpread1.ActiveSheetView
sv.SetColumnSizeable(1, False)

Requirements

Target Platforms: Windows 98, Windows NT 4.0, Windows Millennium Edition, Windows 2000, Windows XP Home Edition, Windows XP Professional, Windows Server 2003 family, Windows Vista, Windows Server 2008 family

See Also

© 2002-2012 GrapeCity, Inc. All Rights Reserved.