FarPoint.Win.Spread Assembly > FarPoint.Win.Spread Namespace > TipAppearance Class > TipAppearance Constructor : TipAppearance Constructor(Color,Color,Font) |
Font of text for text tips, scroll tips, and cell notes
'Declaration Public Function New( _ ByVal backColor As Color, _ ByVal foreColor As Color, _ ByVal font As Font _ )
'Usage Dim backColor As Color Dim foreColor As Color Dim font As Font Dim instance As New TipAppearance(backColor, foreColor, font)
Font of text for text tips, scroll tips, and cell notes
private void fpSpread1_TextTipFetch(object sender, FarPoint.Win.Spread.TextTipFetchEventArgs e) { FarPoint.Win.Spread.TipAppearance ta = new FarPoint.Win.Spread.TipAppearance(Color.Yellow, Color.Red, new Font("Comic Sans MS", 10)); FarPoint.Win.Spread.TipAppearance ta1 = new FarPoint.Win.Spread.TipAppearance(); ta1.CopyFrom(ta); e.View.TextTipAppearance = ta1; }
Private Sub FpSpread1_TextTipFetch(ByVal sender As Object, ByVal e As FarPoint.Win.Spread.TextTipFetchEventArgs) Handles FpSpread1.TextTipFetch Dim ta As New FarPoint.Win.Spread.TipAppearance(Color.Yellow, Color.Red, New Font("Comic Sans MS", 10)) Dim ta1 As New FarPoint.Win.Spread.TipAppearance ta1.CopyFrom(ta) e.View.TextTipAppearance = ta1 End Sub
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