-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathMyControl.vb
39 lines (30 loc) · 1.05 KB
/
MyControl.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
Imports DevExpress.Utils.Serializing
Imports DevExpress.XtraPrinting
Imports DevExpress.XtraReports.Localization
Imports DevExpress.XtraReports
Imports DevExpress.XtraReports.UI
Imports System.ComponentModel
Imports System.Drawing
Public Enum MyEnum
One
Two
Three
End Enum
Public Class MyControl
Inherits XRLabel
Public Shared ReadOnly InitSizeF As SizeF = New SizeF(200, 50)
<XtraSerializableProperty, DefaultValue(True), Favorite(True), SRCategory(ReportStringId.CatBehavior)>
Public Property BoolProp As Boolean
<XtraSerializableProperty, DefaultValue(MyEnum.One)>
Public Property EnumProp As MyEnum
<XtraSerializableProperty>
Public Property ArrayProp As Item()
Protected Overrides Sub PutStateToBrick(ByVal brick As VisualBrick, ByVal ps As PrintingSystemBase)
MyBase.PutStateToBrick(brick, ps)
brick.Text = EnumProp.ToString()
End Sub
Public Class Item
<XtraSerializableProperty>
Public Property PropA As Integer
End Class
End Class