// Token: 0x06004A4F RID: 19023 RVA: 0x0014F910 File Offset: 0x0014DB10
        internal override object GetValue(BaseValueSourceInternal valueSource)
        {
            string  textInternal = TextRangeBase.GetTextInternal(this._textContainer.Start, this._textContainer.End);
            TextBox textBox      = this._textContainer.Parent as TextBox;

            if (textBox != null)
            {
                textBox.OnDeferredTextReferenceResolved(this, textInternal);
            }
            return(textInternal);
        }
Esempio n. 2
0
        //------------------------------------------------------
        //
        //  Internal Methods
        //
        //------------------------------------------------------

        #region Internal Methods

        // Does the real work to calculate the current TextProperty value.
        internal override object GetValue(BaseValueSourceInternal valueSource)
        {
            string s = TextRangeBase.GetTextInternal(_textContainer.Start, _textContainer.End);

            TextBox tb = _textContainer.Parent as TextBox;

            if (tb != null)
            {
                tb.OnDeferredTextReferenceResolved(this, s);
            }

            return(s);
        }