66 references to TextContainerHelper
PresentationFramework (66)
MS\Internal\PtsHost\BaseParagraph.cs (6)
182int openEdgeCp = TextContainerHelper.GetCPFromElement(StructuralCache.TextContainer, Element, ElementEdge.BeforeStart); 253return TextContainerHelper.GetCPFromElement(StructuralCache.TextContainer, Element, ElementEdge.AfterStart); 257return TextContainerHelper.GetCPFromElement(StructuralCache.TextContainer, Element, ElementEdge.BeforeStart); 274return TextContainerHelper.GetCPFromElement(StructuralCache.TextContainer, Element, ElementEdge.BeforeEnd); 278return TextContainerHelper.GetCPFromElement(StructuralCache.TextContainer, Element, ElementEdge.AfterEnd); 297int cch = TextContainerHelper.GetCchFromElement(StructuralCache.TextContainer, Element);
MS\Internal\PtsHost\CellParaClient.cs (2)
162CellParagraph.InvalidateStructure(TextContainerHelper.GetCPFromElement(CellParagraph.StructuralCache.TextContainer, CellParagraph.Element, ElementEdge.BeforeStart)); 231CellParagraph.InvalidateStructure(TextContainerHelper.GetCPFromElement(CellParagraph.StructuralCache.TextContainer, CellParagraph.Element, ElementEdge.BeforeStart));
MS\Internal\PtsHost\ContainerParaClient.cs (3)
285textContentRange = TextContainerHelper.GetTextContentRangeForTextElement(elementOwner); 304textContentRange.Merge(TextContainerHelper.GetTextContentRangeForTextElementEdge( 312textContentRange.Merge(TextContainerHelper.GetTextContentRangeForTextElementEdge(
MS\Internal\PtsHost\ContainerParagraph.cs (8)
98int cpCurrent = TextContainerHelper.GetCPFromElement(StructuralCache.TextContainer, Element, ElementEdge.AfterStart); 160ITextPointer textPointer = TextContainerHelper.GetContentStart(StructuralCache.TextContainer, Element); 249ITextPointer textPointer = TextContainerHelper.GetTextPointerFromCP(StructuralCache.TextContainer, prevParagraph.ParagraphEndCharacterPosition, LogicalDirection.Forward); 374TextContainerHelper.GetCPFromElement(StructuralCache.TextContainer, Element, ElementEdge.BeforeStart), LastFormatCch); 381int dcpContent = TextContainerHelper.GetCPFromElement(StructuralCache.TextContainer, Element, ElementEdge.AfterStart); 927if (startPosition <= openEdgeCp + TextContainerHelper.ElementEdgeCharacterLength) // If before or equal to content start, whole para content is invalid 986return (startPosition < openEdgeCp + TextContainerHelper.ElementEdgeCharacterLength); 1150int cpContent = TextContainerHelper.GetCPFromElement(StructuralCache.TextContainer, Element, ElementEdge.AfterStart);
MS\Internal\PtsHost\FigureParaClient.cs (2)
538textContentRange.Merge(TextContainerHelper.GetTextContentRangeForTextElementEdge( 546textContentRange.Merge(TextContainerHelper.GetTextContentRangeForTextElementEdge(
MS\Internal\PtsHost\FloaterParaClient.cs (2)
545textContentRange.Merge(TextContainerHelper.GetTextContentRangeForTextElementEdge( 553textContentRange.Merge(TextContainerHelper.GetTextContentRangeForTextElementEdge(
MS\Internal\PtsHost\Line.cs (4)
130int cpFigure = TextContainerHelper.GetCPFromElement(_paraClient.Paragraph.StructuralCache.TextContainer, paraFigure.Element, ElementEdge.BeforeStart); 204ITextPointer startPosition = TextContainerHelper.GetTextPointerFromCP(_paraClient.Paragraph.StructuralCache.TextContainer, _cpPara, LogicalDirection.Forward); 205ITextPointer position = TextContainerHelper.GetTextPointerFromCP(_paraClient.Paragraph.StructuralCache.TextContainer, _cpPara + dcp, LogicalDirection.Forward); 608position = TextContainerHelper.GetTextPointerFromCP(_paraClient.Paragraph.StructuralCache.TextContainer, cp, LogicalDirection.Forward) as TextPointer;
MS\Internal\PtsHost\LineBase.cs (4)
154int cch = TextContainerHelper.GetElementLength(_paraClient.Paragraph.StructuralCache.TextContainer, element); 168int cch = TextContainerHelper.GetElementLength(_paraClient.Paragraph.StructuralCache.TextContainer, element); 321run = new InlineObjectRun(TextContainerHelper.EmbeddedObjectLength, (UIElement)embeddedObject, textProps, _paraClient.Paragraph as TextParagraph); 326run = new TextHidden(TextContainerHelper.EmbeddedObjectLength);
MS\Internal\PtsHost\OptimalTextSource.cs (3)
153ITextPointer startPosition = TextContainerHelper.GetTextPointerFromCP(_paraClient.Paragraph.StructuralCache.TextContainer, _cpPara, LogicalDirection.Forward); 154ITextPointer position = TextContainerHelper.GetTextPointerFromCP(_paraClient.Paragraph.StructuralCache.TextContainer, _cpPara + dcp, LogicalDirection.Forward); 192ITextPointer position = TextContainerHelper.GetTextPointerFromCP(_paraClient.Paragraph.StructuralCache.TextContainer, _cpPara + dcp, LogicalDirection.Forward);
MS\Internal\PtsHost\SubpageParaClient.cs (2)
518textContentRange.Merge(TextContainerHelper.GetTextContentRangeForTextElementEdge( 526textContentRange.Merge(TextContainerHelper.GetTextContentRangeForTextElementEdge(
MS\Internal\PtsHost\TableParaClient.cs (7)
526range.Merge(TextContainerHelper.GetTextContentRangeForTextElementEdge( 542range.Merge(TextContainerHelper.GetTextContentRangeForTextElementEdge( 545range.Merge(TextContainerHelper.GetTextContentRangeForTextElementEdge( 572range.Merge(TextContainerHelper.GetTextContentRangeForTextElementEdge( 577range.Merge(TextContainerHelper.GetTextContentRangeForTextElementEdge( 584range.Merge(TextContainerHelper.GetTextContentRangeForTextElementEdge( 591range = TextContainerHelper.GetTextContentRangeForTextElement(TableParagraph.Table);
MS\Internal\PtsHost\TextParaClient.cs (2)
668return TextContainerHelper.GetTextPointerFromCP(Paragraph.StructuralCache.TextContainer, dcp + Paragraph.ParagraphStartCharacterPosition, direction); 1096StaticTextPointer pos = TextContainerHelper.GetStaticTextPointerFromCP(Paragraph.StructuralCache.TextContainer, cpPosition + Paragraph.ParagraphStartCharacterPosition);
MS\Internal\PtsHost\TextParagraph.cs (7)
885ITextPointer textPointer = TextContainerHelper.GetTextPointerFromCP(StructuralCache.TextContainer, ParagraphStartCharacterPosition + dcpFirst, LogicalDirection.Forward); 886ITextPointer textPointerContentStart = TextContainerHelper.GetContentStart(StructuralCache.TextContainer, Element); 908ITextPointer textPointerContentStart = TextContainerHelper.GetContentStart(StructuralCache.TextContainer, Element); 909ITextPointer textPointer = TextContainerHelper.GetTextPointerFromCP(StructuralCache.TextContainer, ParagraphStartCharacterPosition + dcpFirst, LogicalDirection.Forward); 961ITextPointer textPointerContentStart = TextContainerHelper.GetContentStart(StructuralCache.TextContainer, Element); 1219StaticTextPointer position = TextContainerHelper.GetStaticTextPointerFromCP(StructuralCache.TextContainer, startPosition); 1738int cpElement = TextContainerHelper.GetCPFromElement(StructuralCache.TextContainer, Element, ElementEdge.AfterStart);
MS\Internal\PtsHost\UIElementParaClient.cs (1)
182return TextContainerHelper.GetTextContentRangeForTextElement(elementOwner);
MS\Internal\Text\ComplexLine.cs (1)
538run = new InlineObject(dcp, TextContainerHelper.EmbeddedObjectLength, (UIElement)element, textProps, _owner);
System\Windows\Automation\Peers\DocumentAutomationPeer.cs (1)
66return TextContainerHelper.GetAutomationPeersFromRange(_childrenStart, _childrenEnd, textContainer.Start);
System\Windows\Automation\Peers\RichTextBoxAutomationPeer.cs (2)
84return TextContainerHelper.GetAutomationPeersFromRange(owner.TextContainer.Start, owner.TextContainer.End, null); 96return TextContainerHelper.GetAutomationPeersFromRange(start, end, owner.TextContainer.Start);
System\Windows\Automation\Peers\TextBlockAutomationPeer.cs (1)
40peers = TextContainerHelper.GetAutomationPeersFromRange(owner.TextContainer.Start, owner.TextContainer.End, null);
System\Windows\Automation\Peers\TextElementAutomationPeer.cs (2)
44return TextContainerHelper.GetAutomationPeersFromRange(textElement.ContentStart, textElement.ContentEnd, null); 215return TextContainerHelper.GetAutomationPeersFromRange(start, end, textElement.ContentStart);
System\Windows\Controls\TextRangeAdaptor.cs (1)
1383AutomationPeer peer = TextContainerHelper.GetEnclosingAutomationPeer(start, end, out elementStart, out elementEnd);
System\Windows\Documents\FlowDocument.cs (5)
921textPointer = TextContainerHelper.GetTextPointerForEmbeddedObject((FrameworkElement)element); 955int childStartIndex = TextContainerHelper.GetCPFromEmbeddedObject(child, ElementEdge.BeforeStart); 964childEnd.MoveByOffset(TextContainerHelper.EmbeddedObjectLength); 967DirtyTextRange dtr = new DirtyTextRange(childStartIndex, TextContainerHelper.EmbeddedObjectLength, TextContainerHelper.EmbeddedObjectLength);