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


Glossary Item Box

Resets the horizontal alignment for the cell and makes the cell inherit the horizontal alignment from the default cell.

Syntax

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

Example

This example uses the ResetHorizontalAlignment method.
C#Copy Code
FarPoint.Web.Spread.Cell mycell;
mycell = FpSpread1.Cells[1, 1];
mycell.Value = 5;
object tagvalue;
tagvalue = "tag";
mycell.HorizontalAlign = HorizontalAlign.Center;
mycell.VerticalAlign = VerticalAlign.Top;
FpSpread1.ActiveSheetView.Rows[1].Height = 80;
//mycell.ResetTag();
//mycell.ResetValue();
//mycell.ResetHorizontalAlignment();
//mycell.ResetVerticalAlignment();
VB.NETCopy Code
Dim mycell As FarPoint.Web.Spread.Cell
mycell = FpSpread1.Cells(1, 1)
mycell.Value = 5
Dim tagvalue As Object
tagvalue = "tag"
mycell.HorizontalAlign = HorizontalAlign.Center
mycell.VerticalAlign = VerticalAlign.Top
FpSpread1.ActiveSheetView.Rows(1).Height = 80
'mycell.ResetTag()
'mycell.ResetValue()
'mycell.ResetHorizontalAlignment()
'mycell.ResetVerticalAlignment()

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.