Spread for ASP.NET 8.0 Product Documentation
ResetMargin Method (Column)
Example 


Resets the settings of the cell margins that define the space between the cell border and the cell contents, for all the cells in this column.
Syntax
'Declaration
 
Public Sub ResetMargin() 
'Usage
 
Dim instance As Column
 
instance.ResetMargin()
public void ResetMargin()
Example
This example uses the ResetMargin method.
FarPoint.Web.Spread.Column mycol;
FarPoint.Web.Spread.Inset inset = new FarPoint.Web.Spread.Inset(20, 50, 80, 20);
mycol = FpSpread1.ActiveSheetView.Columns[1];
mycol.Margin = inset;
mycol.Width = 140;
FpSpread1.ActiveSheetView.Cells[0, 1].Text = "Column";
FpSpread1.ActiveSheetView.Rows[0].Height = 70;
//mycol.ResetMargin();
Dim mycol As FarPoint.Web.Spread.Column
Dim inset As New FarPoint.Web.Spread.Inset(20, 50, 80, 20)
mycol = FpSpread1.ActiveSheetView.Columns(1)
mycol.Margin = inset
mycol.Width = 140
FpSpread1.ActiveSheetView.Cells(0, 1).Text = "Column"
FpSpread1.ActiveSheetView.Rows(0).Height = 70
'mycol.ResetMargin()
Requirements

Target Platforms: Windows 7, Windows 8, Windows Vista, Windows Server 2000, Windows 2000 Professional, Windows XP Professional, Windows NT 4.0 Workstation, SP6, Windows NT 4.0 Server, SP6

See Also

Reference

Column Class
Column Members

 

 


Copyright © GrapeCity, inc. All rights reserved.