diff options
| author | Rob Mensching <rob@firegiant.com> | 2017-11-01 10:59:45 -0700 |
|---|---|---|
| committer | Rob Mensching <rob@firegiant.com> | 2017-11-01 10:59:45 -0700 |
| commit | 2bb37beda887d120a0ddabf874ad25357101faa1 (patch) | |
| tree | c35e97b03274b86cfc9ff7fd2caeee211165a140 /src/WixToolset.Data.WindowsInstaller/Rows/ControlRow.cs | |
| parent | df7413aeed3aea3425dff20ae0c8b1be3a3ab525 (diff) | |
| download | wix-2bb37beda887d120a0ddabf874ad25357101faa1.tar.gz wix-2bb37beda887d120a0ddabf874ad25357101faa1.tar.bz2 wix-2bb37beda887d120a0ddabf874ad25357101faa1.zip | |
Update to WiX Intermediate Representation
Diffstat (limited to 'src/WixToolset.Data.WindowsInstaller/Rows/ControlRow.cs')
| -rw-r--r-- | src/WixToolset.Data.WindowsInstaller/Rows/ControlRow.cs | 143 |
1 files changed, 143 insertions, 0 deletions
diff --git a/src/WixToolset.Data.WindowsInstaller/Rows/ControlRow.cs b/src/WixToolset.Data.WindowsInstaller/Rows/ControlRow.cs new file mode 100644 index 00000000..8fa3f633 --- /dev/null +++ b/src/WixToolset.Data.WindowsInstaller/Rows/ControlRow.cs | |||
| @@ -0,0 +1,143 @@ | |||
| 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.Rows | ||
| 4 | { | ||
| 5 | using System.Diagnostics.CodeAnalysis; | ||
| 6 | |||
| 7 | /// <summary> | ||
| 8 | /// Specialization of a row for the Control table. | ||
| 9 | /// </summary> | ||
| 10 | public sealed class ControlRow : Row | ||
| 11 | { | ||
| 12 | /// <summary> | ||
| 13 | /// Creates a Control row that belongs to a table. | ||
| 14 | /// </summary> | ||
| 15 | /// <param name="sourceLineNumbers">Original source lines for this row.</param> | ||
| 16 | /// <param name="table">Table this Control row belongs to and should get its column definitions from.</param> | ||
| 17 | public ControlRow(SourceLineNumber sourceLineNumbers, Table table) : | ||
| 18 | base(sourceLineNumbers, table) | ||
| 19 | { | ||
| 20 | } | ||
| 21 | |||
| 22 | /// <summary> | ||
| 23 | /// Gets or sets the dialog of the Control row. | ||
| 24 | /// </summary> | ||
| 25 | /// <value>Primary key of the Control row.</value> | ||
| 26 | public string Dialog | ||
| 27 | { | ||
| 28 | get { return (string)this.Fields[0].Data; } | ||
| 29 | set { this.Fields[0].Data = value; } | ||
| 30 | } | ||
| 31 | |||
| 32 | /// <summary> | ||
| 33 | /// Gets or sets the identifier for this Control row. | ||
| 34 | /// </summary> | ||
| 35 | /// <value>Identifier for this Control row.</value> | ||
| 36 | public string Control | ||
| 37 | { | ||
| 38 | get { return (string)this.Fields[1].Data; } | ||
| 39 | set { this.Fields[1].Data = value; } | ||
| 40 | } | ||
| 41 | |||
| 42 | /// <summary> | ||
| 43 | /// Gets or sets the type of the control. | ||
| 44 | /// </summary> | ||
| 45 | /// <value>Name of the control.</value> | ||
| 46 | [SuppressMessage("Microsoft.Naming", "CA1721:PropertyNamesShouldNotMatchGetMethods")] | ||
| 47 | public string Type | ||
| 48 | { | ||
| 49 | get { return (string)this.Fields[2].Data; } | ||
| 50 | set { this.Fields[2].Data = value; } | ||
| 51 | } | ||
| 52 | |||
| 53 | /// <summary> | ||
| 54 | /// Gets or sets the X location of the control. | ||
| 55 | /// </summary> | ||
| 56 | /// <value>X location of the control.</value> | ||
| 57 | public string X | ||
| 58 | { | ||
| 59 | get { return this.Fields[3].AsString(); } | ||
| 60 | set { this.Fields[3].Data = value; } | ||
| 61 | } | ||
| 62 | |||
| 63 | /// <summary> | ||
| 64 | /// Gets or sets the Y location of the control. | ||
| 65 | /// </summary> | ||
| 66 | /// <value>Y location of the control.</value> | ||
| 67 | public string Y | ||
| 68 | { | ||
| 69 | get { return this.Fields[4].AsString(); } | ||
| 70 | set { this.Fields[4].Data = value; } | ||
| 71 | } | ||
| 72 | |||
| 73 | /// <summary> | ||
| 74 | /// Gets or sets the width of the control. | ||
| 75 | /// </summary> | ||
| 76 | /// <value>Width of the control.</value> | ||
| 77 | public string Width | ||
| 78 | { | ||
| 79 | get { return this.Fields[5].AsString(); } | ||
| 80 | set { this.Fields[5].Data = value; } | ||
| 81 | } | ||
| 82 | |||
| 83 | /// <summary> | ||
| 84 | /// Gets or sets the height of the control. | ||
| 85 | /// </summary> | ||
| 86 | /// <value>Height of the control.</value> | ||
| 87 | public string Height | ||
| 88 | { | ||
| 89 | get { return this.Fields[6].AsString(); } | ||
| 90 | set { this.Fields[6].Data = value; } | ||
| 91 | } | ||
| 92 | |||
| 93 | /// <summary> | ||
| 94 | /// Gets or sets the attributes for the control. | ||
| 95 | /// </summary> | ||
| 96 | /// <value>Attributes for the control.</value> | ||
| 97 | public int Attributes | ||
| 98 | { | ||
| 99 | get { return (int)this.Fields[7].Data; } | ||
| 100 | set { this.Fields[7].Data = value; } | ||
| 101 | } | ||
| 102 | |||
| 103 | /// <summary> | ||
| 104 | /// Gets or sets the Property associated with the control. | ||
| 105 | /// </summary> | ||
| 106 | /// <value>Property associated with the control.</value> | ||
| 107 | public string Property | ||
| 108 | { | ||
| 109 | get { return (string)this.Fields[8].Data; } | ||
| 110 | set { this.Fields[8].Data = value; } | ||
| 111 | } | ||
| 112 | |||
| 113 | /// <summary> | ||
| 114 | /// Gets or sets the text of the control. | ||
| 115 | /// </summary> | ||
| 116 | /// <value>Text of the control.</value> | ||
| 117 | public string Text | ||
| 118 | { | ||
| 119 | get { return (string)this.Fields[9].Data; } | ||
| 120 | set { this.Fields[9].Data = value; } | ||
| 121 | } | ||
| 122 | |||
| 123 | /// <summary> | ||
| 124 | /// Gets or sets the next control. | ||
| 125 | /// </summary> | ||
| 126 | /// <value>Next control.</value> | ||
| 127 | public string Next | ||
| 128 | { | ||
| 129 | get { return (string)this.Fields[10].Data; } | ||
| 130 | set { this.Fields[10].Data = value; } | ||
| 131 | } | ||
| 132 | |||
| 133 | /// <summary> | ||
| 134 | /// Gets or sets the help for the control. | ||
| 135 | /// </summary> | ||
| 136 | /// <value>Help for the control.</value> | ||
| 137 | public string Help | ||
| 138 | { | ||
| 139 | get { return (string)this.Fields[11].Data; } | ||
| 140 | set { this.Fields[11].Data = value; } | ||
| 141 | } | ||
| 142 | } | ||
| 143 | } | ||
