Spread Windows Forms 9.0 Product Documentation
Font Property (PreviewRowInfo)
Example 


Gets or sets the font settings for preview row.
Syntax
'Declaration
 
Public Overridable Property Font As Font
'Usage
 
Dim instance As PreviewRowInfo
Dim value As Font
 
instance.Font = value
 
value = instance.Font
public virtual Font Font {get; set;}
Example
This example sets the Font property.
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;

private void fpSpread1_PreviewRowFetch(object sender, FarPoint.Win.Spread.PreviewRowFetchEventArgs e)
{
e.PreviewRowContent = "content";
}
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

Private Sub FpSpread1_PreviewRowFetch(ByVal sender As Object, ByVal e As FarPoint.Win.Spread.PreviewRowFetchEventArgs) Handles FpSpread1.PreviewRowFetch
e.PreviewRowContent = "content"
End Sub
Requirements

Target Platforms: Windows 2000 Professional (SP4), Windows 2000 Server, Windows 2003 Server (SP1), Windows Server 2012 R2, Windows 2008, Windows XP (SP2), Windows Vista, Windows 7, Windows 8, Windows 8.1, Windows 10

See Also

Reference

PreviewRowInfo Class
PreviewRowInfo Members

 

 


Copyright © GrapeCity, inc. All rights reserved.