| '背景图片 Dim _BackGround As String
 '风格类型
 Dim _Type As Int16
 '集合下标从1开始,用集合来存放菜单项
 Public Shared coll As New Collection()
 '定义菜单项的类型:图标型、检测型、检测背景型、普通型
 Enum EType
 IsImageBackColor = 0
 IsCheckBackColor = 1
 IsCheck = 2
 None = 3
 End Enum
 '菜单表Public Shared Index As Int16
 '所选择的菜单项指针
 Dim _SelectIndex As Int16
 '所选择的菜单项背景色
 Dim _SelectBackColor As System.Drawing.Color
 '图标背景色
 Dim _IconBackColor As System.Drawing.Color
 Public Property SelectIndex() As Int16Get
 Return _SelectIndex
 End Get
 Set(ByVal Value As Int16)
 End Set
 End Property
 Public Property SelectBorderStyle() As BorderStyleGet
 Return ViewState("_SelectBorderStyle")
 End Get
 Set(ByVal Value As BorderStyle)
 ViewState("_SelectBorderStyle") = Value
 End Set
 End Property
 Public Property SelectBackColor() As System.Drawing.ColorGet
 Return ViewState("_SelectBackColor")
 End Get
 Set(ByVal Value As System.Drawing.Color)
 ViewState("_SelectBackColor") = Value
 End Set
 End Property
 Public Property IconBackColor() As System.Drawing.Color
 Get
 Return ViewState("_IconBackColor")
 End Get
 Set(ByVal Value As System.Drawing.Color)
 ViewState("_IconBackColor") = Value
 End Set
 End Property
 '
 Public Property Type() As EType
 Get
 Return ViewState("_Type")
 End Get
 Set(ByVal Value As EType)
 ViewState("_Type") = Value
 End Set
 End Property
 Public Property BackGround() As StringGet
 Return ViewState("_BackGround")
 End Get
 Set(ByVal Value As String)
 ViewState("_BackGround") = Value
 End Set
 End Property
 |