Spread Windows Forms 12.0 Product Documentation
ResetHorizontalAlignment Method (PreviewRowInfo)
Example 


FarPoint.Win.Spread Assembly > FarPoint.Win.Spread Namespace > PreviewRowInfo Class : ResetHorizontalAlignment Method
Resets the HorizontalAlignment property to its default value.
Syntax
'Declaration
 
Public Sub ResetHorizontalAlignment() 
'Usage
 
Dim instance As PreviewRowInfo
 
instance.ResetHorizontalAlignment()
public void ResetHorizontalAlignment()
Example
This example uses the ResetHorizontalAlignment method.
FarPoint.Win.BevelBorder bord = new FarPoint.Win.BevelBorder(FarPoint.Win.BevelBorderType.Raised, Color.Red, Color.Blue);
fpSpread1.Sheets[0].Cells[0, 1, 10, 1].Text = "Preview Row";
FarPoint.Win.Spread.PreviewRowInfo preview = new FarPoint.Win.Spread.PreviewRowInfo();
preview.BackColor = Color.BurlyWood;
preview.Visible = true;
preview.Border = bord;
preview.ForeColor = Color.Black;
preview.Font = new System.Drawing.Font("Arial", 12);
preview.Height = 30;
preview.HorizontalAlignment = FarPoint.Win.HorizontalAlignment.Left;
preview.VerticalAlignment = FarPoint.Win.VerticalAlignment.Center;
fpSpread1.Sheets[0].PreviewRowInfo = preview;
//preview.ResetBackColor();
//preview.ResetBorder();
//preview.ResetFont();
//preview.ResetForeColor();
//preview.ResetHeight();
//preview.ResetHorizontalAlignment();
//preview.ResetVerticalAlignment();
Dim bord As New FarPoint.Win.BevelBorder(FarPoint.Win.BevelBorderType.Raised, Color.Red, Color.Blue)
FpSpread1.Sheets(0).Cells(0, 1, 10, 1).Text = "Preview Row"
Dim preview As New FarPoint.Win.Spread.PreviewRowInfo()
preview.BackColor = Color.BurlyWood
preview.Visible = True
preview.Border = bord
preview.ForeColor = Color.Black
preview.Font = New System.Drawing.Font("Arial", 12)
preview.Height = 30
preview.HorizontalAlignment = FarPoint.Win.HorizontalAlignment.Left
preview.VerticalAlignment = FarPoint.Win.VerticalAlignment.Center
FpSpread1.Sheets(0).PreviewRowInfo = preview
'preview.ResetBackColor()
'preview.ResetBorder()
'preview.ResetFont()
'preview.ResetForeColor()
'preview.ResetHeight()
'preview.ResetHorizontalAlignment()
'preview.ResetVerticalAlignment()
See Also

Reference

PreviewRowInfo Class
PreviewRowInfo Members