Exemple #1
0
        public override String ToFormulaString()
        {
            StringBuilder sb = new StringBuilder();

            if (externalWorkbookNumber >= 0)
            {
                sb.Append('[');
                sb.Append(externalWorkbookNumber);
                sb.Append(']');
            }
            if (sheetName != null)
            {
                sb.Append(sheetName);
            }
            sb.Append('!');
            sb.Append(ErrorConstants.GetText(ErrorConstants.ERROR_REF));
            return(sb.ToString());
        }
Exemple #2
0
        public override String ToString()
        {
            StringBuilder sb = new StringBuilder();

            sb.Append(GetType().Name);
            sb.Append(" [");
            if (externalWorkbookNumber >= 0)
            {
                sb.Append(" [");
                sb.Append("workbook=").Append(ExternalWorkbookNumber);
                sb.Append("] ");
            }
            if (sheetName != null)
            {
                SheetNameFormatter.AppendFormat(sb, sheetName);
            }
            sb.Append(" ! ");
            sb.Append(ErrorConstants.GetText(ErrorConstants.ERROR_REF));
            sb.Append("]");
            return(sb.ToString());
        }