using ClosedXML.Utils;
using DocumentFormat.OpenXml.Spreadsheet;
namespace ClosedXML.Excel
{
internal static class XLCFBaseConverter
{
public static ConditionalFormattingRule Convert(IXLConditionalFormat cf, int priority)
{
return new ConditionalFormattingRule { Type = cf.ConditionalFormatType.ToOpenXml(), Priority = priority, StopIfTrue = OpenXmlHelper.GetBooleanValue(((XLConditionalFormat)cf).StopIfTrueInternal, false) };
}
}
}