// Copyright Keysight Technologies 2012-2019 // This Source Code Form is subject to the terms of the Mozilla Public // License, v. 2.0. If a copy of the MPL was not distributed with this // file, you can obtain one at http://mozilla.org/MPL/2.0/. using System; namespace OpenTap { /// /// Indicates that a property on a (a step setting) should be visible within a Test Plan editor UI. /// public class ColumnDisplayNameAttribute : Attribute, IAnnotation { /// /// The header name of the column. /// public string ColumnName { get; private set; } /// /// Used for managing the order in which the columns appear. /// public double Order { get; private set; } /// /// Whether the property as a column is read-only. /// public bool IsReadOnly { get; private set; } /// /// Create a new instance of ColumnDisplayNameAttribute. /// To be used on TestStep properties to show that they should appear in the test plan editor. /// /// The header name of the column. /// Used for managing the order in which the columns appear. /// Whether the property as a column is read-only. public ColumnDisplayNameAttribute(string ColumnName = null, double Order = 0, bool IsReadOnly = false) { this.ColumnName = ColumnName; this.Order = Order; this.IsReadOnly = IsReadOnly; } } }