Spread for ASP.NET 7.0 Product Documentation
ResetMargin Method
See Also  Example Support Options
FarPoint.Web.Spread Assembly > FarPoint.Web.Spread Namespace > Cell Class : ResetMargin Method


Glossary Item Box

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

Visual Basic (Declaration) 
Public Sub ResetMargin() 
Visual Basic (Usage)Copy Code
Dim instance As Cell
 
instance.ResetMargin()
C# 
public void ResetMargin()

Example

This example uses the ResetMargin method.
C#Copy Code
FarPoint.Web.Spread.Cell mycell;
FarPoint.Web.Spread.Inset margin = new FarPoint.Web.Spread.Inset(20, 40, 50, 20);
mycell = FpSpread1.Cells[0, 0];
mycell.Text = "Note Test";
mycell.Locked = true;
mycell.Margin = margin;
mycell.Note = "This is the Note";
FpSpread1.ActiveSheetView.Rows[0].Height = 80;
//mycell.ResetMargin();
//mycell.ResetLocked();
//mycell.ResetNote();
VB.NETCopy Code
Dim mycell As FarPoint.Web.Spread.Cell
Dim margin As New FarPoint.Web.Spread.Inset(20,40,50,20)
mycell=FpSpread1.Cells(0,0)
mycell.Text="Note Test"
mycell.Locked=True
mycell.Margin=margin
mycell.Note="This is the Note"
FpSpread1.ActiveSheetView.Rows(0).Height=80
'mycell.ResetMargin()
'mycell.ResetLocked()
'mycell.ResetNote()

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

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