PowerTools SPREAD for Windows Forms 8.0J
TipAppearance コンストラクタ(Color,Color,Font)


テキストヒントおよびセルのメモ(スクロールヒントは除く)の背景色
テキストヒント、スクロールヒント、およびセルのメモの前景(テキスト)色

テキストヒント、スクロールヒント、およびセルのメモのテキストのフォント

インタフェース内のさまざまなポップアップヒントの外観設定のセットを 指定された値を使用して作成します。
構文
'Declaration
 
Public Function New( _
   ByVal backColor As Color, _
   ByVal foreColor As Color, _
   ByVal font As Font _
)
'使用法
 
Dim backColor As Color
Dim foreColor As Color
Dim font As Font
 
Dim instance As New TipAppearance(backColor, foreColor, font)
public TipAppearance( 
   Color backColor,
   Color foreColor,
   Font font
)

パラメータ

backColor
テキストヒントおよびセルのメモ(スクロールヒントは除く)の背景色
foreColor
テキストヒント、スクロールヒント、およびセルのメモの前景(テキスト)色
font

テキストヒント、スクロールヒント、およびセルのメモのテキストのフォント

解説
色とフォントを指定して、TipAppearanceクラスのインスタンスを初期化します。
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
参照

TipAppearance クラス
TipAppearance メンバ
オーバーロード一覧

 

 


© 2004-2015, GrapeCity inc. All rights reserved.