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


FarPoint.Web.Spread Assembly > FarPoint.Web.Spread Namespace > StyleInfo Class : ResetVerticalAlignment Method
Resets the VerticalAlign property to its default value.
Syntax
'Declaration
 
Public Sub ResetVerticalAlignment() 
'Usage
 
Dim instance As StyleInfo
 
instance.ResetVerticalAlignment()
public void ResetVerticalAlignment()
Example
This example uses the ResetVerticalAlignment 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