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