2 writes to _document
PresentationFramework (2)
System\Windows\Controls\RichTextBox.cs (2)
391_document = null; 405_document = value;
24 references to _document
PresentationFramework (24)
System\Windows\Controls\RichTextBox.cs (24)
349Invariant.Assert(_document != null); 350return _document; 357if (value != _document && 364if (_document != null && this.TextSelectionInternal.ChangeBlockLevel > 0) 369if (value == _document) 376bool initialSetting = _document == null; 379if (_document != null) 382_document.PageSizeChanged -= new EventHandler(this.OnPageSizeChangedHandler); 385this.RemoveLogicalChild(_document); 388_document.TextContainer.CollectTextChanges = false; 406_document.SetDpi(this.GetDpi()); 413_document.TextContainer.CollectTextChanges = true; 416this.InitializeTextContainer(_document.TextContainer); 419_document.PageSizeChanged += new EventHandler(this.OnPageSizeChangedHandler); 422this.AddLogicalChild(_document); 467Block firstBlock = _document.Blocks.FirstBlock; 472firstBlock == _document.Blocks.LastBlock && 537if (this._document == null) 545return new SingleChildEnumerator(this._document); 704object defaultValue = _document.GetValue(property); 707_document.ClearValue(property); 708defaultValue = _document.GetValue(property); 711_document.SetValue(property, inheritedValue); 747_document.SetValue(property, inheritedValue);