// 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.
namespace WixToolset.Data.Rows
{
using System.Diagnostics.CodeAnalysis;
///
/// Specialization of a row for the Control table.
///
public sealed class BBControlRow : Row
{
///
/// Creates a Control row that belongs to a table.
///
/// Original source lines for this row.
/// Table this Control row belongs to and should get its column definitions from.
public BBControlRow(SourceLineNumber sourceLineNumbers, Table table) :
base(sourceLineNumbers, table)
{
}
///
/// Gets or sets the dialog of the Control row.
///
/// Primary key of the Control row.
public string Billboard
{
get { return (string)this.Fields[0].Data; }
set { this.Fields[0].Data = value; }
}
///
/// Gets or sets the identifier for this Control row.
///
/// Identifier for this Control row.
public string BBControl
{
get { return (string)this.Fields[1].Data; }
set { this.Fields[1].Data = value; }
}
///
/// Gets or sets the type of the BBControl.
///
/// Name of the BBControl.
[SuppressMessage("Microsoft.Naming", "CA1721:PropertyNamesShouldNotMatchGetMethods")]
public string Type
{
get { return this.Fields[2].AsString(); }
set { this.Fields[2].Data = value; }
}
///
/// Gets or sets the X location of the BBControl.
///
/// X location of the BBControl.
public string X
{
get { return this.Fields[3].AsString(); }
set { this.Fields[3].Data = value; }
}
///
/// Gets or sets the Y location of the BBControl.
///
/// Y location of the BBControl.
public string Y
{
get { return this.Fields[4].AsString(); }
set { this.Fields[4].Data = value; }
}
///
/// Gets or sets the width of the BBControl.
///
/// Width of the BBControl.
public string Width
{
get { return this.Fields[5].AsString(); }
set { this.Fields[5].Data = value; }
}
///
/// Gets or sets the height of the BBControl.
///
/// Height of the BBControl.
public string Height
{
get { return this.Fields[6].AsString(); }
set { this.Fields[6].Data = value; }
}
///
/// Gets or sets the attributes for the BBControl.
///
/// Attributes for the BBControl.
public int Attributes
{
get { return (int)this.Fields[7].Data; }
set { this.Fields[7].Data = value; }
}
///
/// Gets or sets the text of the BBControl.
///
/// Text of the BBControl.
public string Text
{
get { return (string)this.Fields[8].Data; }
set { this.Fields[8].Data = value; }
}
}
}