CPF/CPF.ReoGrid/DataFormat/TextDataFormatter.cs
2024-06-24 10:15:59 +08:00

24 lines
429 B
C#

using System;
using CPF.ReoGrid.Core;
namespace CPF.ReoGrid.DataFormat
{
internal class TextDataFormatter : IDataFormatter
{
public string FormatCell(Cell cell)
{
bool flag = cell.InnerStyle.HAlign == ReoGridHorAlign.General;
if (flag)
{
cell.RenderHorAlign = ReoGridRenderHorAlign.Left;
}
return Convert.ToString(cell.InnerData);
}
public bool PerformTestFormat()
{
return false;
}
}
}