This repository has been archived by the owner on Sep 11, 2023. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 0
/
CustomViewInfo.vb
73 lines (59 loc) · 1.77 KB
/
CustomViewInfo.vb
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
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
Imports System
Imports System.Collections.Generic
Imports System.Linq
Imports DevExpress.XtraGrid.Views.Base.ViewInfo
Imports DevExpress.XtraGrid.Views.Base
Namespace CustomGrid
Public Class CustomViewInfo
Inherits BaseViewInfo
Public Sub New(ByVal view As CustomView)
MyBase.New(view)
IsReady = True
End Sub
Public Overrides ReadOnly Property View() As BaseView
Get
Return MyBase.View
End Get
End Property
Protected Overrides Sub AddAnimatedItems()
Throw New NotImplementedException()
End Sub
Public Overrides ReadOnly Property Bounds() As System.Drawing.Rectangle
Get
Return View.ViewRect
End Get
End Property
Public Overrides ReadOnly Property ClientBounds() As System.Drawing.Rectangle
Get
Throw New NotImplementedException()
End Get
End Property
Protected Overrides Function CreatePaintAppearances() As DevExpress.Utils.BaseAppearanceCollection
Return New DevExpress.Utils.BaseAppearanceCollection()
End Function
Protected Overrides Function CreateSelectionInfo() As BaseSelectionInfo
Return New CustomSelectionInfo(TryCast(View, CustomView))
End Function
Protected Overrides Function HasItem(ByVal id As CellId) As DevExpress.XtraEditors.ViewInfo.BaseEditViewInfo
Throw New NotImplementedException()
End Function
Friend Sub UpdateTabControlInternal()
UpdateTabControl()
End Sub
Protected Overrides Sub UpdateTabControl()
MyBase.UpdateTabControl()
TabControl.Bounds = CalcBorderRect(Bounds)
End Sub
End Class
Friend Class NullTreeListViewInfo
Inherits CustomViewInfo
Public Sub New(ByVal treeListView As CustomView)
MyBase.New(treeListView)
End Sub
Public Overrides ReadOnly Property IsNull() As Boolean
Get
Return True
End Get
End Property
End Class
End Namespace