using System;
namespace DesktopMagicPluginAPI.Inputs
{
///
/// Marks a Property as element.
///
[AttributeUsage(AttributeTargets.Field)]
public class ElementAttribute : Attribute
{
///
/// The name of the element.
///
public string Name { get; }
///
/// The order index of the element.
///
public int OrderIndex { get; }
///
/// Marks a Property as element with the provided and .
///
/// The name of the element.
/// The order index of the element.
public ElementAttribute(string name = "", int orderIndex = 0)
{
Name = name;
OrderIndex = orderIndex;
}
///
/// Marks a Property as element with the provided .
///
/// The order index of the element.
public ElementAttribute(int orderIndex = 0)
{
OrderIndex = orderIndex;
}
///
public ElementAttribute()
{
}
}
}