using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace AircraftPlantContracts.Attributes
{
///
/// Класс-атрибут для конифгурации колонки DataGridView
///
[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; }
///
/// Конструктор
///
///
///
///
///
///
public ColumnAttribute(string title = "", bool visible = true, int width = 0, GridViewAutoSize gridViewAutoSize = GridViewAutoSize.None, bool isUseAutoSize = false)
{
Title = title;
Visible = visible;
Width = width;
GridViewAutoSize = gridViewAutoSize;
IsUseAutoSize = isUseAutoSize;
}
}
}