-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathKeywords.cls
41 lines (33 loc) · 917 Bytes
/
Keywords.cls
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
VERSION 1.0 CLASS
BEGIN
MultiUse = -1 'True
END
Attribute VB_Name = "Keywords"
Attribute VB_GlobalNameSpace = False
Attribute VB_Creatable = False
Attribute VB_PredeclaredId = False
Attribute VB_Exposed = False
Option Explicit
Private mKeywords As Collection
Private mHighlighter As Highlighter
Public Property Get myHighlighter() As Highlighter
Set myHighlighter = mHighlighter
End Property
Public Sub Add(Item As Keyword)
mKeywords.Add Item
End Sub
Public Property Get Count() As Long
Count = mKeywords.Count
End Property
Public Property Get Item(index As Long) As Keyword
If mKeywords.Count < 1 Then
Set Item = Nothing
Else
Set Item = mKeywords(index)
End If
End Property
Public Sub Init(Highli As Highlighter)
End Sub
Private Sub Class_Initialize()
If mKeywords Is Nothing Then Set mKeywords = New Collection
End Sub