Spread for ASP.NET 9.0 Product Documentation
PreviewRowInfo Constructor
Example 


Creates a set of preview row information.
Creates new preview row information.
Syntax
'Declaration
 
Public Function New()
'Usage
 
Dim instance As New PreviewRowInfo()
public PreviewRowInfo()
Example
This example creates a set of preview row information and assigns it to the preview row style of the sheet.
FarPoint.Web.Spread.PreviewRowInfo pri = new FarPoint.Web.Spread.PreviewRowInfo();
pri.BackColor = Drawing.Color.WhiteSmoke;
pri.Border = new FarPoint.Web.Spread.Border(BorderStyle.Double, Drawing.Color.Blue);
pri.CssClass = null;
pri.Font.Bold = true;
pri.ForeColor = Drawing.Color.Red;
pri.HorizontalAlign = HorizontalAlign.Center;
pri.Margin = new FarPoint.Web.Spread.Inset(2, 2, 2, 2);
pri.TabStop = false;
pri.VerticalAlign = VerticalAlign.Middle;
FpSpread1.ActiveSheetView.PreviewRowStyle = pri;
Dim pri As New FarPoint.Web.Spread.PreviewRowInfo
pri.BackColor = Drawing.Color.WhiteSmoke
pri.Border = New FarPoint.Web.Spread.Border(BorderStyle.Double, Drawing.Color.Blue)
pri.CssClass = Nothing
pri.Font.Bold = True
pri.ForeColor = Drawing.Color.Red
pri.HorizontalAlign = HorizontalAlign.Center
pri.Margin = New FarPoint.Web.Spread.Inset(2, 2, 2, 2)
pri.TabStop = False
pri.VerticalAlign = VerticalAlign.Middle
FpSpread1.ActiveSheetView.PreviewRowStyle = pri
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

PreviewRowInfo Class
PreviewRowInfo Members

 

 


Copyright © GrapeCity, inc. All rights reserved.