Exemple #1
0
 internal static string GetInnerText(this IXLCell cell)
 {
     _xlCellInnerText = _xlCellInnerText ??
                        cell.GetType()
                        .GetProperty("InnerText", BindingFlags.Instance | BindingFlags.Public);
     return((string)_xlCellInnerText.GetValue(cell, null));
 }
Exemple #2
0
        internal static string GetFormulaA1(this IXLCell cell, string value)
        {
            var type   = cell.GetType();
            var method = type.GetMethod("GetFormulaA1", BindingFlags.Instance | BindingFlags.NonPublic);

            return((string)method.Invoke(cell, new object[] { value }));
        }
Exemple #3
0
        internal static string GetCellText(this IXLCell cell)
        {
            var field = cell.GetType().GetField("_cellValue",
                                                BindingFlags.NonPublic |
                                                BindingFlags.Instance);

            return((string)field.GetValue(cell));
        }