24 lines
429 B
C#
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;
|
|
}
|
|
}
|
|
}
|