Exemple #1
0
        public object Clone()
        {
            Cell newCell = (Cell)this.MemberwiseClone();

            if (this.HasEmbeddedReport)
            {
                newCell.EmbeddedReport = EmbedReport.LoadAndParse(this.NonNumbericText);
            }

            return(newCell);
        }
Exemple #2
0
        private void SetValues(Cell rc)
        {
            this.ContextID = rc.ContextID;
            this.UnitID    = rc.UnitID;

            this.DisplayDateInUSFormat = rc.DisplayDateInUSFormat;
            this.DisplayZeroAsNone     = rc.DisplayZeroAsNone;

            this.FootnoteIndexer = rc.FootnoteIndexer;

            this.IsNumeric = rc.IsNumeric;
            this.IsRatio   = rc.IsRatio;

            this.NonNumbericText = rc.NonNumbericText;
            this.NumericAmount   = rc.NumericAmount;

            this.RoundedNumericAmount = rc.RoundedNumericAmount;
            this.ShowCurrencySymbol   = rc.ShowCurrencySymbol;

            if (EmbedReport.HasMatch(rc.NonNumbericText))
            {
                this.EmbeddedReport = EmbedReport.LoadAndParse(rc.NonNumbericText);
            }
        }
Exemple #3
0
        /// <summary>
        /// Load, and then parse, the given <paramref
        /// name="embeddingInstruction"/>.
        /// </summary>
        /// <param name="embeddingInstruction">The embed command to parse.
        /// </param>
        /// <returns>An <see cref="EmbedReport"/> object for the given embed
        /// command.</returns>
        public static EmbedReport LoadAndParse(string embeddingInstruction)
        {
            string embedWarning = string.Empty;

            return(EmbedReport.LoadAndParse(embeddingInstruction, out embedWarning));
        }