31 lines
1.1 KiB
C#
31 lines
1.1 KiB
C#
using System;
|
|
using System.Runtime.Serialization;
|
|
|
|
namespace FurnitureAssemblyContracts.Attributes
|
|
{
|
|
[AttributeUsage(AttributeTargets.Property)]
|
|
public class ColumnAttribute : Attribute
|
|
{
|
|
public ColumnAttribute(string title = "", bool visible = true, int width
|
|
= 0, GridViewAutoSize gridViewAutoSize = GridViewAutoSize.None, bool
|
|
isUseAutoSize = false, bool isFormatable = false, string? formatter = null)
|
|
{
|
|
Title = title;
|
|
Visible = visible;
|
|
Width = width;
|
|
GridViewAutoSize = gridViewAutoSize;
|
|
IsUseAutoSize = isUseAutoSize;
|
|
IsFormatable = isFormatable;
|
|
Formatter = formatter;
|
|
|
|
}
|
|
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 bool IsFormatable { get; private set; }
|
|
public string? Formatter { get; private set; }
|
|
}
|
|
}
|