-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathMyLayoutVisitor.vb
More file actions
35 lines (27 loc) · 840 Bytes
/
MyLayoutVisitor.vb
File metadata and controls
35 lines (27 loc) · 840 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
Imports DevExpress.XtraRichEdit.API.Layout
Imports DevExpress.XtraRichEdit.API.Native
Namespace LineNumberingExample
#Region "#MyLayoutVisitor"
Public Class MyLayoutVisitor
Inherits LayoutVisitor
Private _RowIndex As Integer
Private document As Document
Public Property RowIndex As Integer
Get
Return _RowIndex
End Get
Private Set(ByVal value As Integer)
_RowIndex = value
End Set
End Property
Public Sub New(ByVal doc As Document)
document = doc
RowIndex = 0
End Sub
Protected Overrides Sub VisitRow(ByVal row As LayoutRow)
RowIndex += 1
MyBase.VisitRow(row)
End Sub
End Class
#End Region ' #MyLayoutVisitor
End Namespace