ClientHwndクラス Color2Intメソッド
System.Drawing.Colorで表されるRGB値を整数値で返します。
赤色は &H0000FF(255) となります。青は&HFF0000(16711680) となります。アルファ値は扱いません。
使用法
Dim instance As ClientHwnd
Dim c As System.Drawing.Color
Dim returnValue As Integer

returnValue = instance.Color2Int(c)
使用例
'ClientHwndクラス Color2Intメソッド

Imports System.Windows.Forms

Public Class AddIn

	Private chw As ClientHwnd

	Public Sub New()
		chw = New ClientHwnd()
		Dim result As Integer = chw.Color2Int(System.Drawing.Color.Red)
		MessageBox.Show(result.ToString & " = &H" & result.ToString("X6"))
	End Sub

End Class