FarPoint.Win.SpreadJ アセンブリ > FarPoint.Win.Spread 名前空間 > CustomFocusIndicatorRenderer クラス > CustomFocusIndicatorRenderer コンストラクタ : CustomFocusIndicatorRenderer コンストラクタ(Bitmap,Int32) |
'使用法 Dim bitmap As Bitmap Dim thickness As Integer Dim instance As New CustomFocusIndicatorRenderer(bitmap, thickness)
Bitmap bm = new Bitmap(2, 2); bm.SetPixel(0, 0, Color.Black); bm.SetPixel(0, 1, Color.Red); bm.SetPixel(1, 0, Color.Red); bm.SetPixel(1, 1, Color.Black); FarPoint.Win.Spread.CustomFocusIndicatorRenderer cfi = new FarPoint.Win.Spread.CustomFocusIndicatorRenderer(bm, 2); fpSpread1.FocusRenderer = cfi;
Dim bm As New Bitmap(2, 2) bm.SetPixel(0, 0, Color.Black) bm.SetPixel(0, 1, Color.Red) bm.SetPixel(1, 0, Color.Red) bm.SetPixel(1, 1, Color.Black) Dim cfi As New FarPoint.Win.Spread.CustomFocusIndicatorRenderer(bm, 2) FpSpread1.FocusRenderer = cfi