29 lines
905 B
C#
Raw Normal View History

2023-04-11 15:37:52 +04:00
namespace IceCreamShopContracts.Attributes
{
[AttributeUsage(AttributeTargets.Property)]
public class ColumnAttribute : Attribute
{
public string Title { get; private set; }
public bool Visible { get; private set; }
public int Width { get; private set; }
public GridViewAutoSize GridViewAutoSize { get; private set; }
public bool IsUseAutoSize { get; private set; }
2023-05-03 16:28:35 +04:00
public string Format { get; private set; }
public ColumnAttribute(string title = "", bool visible = true, int width = 0, GridViewAutoSize gridViewAutoSize = GridViewAutoSize.None, bool isUseAutoSize = false, string format = "")
2023-04-11 15:37:52 +04:00
{
Title = title;
Visible = visible;
Width = width;
GridViewAutoSize = gridViewAutoSize;
IsUseAutoSize = isUseAutoSize;
2023-05-03 16:28:35 +04:00
Format = format;
2023-04-11 15:37:52 +04:00
}
}
}