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


FarPoint.Web.Spread Assembly > FarPoint.Web.Spread Namespace > StyleInfo Class : ResetHorizontalAlignment Method
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"
See Also

Reference

StyleInfo Class
StyleInfo Members