96 references to TextContainer
PresentationFramework (96)
src\Framework\MS\Internal\Documents\ContentHostHelper.cs (1)
94
ITextView textView = flowDocument.StructuralCache.
TextContainer
.TextView;
src\Framework\MS\Internal\Documents\FlowDocumentPaginator.cs (2)
242
if (flowContentPosition.TextContainer != _document.StructuralCache.
TextContainer
)
302
if (flowContentPosition.TextContainer != _document.StructuralCache.
TextContainer
)
src\Framework\MS\Internal\Documents\FlowDocumentView.cs (2)
754
_textView = new DocumentPageTextView(this, _document.StructuralCache.
TextContainer
);
762
service = Document.StructuralCache.
TextContainer
as TextContainer;
src\Framework\MS\Internal\Documents\IFlowDocumentViewer.cs (4)
208
if(textSelection.Start != null && textSelection.Start.TextContainer == flowDocument.StructuralCache.
TextContainer
)
224
ITextSelection textSelection = Document.StructuralCache.
TextContainer
.TextSelection;
561
newTextSelection.AnchorPosition.TextContainer == flowDocument.StructuralCache.
TextContainer
)
563
ITextSelection textSelection = flowDocument.StructuralCache.
TextContainer
.TextSelection;
src\Framework\MS\Internal\PtsHost\BackgroundFormatInfo.cs (1)
58
_cchAllText = _structuralCache.
TextContainer
.SymbolCount;
src\Framework\MS\Internal\PtsHost\BaseParagraph.cs (6)
186
int openEdgeCp = TextContainerHelper.GetCPFromElement(StructuralCache.
TextContainer
, Element, ElementEdge.BeforeStart);
257
return TextContainerHelper.GetCPFromElement(StructuralCache.
TextContainer
, Element, ElementEdge.AfterStart);
261
return TextContainerHelper.GetCPFromElement(StructuralCache.
TextContainer
, Element, ElementEdge.BeforeStart);
278
return TextContainerHelper.GetCPFromElement(StructuralCache.
TextContainer
, Element, ElementEdge.BeforeEnd);
282
return TextContainerHelper.GetCPFromElement(StructuralCache.
TextContainer
, Element, ElementEdge.AfterEnd);
301
int cch = TextContainerHelper.GetCchFromElement(StructuralCache.
TextContainer
, Element);
src\Framework\MS\Internal\PtsHost\CellParaClient.cs (2)
179
CellParagraph.InvalidateStructure(TextContainerHelper.GetCPFromElement(CellParagraph.StructuralCache.
TextContainer
, CellParagraph.Element, ElementEdge.BeforeStart));
253
CellParagraph.InvalidateStructure(TextContainerHelper.GetCPFromElement(CellParagraph.StructuralCache.
TextContainer
, CellParagraph.Element, ElementEdge.BeforeStart));
src\Framework\MS\Internal\PtsHost\ContainerParagraph.cs (6)
102
int cpCurrent = TextContainerHelper.GetCPFromElement(StructuralCache.
TextContainer
, Element, ElementEdge.AfterStart);
164
ITextPointer textPointer = TextContainerHelper.GetContentStart(StructuralCache.
TextContainer
, Element);
254
ITextPointer textPointer = TextContainerHelper.GetTextPointerFromCP(StructuralCache.
TextContainer
, prevParagraph.ParagraphEndCharacterPosition, LogicalDirection.Forward);
379
TextContainerHelper.GetCPFromElement(StructuralCache.
TextContainer
, Element, ElementEdge.BeforeStart), LastFormatCch);
386
int dcpContent = TextContainerHelper.GetCPFromElement(StructuralCache.
TextContainer
, Element, ElementEdge.AfterStart);
1176
int cpContent = TextContainerHelper.GetCPFromElement(StructuralCache.
TextContainer
, Element, ElementEdge.AfterStart);
src\Framework\MS\Internal\PtsHost\FlowDocumentPage.cs (8)
331
int elementStartOffset = _structuralCache.
TextContainer
.Start.GetOffsetToPosition(elementStart);
957
Debug.Assert(_structuralCache.
TextContainer
is TextContainer);
964
if ((e as TextElement).TextContainer == _structuralCache.
TextContainer
)
974
if (!(_structuralCache.
TextContainer
.Start is TextPointer) ||
975
!(_structuralCache.
TextContainer
.End is TextPointer))
981
TextPointer searchPosition = new TextPointer(_structuralCache.
TextContainer
.Start as TextPointer);
982
while (elementPosition == null && ((ITextPointer)searchPosition).CompareTo(_structuralCache.
TextContainer
.End) < 0)
1188
_textView = new TextDocumentView(this, _structuralCache.
TextContainer
);
src\Framework\MS\Internal\PtsHost\Line.cs (5)
133
int cpFigure = TextContainerHelper.GetCPFromElement(_paraClient.Paragraph.StructuralCache.
TextContainer
, paraFigure.Element, ElementEdge.BeforeStart);
158
ITextContainer textContainer = _paraClient.Paragraph.StructuralCache.
TextContainer
;
207
ITextPointer startPosition = TextContainerHelper.GetTextPointerFromCP(_paraClient.Paragraph.StructuralCache.
TextContainer
, _cpPara, LogicalDirection.Forward);
208
ITextPointer position = TextContainerHelper.GetTextPointerFromCP(_paraClient.Paragraph.StructuralCache.
TextContainer
, _cpPara + dcp, LogicalDirection.Forward);
611
position = TextContainerHelper.GetTextPointerFromCP(_paraClient.Paragraph.StructuralCache.
TextContainer
, cp, LogicalDirection.Forward) as TextPointer;
src\Framework\MS\Internal\PtsHost\LineBase.cs (2)
159
int cch = TextContainerHelper.GetElementLength(_paraClient.Paragraph.StructuralCache.
TextContainer
, element);
173
int cch = TextContainerHelper.GetElementLength(_paraClient.Paragraph.StructuralCache.
TextContainer
, element);
src\Framework\MS\Internal\PtsHost\OptimalTextSource.cs (4)
107
ITextContainer textContainer = _paraClient.Paragraph.StructuralCache.
TextContainer
;
157
ITextPointer startPosition = TextContainerHelper.GetTextPointerFromCP(_paraClient.Paragraph.StructuralCache.
TextContainer
, _cpPara, LogicalDirection.Forward);
158
ITextPointer position = TextContainerHelper.GetTextPointerFromCP(_paraClient.Paragraph.StructuralCache.
TextContainer
, _cpPara + dcp, LogicalDirection.Forward);
196
ITextPointer position = TextContainerHelper.GetTextPointerFromCP(_paraClient.Paragraph.StructuralCache.
TextContainer
, _cpPara + dcp, LogicalDirection.Forward);
src\Framework\MS\Internal\PtsHost\TextParaClient.cs (10)
581
textContentRange = new TextContentRange(dcp + dcpFirst, dcp + dcpLast, Paragraph.StructuralCache.
TextContainer
);
758
return TextContainerHelper.GetTextPointerFromCP(Paragraph.StructuralCache.
TextContainer
, dcp + Paragraph.ParagraphStartCharacterPosition, direction);
782
int cp = Paragraph.StructuralCache.
TextContainer
.Start.GetOffsetToPosition((TextPointer)position);
952
int cp = Paragraph.StructuralCache.
TextContainer
.Start.GetOffsetToPosition(position as TextPointer);
1012
int cp = Paragraph.StructuralCache.
TextContainer
.Start.GetOffsetToPosition(position as TextPointer);
1065
int cp = Paragraph.StructuralCache.
TextContainer
.Start.GetOffsetToPosition(position as TextPointer);
1244
StaticTextPointer pos = TextContainerHelper.GetStaticTextPointerFromCP(Paragraph.StructuralCache.
TextContainer
, cpPosition + Paragraph.ParagraphStartCharacterPosition);
1280
int dcpStart = Paragraph.StructuralCache.
TextContainer
.Start.GetOffsetToPosition((TextPointer)start) - Paragraph.ParagraphStartCharacterPosition;
1281
int dcpEnd = Paragraph.StructuralCache.
TextContainer
.Start.GetOffsetToPosition((TextPointer)end) - Paragraph.ParagraphStartCharacterPosition;
2254
ITextPointer position = Paragraph.StructuralCache.
TextContainer
.CreatePointerAtOffset(Paragraph.ParagraphStartCharacterPosition + dcp, LogicalDirection.Forward);
src\Framework\MS\Internal\PtsHost\TextParagraph.cs (13)
592
int textSize = StructuralCache.
TextContainer
.SymbolCount;
596
StructuralCache.CurrentFormatContext.DependentMax = StructuralCache.
TextContainer
.CreatePointerAtOffset(dcpDependAbsolute, LogicalDirection.Backward);
777
int textSize = StructuralCache.
TextContainer
.SymbolCount;
781
StructuralCache.CurrentFormatContext.DependentMax = StructuralCache.
TextContainer
.CreatePointerAtOffset(dcpDependAbsolute, LogicalDirection.Backward);
892
ITextPointer textPointer = TextContainerHelper.GetTextPointerFromCP(StructuralCache.
TextContainer
, ParagraphStartCharacterPosition + dcpFirst, LogicalDirection.Forward);
893
ITextPointer textPointerContentStart = TextContainerHelper.GetContentStart(StructuralCache.
TextContainer
, Element);
915
ITextPointer textPointerContentStart = TextContainerHelper.GetContentStart(StructuralCache.
TextContainer
, Element);
916
ITextPointer textPointer = TextContainerHelper.GetTextPointerFromCP(StructuralCache.
TextContainer
, ParagraphStartCharacterPosition + dcpFirst, LogicalDirection.Forward);
969
ITextPointer textPointerContentStart = TextContainerHelper.GetContentStart(StructuralCache.
TextContainer
, Element);
1227
StaticTextPointer position = TextContainerHelper.GetStaticTextPointerFromCP(StructuralCache.
TextContainer
, startPosition);
1426
textContentRange.Merge(new TextContentRange(cpCur, startContentPosition, StructuralCache.
TextContainer
));
1438
textContentRange.Merge(new TextContentRange(cpCur, dcpLast, StructuralCache.
TextContainer
));
1746
int cpElement = TextContainerHelper.GetCPFromElement(StructuralCache.
TextContainer
, Element, ElementEdge.AfterStart);
src\Framework\System\Windows\Controls\FlowDocumentReader.cs (1)
2045
TextContainer textContainer = document.StructuralCache.
TextContainer
;
src\Framework\System\Windows\Controls\FlowDocumentScrollViewer.cs (7)
222
textSelection = flowDocument.StructuralCache.
TextContainer
.TextSelection;
991
Document.StructuralCache.
TextContainer
.TextView = textView;
1001
Document.StructuralCache.
TextContainer
.TextSelection == null)
1003
_textEditor = new TextEditor(Document.StructuralCache.
TextContainer
, this, false);
1207
newDocument.StructuralCache.
TextContainer
!= null &&
1208
newDocument.StructuralCache.
TextContainer
.TextSelection != null)
1978
TextContainer textContainer = document.StructuralCache.
TextContainer
;
src\Framework\System\Windows\Controls\RichTextBox.cs (2)
371
value.StructuralCache != null && value.StructuralCache.
TextContainer
!= null &&
372
value.StructuralCache.
TextContainer
.TextSelection != null)
src\Framework\System\Windows\Controls\SinglePageViewer.cs (2)
152
textSelection = flowDocument.StructuralCache.
TextContainer
.TextSelection;
1570
TextContainer textContainer = document.StructuralCache.
TextContainer
;
src\Framework\System\Windows\Documents\FlowDocument.cs (18)
183
return _structuralCache.
TextContainer
.Start;
198
return _structuralCache.
TextContainer
.End;
849
return new RangeContentEnumerator(_structuralCache.
TextContainer
.Start, _structuralCache.
TextContainer
.End);
933
if (textPointer != null && textPointer.TextContainer != _structuralCache.
TextContainer
)
969
TextPointer childStart = new TextPointer(_structuralCache.
TextContainer
.Start);
991
_structuralCache.
TextContainer
.Changing += new EventHandler(OnTextContainerChanging);
992
_structuralCache.
TextContainer
.Change += new TextContainerChangeEventHandler(OnTextContainerChange);
993
_structuralCache.
TextContainer
.Highlights.Changed += new HighlightChangedEventHandler(OnHighlightChanged);
1001
_structuralCache.
TextContainer
.Changing -= new EventHandler(OnTextContainerChanging);
1002
_structuralCache.
TextContainer
.Change -= new TextContainerChangeEventHandler(OnTextContainerChange);
1003
_structuralCache.
TextContainer
.Highlights.Changed -= new HighlightChangedEventHandler(OnHighlightChanged);
1163
return _structuralCache.
TextContainer
;
1452
Invariant.Assert(sender == _structuralCache.
TextContainer
, "Received text change for foreign TextContainer.");
1478
Invariant.Assert(sender == _structuralCache.
TextContainer
);
1665
TextContainer textContainer = _structuralCache.
TextContainer
;
1716
return _structuralCache.
TextContainer
;
1720
return _structuralCache.
TextContainer
as TextContainer;