1 write to TextContainer
PresentationFramework (1)
System\Windows\Controls\TextBlock.cs (1)
3916TextContainer = textContainer;
50 references to TextContainer
PresentationFramework (50)
System\Windows\Controls\TextBlock.cs (50)
128if (!(_complexContent.TextContainer is TextContainer)) 135Type parentType = _complexContent.TextContainer.Parent.GetType(); 155TextContainer textContainer = (TextContainer)_complexContent.TextContainer; 185TextContainer textContainer = (TextContainer)_complexContent.TextContainer; 281return _complexContent.TextContainer; 286return _complexContent.TextContainer as TextContainer; 404position = snapToText ? new TextPointer((TextPointer)_complexContent.TextContainer.Start) : null; 447return (TextPointer)_complexContent.TextContainer.Start; 464return (TextPointer)_complexContent.TextContainer.End; 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); 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; 2956Debug.Assert(sender == _complexContent.TextContainer, "Received text change for foreign TextContainer."); 2984Invariant.Assert(sender == _complexContent.TextContainer, "Received text change for foreign TextContainer."); 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); 3922TextBlock.InsertTextRun(this.TextContainer.End, content, /*whitespacesIgnorable:*/false); 3926this.TextView = new TextParagraphView(owner, TextContainer); 3929this.TextContainer.TextView = this.TextView; 3938this.TextContainer.Changing -= new EventHandler(owner.OnTextContainerChanging); 3939this.TextContainer.Change -= new TextContainerChangeEventHandler(owner.OnTextContainerChange); 3950internal Highlights Highlights { get { return this.TextContainer.Highlights; } } 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();