Creates a set of preview row information.
Creates new preview row information.
Syntax
Visual Basic (Declaration) | |
---|
Public Function New() |
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 Basic | Copy 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