4 writes to _complexContent
PresentationFramework (4)
System\Windows\Controls\TextBlock.cs (4)
1933_complexContent = null; 1939_complexContent = null; 2881_complexContent = new ComplexContent(this, textContainer, false, Text); 2924_complexContent = null;
89 references to _complexContent
PresentationFramework (89)
System\Windows\Controls\TextBlock.cs (89)
128if (!(_complexContent.TextContainer is TextContainer)) 135Type parentType = _complexContent.TextContainer.Parent.GetType(); 155TextContainer textContainer = (TextContainer)_complexContent.TextContainer; 179if (_complexContent == null) 185TextContainer textContainer = (TextContainer)_complexContent.TextContainer; 227else if (_complexContent == null) 233if (!_complexContent.ForeignTextContainer) 276return _complexContent.TextView; 281return _complexContent.TextContainer; 286return _complexContent.TextContainer as TextContainer; 398if (((ITextView)_complexContent.TextView).Validate(point)) 400position = (TextPointer)_complexContent.TextView.GetTextPositionFromPoint(point, snapToText); 404position = snapToText ? new TextPointer((TextPointer)_complexContent.TextContainer.Start) : null; 447return (TextPointer)_complexContent.TextContainer.Start; 464return (TextPointer)_complexContent.TextContainer.End; 599if (textblock._complexContent != null && 1138get { return _complexContent == null ? 0 : _complexContent.VisualChildren.Count; } 1152if (_complexContent == null) 1156return _complexContent.VisualChildren[index]; 1182Invariant.Assert(_complexContent != null); 1240if (_complexContent != null) 1242_complexContent.TextView.Invalidate(); 1385if (_complexContent != null) 1387_complexContent.VisualChildren.Clear(); 1444line.Arrange(_complexContent.VisualChildren, lineOffset); 1466if (_complexContent != null) 1747if (_complexContent == null || !(_complexContent.TextContainer is TextContainer)) 1776int startOffset = _complexContent.TextContainer.Start.GetOffsetToPosition(start); 1777int endOffset = _complexContent.TextContainer.Start.GetOffsetToPosition(end); 1858if (_complexContent == null || !(_complexContent.TextContainer is TextContainer)) 1866TextSegment textSegment = new TextSegment(_complexContent.TextContainer.Start, _complexContent.TextContainer.End); 1910if (_complexContent != null) 1912_complexContent.VisualChildren.Remove(child); 1930if (_complexContent != null) 1932_complexContent.Detach(this); 1957Debug.Assert(_complexContent != null, "Inline objects are supported only in complex content."); 2010if (_complexContent != null) 2012return TextRangeBase.GetTextInternal(_complexContent.TextContainer.Start, _complexContent.TextContainer.End); 2147pos = _complexContent.TextContainer.Start.CreatePointer(charIndex.FirstCharacterIndex + charIndex.TrailingLength, logicalDirection); 2176int characterIndex = _complexContent.TextContainer.Start.GetOffsetToPosition(orientedPosition); 2280int dcpPositionStart = _complexContent.TextContainer.Start.GetOffsetToPosition(startPosition); 2281int dcpPositionEnd = _complexContent.TextContainer.Start.GetOffsetToPosition(endPosition); 2290ITextPointer endOfLineTextPointer = _complexContent.TextContainer.Start.CreatePointer(0); 2388int characterIndex = _complexContent.TextContainer.Start.GetOffsetToPosition(position); 2454int characterIndex = _complexContent.TextContainer.Start.GetOffsetToPosition(position); 2554ITextPointer nextCaretPosition = _complexContent.TextContainer.Start.CreatePointer(nextCharacterHit.FirstCharacterIndex + nextCharacterHit.TrailingLength, logicalDirection); 2583int characterIndex = _complexContent.TextContainer.Start.GetOffsetToPosition(position); 2642ITextPointer backspaceCaretPosition = _complexContent.TextContainer.Start.CreatePointer(backspaceCharacterHit.FirstCharacterIndex + backspaceCharacterHit.TrailingLength, logicalDirection); 2693return _complexContent.TextContainer; 2705return _complexContent.TextView; 2717return _complexContent.Highlights; 2756return (_complexContent != null); 2776get { return (_complexContent == null) ? null : _complexContent.InlineObjects; } 2777set { if (_complexContent != null) _complexContent.InlineObjects = value; } 2813if (IsLayoutDataValid && _complexContent != null) 2815_complexContent.TextView.OnUpdated(); 2854if (_complexContent == null) 2874if (_complexContent == null) 2921if (_complexContent != null) 2923_complexContent.Detach(this); 2956Debug.Assert(sender == _complexContent.TextContainer, "Received text change for foreign TextContainer."); 2976if (_complexContent == null) 2984Invariant.Assert(sender == _complexContent.TextContainer, "Received text change for foreign TextContainer."); 3369if (_complexContent == null) 3398return (_complexContent != null) && (manager != null) && (manager.XmlWriter == null); 3494if (textBlock._complexContent == null || !(textBlock._complexContent.TextContainer is TextContainer)) 3500if (textBlock._complexContent.TextContainer != ((TextElement)element).TextContainer) 3639Debug.Assert(_complexContent.TextContainer is TextContainer); 3646if ((e as TextElement).TextContainer == _complexContent.TextContainer) 3655position = new TextPointer((TextPointer)_complexContent.TextContainer.Start); 3656while (position.CompareTo((TextPointer)_complexContent.TextContainer.End) < 0) 3736_complexContent.TextContainer.Changing += new EventHandler(OnTextContainerChanging); 3737_complexContent.TextContainer.Change += new TextContainerChangeEventHandler(OnTextContainerChange); 3738_complexContent.Highlights.Changed += new HighlightChangedEventHandler(OnHighlightChanged); 4091if (text._complexContent == null) 4104text._complexContent.TextContainer.BeginChange(); 4107((TextContainer)text._complexContent.TextContainer).DeleteContentInternal((TextPointer)text._complexContent.TextContainer.Start, (TextPointer)text._complexContent.TextContainer.End); 4108InsertTextRun(text._complexContent.TextContainer.End, newText, /*whitespacesIgnorable:*/true); 4113text._complexContent.TextContainer.EndChange();