aboutsummaryrefslogtreecommitdiff
path: root/src/api/wix/WixToolset.Data/Symbols/RadioButtonSymbol.cs
diff options
context:
space:
mode:
Diffstat (limited to 'src/api/wix/WixToolset.Data/Symbols/RadioButtonSymbol.cs')
-rw-r--r--src/api/wix/WixToolset.Data/Symbols/RadioButtonSymbol.cs108
1 files changed, 108 insertions, 0 deletions
diff --git a/src/api/wix/WixToolset.Data/Symbols/RadioButtonSymbol.cs b/src/api/wix/WixToolset.Data/Symbols/RadioButtonSymbol.cs
new file mode 100644
index 00000000..6a26e937
--- /dev/null
+++ b/src/api/wix/WixToolset.Data/Symbols/RadioButtonSymbol.cs
@@ -0,0 +1,108 @@
1// Copyright (c) .NET Foundation and contributors. All rights reserved. Licensed under the Microsoft Reciprocal License. See LICENSE.TXT file in the project root for full license information.
2
3namespace WixToolset.Data
4{
5 using WixToolset.Data.Symbols;
6
7 public static partial class SymbolDefinitions
8 {
9 public static readonly IntermediateSymbolDefinition RadioButton = new IntermediateSymbolDefinition(
10 SymbolDefinitionType.RadioButton,
11 new[]
12 {
13 new IntermediateFieldDefinition(nameof(RadioButtonSymbolFields.Property), IntermediateFieldType.String),
14 new IntermediateFieldDefinition(nameof(RadioButtonSymbolFields.Order), IntermediateFieldType.Number),
15 new IntermediateFieldDefinition(nameof(RadioButtonSymbolFields.Value), IntermediateFieldType.String),
16 new IntermediateFieldDefinition(nameof(RadioButtonSymbolFields.X), IntermediateFieldType.Number),
17 new IntermediateFieldDefinition(nameof(RadioButtonSymbolFields.Y), IntermediateFieldType.Number),
18 new IntermediateFieldDefinition(nameof(RadioButtonSymbolFields.Width), IntermediateFieldType.Number),
19 new IntermediateFieldDefinition(nameof(RadioButtonSymbolFields.Height), IntermediateFieldType.Number),
20 new IntermediateFieldDefinition(nameof(RadioButtonSymbolFields.Text), IntermediateFieldType.String),
21 new IntermediateFieldDefinition(nameof(RadioButtonSymbolFields.Help), IntermediateFieldType.String),
22 },
23 typeof(RadioButtonSymbol));
24 }
25}
26
27namespace WixToolset.Data.Symbols
28{
29 public enum RadioButtonSymbolFields
30 {
31 Property,
32 Order,
33 Value,
34 X,
35 Y,
36 Width,
37 Height,
38 Text,
39 Help,
40 }
41
42 public class RadioButtonSymbol : IntermediateSymbol
43 {
44 public RadioButtonSymbol() : base(SymbolDefinitions.RadioButton, null, null)
45 {
46 }
47
48 public RadioButtonSymbol(SourceLineNumber sourceLineNumber, Identifier id = null) : base(SymbolDefinitions.RadioButton, sourceLineNumber, id)
49 {
50 }
51
52 public IntermediateField this[RadioButtonSymbolFields index] => this.Fields[(int)index];
53
54 public string Property
55 {
56 get => (string)this.Fields[(int)RadioButtonSymbolFields.Property];
57 set => this.Set((int)RadioButtonSymbolFields.Property, value);
58 }
59
60 public int Order
61 {
62 get => (int)this.Fields[(int)RadioButtonSymbolFields.Order];
63 set => this.Set((int)RadioButtonSymbolFields.Order, value);
64 }
65
66 public string Value
67 {
68 get => (string)this.Fields[(int)RadioButtonSymbolFields.Value];
69 set => this.Set((int)RadioButtonSymbolFields.Value, value);
70 }
71
72 public int X
73 {
74 get => (int)this.Fields[(int)RadioButtonSymbolFields.X];
75 set => this.Set((int)RadioButtonSymbolFields.X, value);
76 }
77
78 public int Y
79 {
80 get => (int)this.Fields[(int)RadioButtonSymbolFields.Y];
81 set => this.Set((int)RadioButtonSymbolFields.Y, value);
82 }
83
84 public int Width
85 {
86 get => (int)this.Fields[(int)RadioButtonSymbolFields.Width];
87 set => this.Set((int)RadioButtonSymbolFields.Width, value);
88 }
89
90 public int Height
91 {
92 get => (int)this.Fields[(int)RadioButtonSymbolFields.Height];
93 set => this.Set((int)RadioButtonSymbolFields.Height, value);
94 }
95
96 public string Text
97 {
98 get => (string)this.Fields[(int)RadioButtonSymbolFields.Text];
99 set => this.Set((int)RadioButtonSymbolFields.Text, value);
100 }
101
102 public string Help
103 {
104 get => (string)this.Fields[(int)RadioButtonSymbolFields.Help];
105 set => this.Set((int)RadioButtonSymbolFields.Help, value);
106 }
107 }
108} \ No newline at end of file