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


Glossary Item Box

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

Syntax

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

Example

This example uses the ResetHorizontalAlignment method.
C#Copy Code
FarPoint.Web.Spread.Row myrow;
FarPoint.Web.Spread.Inset inset = new FarPoint.Web.Spread.Inset(20, 50, 80, 20);
myrow = FpSpread1.ActiveSheetView.Rows[1];
myrow.CellType = new FarPoint.Web.Spread.TextCellType();
myrow.Margin = inset;
myrow.Height = 70;
myrow.Locked = true;
myrow.HorizontalAlign = HorizontalAlign.Center;
myrow.VerticalAlign = VerticalAlign.Middle;
FpSpread1.ActiveSheetView.Columns[0].Width = 140;
FpSpread1.ActiveSheetView.Cells[1, 0].Text = "Test";
//myrow.ResetCellType();
//myrow.ResetMargin();
//myrow.ResetLocked();
//myrow.ResetHorizontalAlignment();
//myrow.ResetVerticalAlignment();
VB.NETCopy Code
Dim myrow As FarPoint.Web.Spread.Row
Dim inset As New FarPoint.Web.Spread.Inset(20, 50, 80, 20)
myrow = FpSpread1.ActiveSheetView.Rows(1)
myrow.CellType = New FarPoint.Web.Spread.TextCellType()
myrow.Margin = inset
myrow.Height = 70
myrow.Locked = True
myrow.HorizontalAlign = HorizontalAlign.Center
myrow.VerticalAlign = VerticalAlign.Middle
FpSpread1.ActiveSheetView.Columns(0).Width = 140
FpSpread1.ActiveSheetView.Cells(1, 0).Text = "Test"
'myrow.ResetCellType()
'myrow.ResetMargin()
'myrow.ResetLocked()
'myrow.ResetHorizontalAlignment()
'myrow.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.