diff options
Diffstat (limited to '')
-rw-r--r-- | src/WixToolset.Data/Tuples/TextStyleTuple.cs | 44 |
1 files changed, 26 insertions, 18 deletions
diff --git a/src/WixToolset.Data/Tuples/TextStyleTuple.cs b/src/WixToolset.Data/Tuples/TextStyleTuple.cs index e4929ccf..3614808e 100644 --- a/src/WixToolset.Data/Tuples/TextStyleTuple.cs +++ b/src/WixToolset.Data/Tuples/TextStyleTuple.cs | |||
@@ -10,10 +10,11 @@ namespace WixToolset.Data | |||
10 | TupleDefinitionType.TextStyle, | 10 | TupleDefinitionType.TextStyle, |
11 | new[] | 11 | new[] |
12 | { | 12 | { |
13 | new IntermediateFieldDefinition(nameof(TextStyleTupleFields.TextStyle), IntermediateFieldType.String), | ||
14 | new IntermediateFieldDefinition(nameof(TextStyleTupleFields.FaceName), IntermediateFieldType.String), | 13 | new IntermediateFieldDefinition(nameof(TextStyleTupleFields.FaceName), IntermediateFieldType.String), |
15 | new IntermediateFieldDefinition(nameof(TextStyleTupleFields.Size), IntermediateFieldType.Number), | 14 | new IntermediateFieldDefinition(nameof(TextStyleTupleFields.Size), IntermediateFieldType.Number), |
16 | new IntermediateFieldDefinition(nameof(TextStyleTupleFields.Color), IntermediateFieldType.Number), | 15 | new IntermediateFieldDefinition(nameof(TextStyleTupleFields.Red), IntermediateFieldType.Number), |
16 | new IntermediateFieldDefinition(nameof(TextStyleTupleFields.Green), IntermediateFieldType.Number), | ||
17 | new IntermediateFieldDefinition(nameof(TextStyleTupleFields.Blue), IntermediateFieldType.Number), | ||
17 | new IntermediateFieldDefinition(nameof(TextStyleTupleFields.Bold), IntermediateFieldType.Bool), | 18 | new IntermediateFieldDefinition(nameof(TextStyleTupleFields.Bold), IntermediateFieldType.Bool), |
18 | new IntermediateFieldDefinition(nameof(TextStyleTupleFields.Italic), IntermediateFieldType.Bool), | 19 | new IntermediateFieldDefinition(nameof(TextStyleTupleFields.Italic), IntermediateFieldType.Bool), |
19 | new IntermediateFieldDefinition(nameof(TextStyleTupleFields.Strike), IntermediateFieldType.Bool), | 20 | new IntermediateFieldDefinition(nameof(TextStyleTupleFields.Strike), IntermediateFieldType.Bool), |
@@ -27,10 +28,11 @@ namespace WixToolset.Data.Tuples | |||
27 | { | 28 | { |
28 | public enum TextStyleTupleFields | 29 | public enum TextStyleTupleFields |
29 | { | 30 | { |
30 | TextStyle, | ||
31 | FaceName, | 31 | FaceName, |
32 | Size, | 32 | Size, |
33 | Color, | 33 | Red, |
34 | Green, | ||
35 | Blue, | ||
34 | Bold, | 36 | Bold, |
35 | Italic, | 37 | Italic, |
36 | Strike, | 38 | Strike, |
@@ -49,12 +51,6 @@ namespace WixToolset.Data.Tuples | |||
49 | 51 | ||
50 | public IntermediateField this[TextStyleTupleFields index] => this.Fields[(int)index]; | 52 | public IntermediateField this[TextStyleTupleFields index] => this.Fields[(int)index]; |
51 | 53 | ||
52 | public string TextStyle | ||
53 | { | ||
54 | get => (string)this.Fields[(int)TextStyleTupleFields.TextStyle]; | ||
55 | set => this.Set((int)TextStyleTupleFields.TextStyle, value); | ||
56 | } | ||
57 | |||
58 | public string FaceName | 54 | public string FaceName |
59 | { | 55 | { |
60 | get => (string)this.Fields[(int)TextStyleTupleFields.FaceName]; | 56 | get => (string)this.Fields[(int)TextStyleTupleFields.FaceName]; |
@@ -63,37 +59,49 @@ namespace WixToolset.Data.Tuples | |||
63 | 59 | ||
64 | public int Size | 60 | public int Size |
65 | { | 61 | { |
66 | get => this.Fields[(int)TextStyleTupleFields.Size].AsNumber(); | 62 | get => (int)this.Fields[(int)TextStyleTupleFields.Size]; |
67 | set => this.Set((int)TextStyleTupleFields.Size, value); | 63 | set => this.Set((int)TextStyleTupleFields.Size, value); |
68 | } | 64 | } |
69 | 65 | ||
70 | public int Color | 66 | public int? Red |
67 | { | ||
68 | get => (int?)this.Fields[(int)TextStyleTupleFields.Red]; | ||
69 | set => this.Set((int)TextStyleTupleFields.Red, value); | ||
70 | } | ||
71 | |||
72 | public int? Green | ||
73 | { | ||
74 | get => (int?)this.Fields[(int)TextStyleTupleFields.Green]; | ||
75 | set => this.Set((int)TextStyleTupleFields.Green, value); | ||
76 | } | ||
77 | |||
78 | public int? Blue | ||
71 | { | 79 | { |
72 | get => (int)this.Fields[(int)TextStyleTupleFields.Color].AsNumber(); | 80 | get => (int?)this.Fields[(int)TextStyleTupleFields.Blue]; |
73 | set => this.Set((int)TextStyleTupleFields.Color, value); | 81 | set => this.Set((int)TextStyleTupleFields.Blue, value); |
74 | } | 82 | } |
75 | 83 | ||
76 | public bool Bold | 84 | public bool Bold |
77 | { | 85 | { |
78 | get => this.Fields[(int)TextStyleTupleFields.Bold].AsBool(); | 86 | get => (bool)this.Fields[(int)TextStyleTupleFields.Bold]; |
79 | set => this.Set((int)TextStyleTupleFields.Bold, value); | 87 | set => this.Set((int)TextStyleTupleFields.Bold, value); |
80 | } | 88 | } |
81 | 89 | ||
82 | public bool Italic | 90 | public bool Italic |
83 | { | 91 | { |
84 | get => this.Fields[(int)TextStyleTupleFields.Italic].AsBool(); | 92 | get => (bool)this.Fields[(int)TextStyleTupleFields.Italic]; |
85 | set => this.Set((int)TextStyleTupleFields.Italic, value); | 93 | set => this.Set((int)TextStyleTupleFields.Italic, value); |
86 | } | 94 | } |
87 | 95 | ||
88 | public bool Strike | 96 | public bool Strike |
89 | { | 97 | { |
90 | get => this.Fields[(int)TextStyleTupleFields.Strike].AsBool(); | 98 | get => (bool)this.Fields[(int)TextStyleTupleFields.Strike]; |
91 | set => this.Set((int)TextStyleTupleFields.Strike, value); | 99 | set => this.Set((int)TextStyleTupleFields.Strike, value); |
92 | } | 100 | } |
93 | 101 | ||
94 | public bool Underline | 102 | public bool Underline |
95 | { | 103 | { |
96 | get => this.Fields[(int)TextStyleTupleFields.Underline].AsBool(); | 104 | get => (bool)this.Fields[(int)TextStyleTupleFields.Underline]; |
97 | set => this.Set((int)TextStyleTupleFields.Underline, value); | 105 | set => this.Set((int)TextStyleTupleFields.Underline, value); |
98 | } | 106 | } |
99 | } | 107 | } |