Spread for ASP.NET 7.0 Product Documentation
PreviewRowInfo Constructor
See Also  Example Support Options
FarPoint.Web.Spread Assembly > FarPoint.Web.Spread Namespace > PreviewRowInfo Class : PreviewRowInfo Constructor


Glossary Item Box

Creates a set of preview row information. Creates new preview row information.

Syntax

Visual Basic (Declaration) 
Public Function New()
Visual Basic (Usage)Copy Code
Dim instance As New PreviewRowInfo()
C# 
public PreviewRowInfo()

Example

This example creates a set of preview row information and assigns it to the preview row style of the sheet.
C#Copy Code
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;
Visual BasicCopy Code
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 Vista, Windows Server 2000, Windows 2000 Professional, Windows XP Professional, Windows NT 4.0 Workstation, SP6, Windows NT 4.0 Server, SP6

See Also

© 2002-2014 ComponentOne, a division of GrapeCity. All Rights Reserved.