-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathCodeSections.cls
More file actions
37 lines (30 loc) · 844 Bytes
/
Copy pathCodeSections.cls
File metadata and controls
37 lines (30 loc) · 844 Bytes
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
VERSION 1.0 CLASS
BEGIN
MultiUse = -1 'True
END
Attribute VB_Name = "CodeSections"
Attribute VB_GlobalNameSpace = False
Attribute VB_Creatable = False
Attribute VB_PredeclaredId = False
Attribute VB_Exposed = False
Option Explicit
Dim mCollection As Collection
Dim mHighlighter As Highlighter
Public Property Get myHighlighter() As Highlighter
Set myHighlighter = mHighlighter
End Property
Public Sub Add(Item As CodeSection)
mCollection.Add Item
End Sub
Public Property Get Count() As Long
Count = mCollection.Count
End Property
Public Property Get Item(index As Long) As CodeSection
Set Item = mCollection(index)
End Property
Public Sub Init(Highli As Highlighter)
Set mHighlighter = Highli
End Sub
Private Sub Class_Initialize()
Set mCollection = New Collection
End Sub