Spread for ASP.NET 10 Product Documentation
ResetHorizontalAlignment Method (StyleInfo)
Example 


Resets the HorizontalAlign property to its default value.
Syntax
'Declaration
 
Public Sub ResetHorizontalAlignment() 
'Usage
 
Dim instance As StyleInfo
 
instance.ResetHorizontalAlignment()
public void ResetHorizontalAlignment()
Example
This example uses the ResetHorizontalAlignment method.
FarPoint.Web.Spread.StyleInfo Style = new FarPoint.Web.Spread.StyleInfo();
Style.VerticalAlign = VerticalAlign.Bottom;
Style.HorizontalAlign = HorizontalAlign.Right;
//Style.ResetHorizontalAlignment();
//Style.ResetVerticalAlignment();
FpSpread1.ActiveSheetView.SetStyleInfo(1, 1, Style);
FpSpread1.ActiveSheetView.Cells[1, 1].Text = "Style";
Dim Style As New FarPoint.Web.Spread.StyleInfo()
Style.VerticalAlign = VerticalAlign.Bottom
Style.HorizontalAlign = HorizontalAlign.Right
'Style.ResetHorizontalAlignment()
'Style.ResetVerticalAlignment()
FpSpread1.ActiveSheetView.SetStyleInfo(1, 1, Style)
FpSpread1.ActiveSheetView.Cells(1, 1).Text = "Style"
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

StyleInfo Class
StyleInfo Members

 

 


Copyright © GrapeCity, inc. All rights reserved.