diff options
Diffstat (limited to 'src/WixToolset.Data/Tuples/WixCustomTableCellTuple.cs')
| -rw-r--r-- | src/WixToolset.Data/Tuples/WixCustomTableCellTuple.cs | 68 |
1 files changed, 68 insertions, 0 deletions
diff --git a/src/WixToolset.Data/Tuples/WixCustomTableCellTuple.cs b/src/WixToolset.Data/Tuples/WixCustomTableCellTuple.cs new file mode 100644 index 00000000..18be675e --- /dev/null +++ b/src/WixToolset.Data/Tuples/WixCustomTableCellTuple.cs | |||
| @@ -0,0 +1,68 @@ | |||
| 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 | |||
| 3 | namespace WixToolset.Data | ||
| 4 | { | ||
| 5 | using WixToolset.Data.Tuples; | ||
| 6 | |||
| 7 | public static partial class TupleDefinitions | ||
| 8 | { | ||
| 9 | public static readonly IntermediateTupleDefinition WixCustomTableCell = new IntermediateTupleDefinition( | ||
| 10 | TupleDefinitionType.WixCustomTableCell, | ||
| 11 | new[] | ||
| 12 | { | ||
| 13 | new IntermediateFieldDefinition(nameof(WixCustomTableCellTupleFields.TableRef), IntermediateFieldType.String), | ||
| 14 | new IntermediateFieldDefinition(nameof(WixCustomTableCellTupleFields.ColumnRef), IntermediateFieldType.String), | ||
| 15 | new IntermediateFieldDefinition(nameof(WixCustomTableCellTupleFields.RowId), IntermediateFieldType.String), | ||
| 16 | new IntermediateFieldDefinition(nameof(WixCustomTableCellTupleFields.Data), IntermediateFieldType.String), | ||
| 17 | }, | ||
| 18 | typeof(WixCustomTableCellTuple)); | ||
| 19 | } | ||
| 20 | } | ||
| 21 | |||
| 22 | namespace WixToolset.Data.Tuples | ||
| 23 | { | ||
| 24 | public enum WixCustomTableCellTupleFields | ||
| 25 | { | ||
| 26 | TableRef, | ||
| 27 | ColumnRef, | ||
| 28 | RowId, | ||
| 29 | Data, | ||
| 30 | } | ||
| 31 | |||
| 32 | public class WixCustomTableCellTuple : IntermediateTuple | ||
| 33 | { | ||
| 34 | public WixCustomTableCellTuple() : base(TupleDefinitions.WixCustomTableCell, null, null) | ||
| 35 | { | ||
| 36 | } | ||
| 37 | |||
| 38 | public WixCustomTableCellTuple(SourceLineNumber sourceLineNumber, Identifier id = null) : base(TupleDefinitions.WixCustomTableCell, sourceLineNumber, id) | ||
| 39 | { | ||
| 40 | } | ||
| 41 | |||
| 42 | public IntermediateField this[WixCustomTableCellTupleFields index] => this.Fields[(int)index]; | ||
| 43 | |||
| 44 | public string TableRef | ||
| 45 | { | ||
| 46 | get => (string)this.Fields[(int)WixCustomTableCellTupleFields.TableRef]; | ||
| 47 | set => this.Set((int)WixCustomTableCellTupleFields.TableRef, value); | ||
| 48 | } | ||
| 49 | |||
| 50 | public string ColumnRef | ||
| 51 | { | ||
| 52 | get => (string)this.Fields[(int)WixCustomTableCellTupleFields.ColumnRef]; | ||
| 53 | set => this.Set((int)WixCustomTableCellTupleFields.ColumnRef, value); | ||
| 54 | } | ||
| 55 | |||
| 56 | public string RowId | ||
| 57 | { | ||
| 58 | get => (string)this.Fields[(int)WixCustomTableCellTupleFields.RowId]; | ||
| 59 | set => this.Set((int)WixCustomTableCellTupleFields.RowId, value); | ||
| 60 | } | ||
| 61 | |||
| 62 | public string Data | ||
| 63 | { | ||
| 64 | get => (string)this.Fields[(int)WixCustomTableCellTupleFields.Data]; | ||
| 65 | set => this.Set((int)WixCustomTableCellTupleFields.Data, value); | ||
| 66 | } | ||
| 67 | } | ||
| 68 | } | ||
