Beispiel #1
0
        internal override object PublishClone(AutomaticSubtotalContext context)
        {
            TextBox textBox = (TextBox)base.PublishClone(context);

            textBox.m_sequenceID = context.GenerateTextboxSequenceID();
            if (m_paragraphs != null)
            {
                textBox.m_paragraphs = new List <Paragraph>(m_paragraphs.Count);
                foreach (Paragraph paragraph2 in m_paragraphs)
                {
                    Paragraph paragraph = (Paragraph)paragraph2.PublishClone(context);
                    paragraph.TextBox = textBox;
                    textBox.m_paragraphs.Add(paragraph);
                }
            }
            if (m_hideDuplicates != null)
            {
                textBox.m_hideDuplicates = context.GetNewScopeName(m_hideDuplicates);
            }
            if (m_action != null)
            {
                textBox.m_action = (Action)m_action.PublishClone(context);
            }
            if (m_initialToggleState != null)
            {
                textBox.m_initialToggleState = (ExpressionInfo)m_initialToggleState.PublishClone(context);
            }
            if (m_userSort != null)
            {
                textBox.m_userSort = (EndUserSort)m_userSort.PublishClone(context);
            }
            return(textBox);
        }