Spread for ASP.NET 10 Product Documentation
ResetCellType Method (Column)
Example 


Resets the cell type for the column and makes the column inherit the cell type from the default column.
Syntax
'Declaration
 
Public Sub ResetCellType() 
'Usage
 
Dim instance As Column
 
instance.ResetCellType()
public void ResetCellType()
Example
This example uses the ResetCellType method.
FarPoint.Web.Spread.Column mycol;
mycol = FpSpread1.ActiveSheetView.Columns[1];
mycol.CellType = new FarPoint.Web.Spread.TextCellType();
mycol.HorizontalAlign = HorizontalAlign.Right;
mycol.VerticalAlign = VerticalAlign.Bottom;
mycol.Locked = true;
mycol.Width = 140;
FpSpread1.ActiveSheetView.Cells[0, 1].Text = "Column";
//mycol.ResetCellType();
//mycol.ResetHorizontalAlignment();
//mycol.ResetVerticalAlignment();
//mycol.ResetLocked();
//mycol.ResetWidth();
Dim mycol As FarPoint.Web.Spread.Column
mycol = FpSpread1.ActiveSheetView.Columns(1)
mycol.CellType = New FarPoint.Web.Spread.TextCellType()
mycol.HorizontalAlign = HorizontalAlign.Right
mycol.VerticalAlign = VerticalAlign.Bottom
mycol.Locked = True
mycol.Width = 140
FpSpread1.ActiveSheetView.Cells(0, 1).Text = "Column"
'mycol.ResetCellType()
'mycol.ResetHorizontalAlignment()
'mycol.ResetVerticalAlignment()
'mycol.ResetLocked()
'mycol.ResetWidth()
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

Column Class
Column Members

 

 


Copyright © GrapeCity, inc. All rights reserved.