Пример #1
0
 // Token: 0x06004216 RID: 16918 RVA: 0x0012E538 File Offset: 0x0012C738
 private void UpdateText(string text)
 {
     if (text == null)
     {
         text = string.Empty;
     }
     this._accessKeyLocated = false;
     this._accessKey        = null;
     this.TextContainer.BeginChange();
     try
     {
         this.TextContainer.DeleteContentInternal(this.TextContainer.Start, this.TextContainer.End);
         Run run = Inline.CreateImplicitRun(this);
         this.TextContainer.End.InsertTextElement(run);
         run.Text = text;
     }
     finally
     {
         this.TextContainer.EndChange();
     }
 }