96 references to TextContainer
PresentationFramework (96)
MS\Internal\Documents\ContentHostHelper.cs (1)
89ITextView textView = flowDocument.StructuralCache.TextContainer.TextView;
MS\Internal\Documents\FlowDocumentPaginator.cs (2)
230if (flowContentPosition.TextContainer != _document.StructuralCache.TextContainer) 287if (flowContentPosition.TextContainer != _document.StructuralCache.TextContainer)
MS\Internal\Documents\FlowDocumentView.cs (2)
747_textView = new DocumentPageTextView(this, _document.StructuralCache.TextContainer); 755service = Document.StructuralCache.TextContainer as TextContainer;
MS\Internal\Documents\IFlowDocumentViewer.cs (4)
204if (textSelection.Start != null && textSelection.Start.TextContainer == flowDocument.StructuralCache.TextContainer) 220ITextSelection textSelection = Document.StructuralCache.TextContainer.TextSelection; 557newTextSelection.AnchorPosition.TextContainer == flowDocument.StructuralCache.TextContainer) 559ITextSelection textSelection = flowDocument.StructuralCache.TextContainer.TextSelection;
MS\Internal\PtsHost\BackgroundFormatInfo.cs (1)
53_cchAllText = _structuralCache.TextContainer.SymbolCount;
MS\Internal\PtsHost\BaseParagraph.cs (6)
180int openEdgeCp = TextContainerHelper.GetCPFromElement(StructuralCache.TextContainer, Element, ElementEdge.BeforeStart); 251return TextContainerHelper.GetCPFromElement(StructuralCache.TextContainer, Element, ElementEdge.AfterStart); 255return TextContainerHelper.GetCPFromElement(StructuralCache.TextContainer, Element, ElementEdge.BeforeStart); 272return TextContainerHelper.GetCPFromElement(StructuralCache.TextContainer, Element, ElementEdge.BeforeEnd); 276return TextContainerHelper.GetCPFromElement(StructuralCache.TextContainer, Element, ElementEdge.AfterEnd); 295int cch = TextContainerHelper.GetCchFromElement(StructuralCache.TextContainer, Element);
MS\Internal\PtsHost\CellParaClient.cs (2)
157CellParagraph.InvalidateStructure(TextContainerHelper.GetCPFromElement(CellParagraph.StructuralCache.TextContainer, CellParagraph.Element, ElementEdge.BeforeStart)); 226CellParagraph.InvalidateStructure(TextContainerHelper.GetCPFromElement(CellParagraph.StructuralCache.TextContainer, CellParagraph.Element, ElementEdge.BeforeStart));
MS\Internal\PtsHost\ContainerParagraph.cs (6)
93int cpCurrent = TextContainerHelper.GetCPFromElement(StructuralCache.TextContainer, Element, ElementEdge.AfterStart); 155ITextPointer textPointer = TextContainerHelper.GetContentStart(StructuralCache.TextContainer, Element); 244ITextPointer textPointer = TextContainerHelper.GetTextPointerFromCP(StructuralCache.TextContainer, prevParagraph.ParagraphEndCharacterPosition, LogicalDirection.Forward); 369TextContainerHelper.GetCPFromElement(StructuralCache.TextContainer, Element, ElementEdge.BeforeStart), LastFormatCch); 376int dcpContent = TextContainerHelper.GetCPFromElement(StructuralCache.TextContainer, Element, ElementEdge.AfterStart); 1145int cpContent = TextContainerHelper.GetCPFromElement(StructuralCache.TextContainer, Element, ElementEdge.AfterStart);
MS\Internal\PtsHost\FlowDocumentPage.cs (8)
321int elementStartOffset = _structuralCache.TextContainer.Start.GetOffsetToPosition(elementStart); 927Debug.Assert(_structuralCache.TextContainer is TextContainer); 934if ((e as TextElement).TextContainer == _structuralCache.TextContainer) 944if (!(_structuralCache.TextContainer.Start is TextPointer) || 945!(_structuralCache.TextContainer.End is TextPointer)) 951TextPointer searchPosition = new TextPointer(_structuralCache.TextContainer.Start as TextPointer); 952while (elementPosition == null && ((ITextPointer)searchPosition).CompareTo(_structuralCache.TextContainer.End) < 0) 1155_textView = new TextDocumentView(this, _structuralCache.TextContainer);
MS\Internal\PtsHost\Line.cs (5)
124int cpFigure = TextContainerHelper.GetCPFromElement(_paraClient.Paragraph.StructuralCache.TextContainer, paraFigure.Element, ElementEdge.BeforeStart); 149ITextContainer textContainer = _paraClient.Paragraph.StructuralCache.TextContainer; 198ITextPointer startPosition = TextContainerHelper.GetTextPointerFromCP(_paraClient.Paragraph.StructuralCache.TextContainer, _cpPara, LogicalDirection.Forward); 199ITextPointer position = TextContainerHelper.GetTextPointerFromCP(_paraClient.Paragraph.StructuralCache.TextContainer, _cpPara + dcp, LogicalDirection.Forward); 602position = TextContainerHelper.GetTextPointerFromCP(_paraClient.Paragraph.StructuralCache.TextContainer, cp, LogicalDirection.Forward) as TextPointer;
MS\Internal\PtsHost\LineBase.cs (2)
148int cch = TextContainerHelper.GetElementLength(_paraClient.Paragraph.StructuralCache.TextContainer, element); 162int cch = TextContainerHelper.GetElementLength(_paraClient.Paragraph.StructuralCache.TextContainer, element);
MS\Internal\PtsHost\OptimalTextSource.cs (4)
96ITextContainer textContainer = _paraClient.Paragraph.StructuralCache.TextContainer; 146ITextPointer startPosition = TextContainerHelper.GetTextPointerFromCP(_paraClient.Paragraph.StructuralCache.TextContainer, _cpPara, LogicalDirection.Forward); 147ITextPointer position = TextContainerHelper.GetTextPointerFromCP(_paraClient.Paragraph.StructuralCache.TextContainer, _cpPara + dcp, LogicalDirection.Forward); 185ITextPointer position = TextContainerHelper.GetTextPointerFromCP(_paraClient.Paragraph.StructuralCache.TextContainer, _cpPara + dcp, LogicalDirection.Forward);
MS\Internal\PtsHost\TextParaClient.cs (10)
501textContentRange = new TextContentRange(dcp + dcpFirst, dcp + dcpLast, Paragraph.StructuralCache.TextContainer); 662return TextContainerHelper.GetTextPointerFromCP(Paragraph.StructuralCache.TextContainer, dcp + Paragraph.ParagraphStartCharacterPosition, direction); 676int cp = Paragraph.StructuralCache.TextContainer.Start.GetOffsetToPosition((TextPointer)position); 827int cp = Paragraph.StructuralCache.TextContainer.Start.GetOffsetToPosition(position as TextPointer); 877int cp = Paragraph.StructuralCache.TextContainer.Start.GetOffsetToPosition(position as TextPointer); 920int cp = Paragraph.StructuralCache.TextContainer.Start.GetOffsetToPosition(position as TextPointer); 1090StaticTextPointer pos = TextContainerHelper.GetStaticTextPointerFromCP(Paragraph.StructuralCache.TextContainer, cpPosition + Paragraph.ParagraphStartCharacterPosition); 1117int dcpStart = Paragraph.StructuralCache.TextContainer.Start.GetOffsetToPosition((TextPointer)start) - Paragraph.ParagraphStartCharacterPosition; 1118int dcpEnd = Paragraph.StructuralCache.TextContainer.Start.GetOffsetToPosition((TextPointer)end) - Paragraph.ParagraphStartCharacterPosition; 2034ITextPointer position = Paragraph.StructuralCache.TextContainer.CreatePointerAtOffset(Paragraph.ParagraphStartCharacterPosition + dcp, LogicalDirection.Forward);
MS\Internal\PtsHost\TextParagraph.cs (13)
579int textSize = StructuralCache.TextContainer.SymbolCount; 583StructuralCache.CurrentFormatContext.DependentMax = StructuralCache.TextContainer.CreatePointerAtOffset(dcpDependAbsolute, LogicalDirection.Backward); 763int textSize = StructuralCache.TextContainer.SymbolCount; 767StructuralCache.CurrentFormatContext.DependentMax = StructuralCache.TextContainer.CreatePointerAtOffset(dcpDependAbsolute, LogicalDirection.Backward); 878ITextPointer textPointer = TextContainerHelper.GetTextPointerFromCP(StructuralCache.TextContainer, ParagraphStartCharacterPosition + dcpFirst, LogicalDirection.Forward); 879ITextPointer textPointerContentStart = TextContainerHelper.GetContentStart(StructuralCache.TextContainer, Element); 901ITextPointer textPointerContentStart = TextContainerHelper.GetContentStart(StructuralCache.TextContainer, Element); 902ITextPointer textPointer = TextContainerHelper.GetTextPointerFromCP(StructuralCache.TextContainer, ParagraphStartCharacterPosition + dcpFirst, LogicalDirection.Forward); 954ITextPointer textPointerContentStart = TextContainerHelper.GetContentStart(StructuralCache.TextContainer, Element); 1212StaticTextPointer position = TextContainerHelper.GetStaticTextPointerFromCP(StructuralCache.TextContainer, startPosition); 1411textContentRange.Merge(new TextContentRange(cpCur, startContentPosition, StructuralCache.TextContainer)); 1423textContentRange.Merge(new TextContentRange(cpCur, dcpLast, StructuralCache.TextContainer)); 1731int cpElement = TextContainerHelper.GetCPFromElement(StructuralCache.TextContainer, Element, ElementEdge.AfterStart);
System\Windows\Controls\FlowDocumentReader.cs (1)
2034TextContainer textContainer = document.StructuralCache.TextContainer;
System\Windows\Controls\FlowDocumentScrollViewer.cs (7)
218textSelection = flowDocument.StructuralCache.TextContainer.TextSelection; 980Document.StructuralCache.TextContainer.TextView = textView; 990Document.StructuralCache.TextContainer.TextSelection == null) 992_textEditor = new TextEditor(Document.StructuralCache.TextContainer, this, false); 1196newDocument.StructuralCache.TextContainer != null && 1197newDocument.StructuralCache.TextContainer.TextSelection != null) 1961TextContainer textContainer = document.StructuralCache.TextContainer;
System\Windows\Controls\RichTextBox.cs (2)
356value.StructuralCache != null && value.StructuralCache.TextContainer != null && 357value.StructuralCache.TextContainer.TextSelection != null)
System\Windows\Controls\SinglePageViewer.cs (2)
147textSelection = flowDocument.StructuralCache.TextContainer.TextSelection; 1560TextContainer textContainer = document.StructuralCache.TextContainer;
System\Windows\Documents\FlowDocument.cs (18)
175return _structuralCache.TextContainer.Start; 190return _structuralCache.TextContainer.End; 841return new RangeContentEnumerator(_structuralCache.TextContainer.Start, _structuralCache.TextContainer.End); 925if (textPointer != null && textPointer.TextContainer != _structuralCache.TextContainer) 961TextPointer childStart = new TextPointer(_structuralCache.TextContainer.Start); 983_structuralCache.TextContainer.Changing += new EventHandler(OnTextContainerChanging); 984_structuralCache.TextContainer.Change += new TextContainerChangeEventHandler(OnTextContainerChange); 985_structuralCache.TextContainer.Highlights.Changed += new HighlightChangedEventHandler(OnHighlightChanged); 993_structuralCache.TextContainer.Changing -= new EventHandler(OnTextContainerChanging); 994_structuralCache.TextContainer.Change -= new TextContainerChangeEventHandler(OnTextContainerChange); 995_structuralCache.TextContainer.Highlights.Changed -= new HighlightChangedEventHandler(OnHighlightChanged); 1155return _structuralCache.TextContainer; 1443Invariant.Assert(sender == _structuralCache.TextContainer, "Received text change for foreign TextContainer."); 1469Invariant.Assert(sender == _structuralCache.TextContainer); 1653TextContainer textContainer = _structuralCache.TextContainer; 1701return _structuralCache.TextContainer; 1705return _structuralCache.TextContainer as TextContainer;