66 references to TextContainerHelper
PresentationFramework (66)
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\ContainerParaClient.cs (3)
280textContentRange = TextContainerHelper.GetTextContentRangeForTextElement(elementOwner); 299textContentRange.Merge(TextContainerHelper.GetTextContentRangeForTextElementEdge( 307textContentRange.Merge(TextContainerHelper.GetTextContentRangeForTextElementEdge(
MS\Internal\PtsHost\ContainerParagraph.cs (8)
80int cpCurrent = TextContainerHelper.GetCPFromElement(StructuralCache.TextContainer, Element, ElementEdge.AfterStart); 142ITextPointer textPointer = TextContainerHelper.GetContentStart(StructuralCache.TextContainer, Element); 231ITextPointer textPointer = TextContainerHelper.GetTextPointerFromCP(StructuralCache.TextContainer, prevParagraph.ParagraphEndCharacterPosition, LogicalDirection.Forward); 356TextContainerHelper.GetCPFromElement(StructuralCache.TextContainer, Element, ElementEdge.BeforeStart), LastFormatCch); 363int dcpContent = TextContainerHelper.GetCPFromElement(StructuralCache.TextContainer, Element, ElementEdge.AfterStart); 907if (startPosition <= openEdgeCp + TextContainerHelper.ElementEdgeCharacterLength) // If before or equal to content start, whole para content is invalid 966return (startPosition < openEdgeCp + TextContainerHelper.ElementEdgeCharacterLength); 1130int cpContent = TextContainerHelper.GetCPFromElement(StructuralCache.TextContainer, Element, ElementEdge.AfterStart);
MS\Internal\PtsHost\FigureParaClient.cs (2)
533textContentRange.Merge(TextContainerHelper.GetTextContentRangeForTextElementEdge( 541textContentRange.Merge(TextContainerHelper.GetTextContentRangeForTextElementEdge(
MS\Internal\PtsHost\FloaterParaClient.cs (2)
541textContentRange.Merge(TextContainerHelper.GetTextContentRangeForTextElementEdge( 549textContentRange.Merge(TextContainerHelper.GetTextContentRangeForTextElementEdge(
MS\Internal\PtsHost\Line.cs (4)
116int cpFigure = TextContainerHelper.GetCPFromElement(_paraClient.Paragraph.StructuralCache.TextContainer, paraFigure.Element, ElementEdge.BeforeStart); 190ITextPointer startPosition = TextContainerHelper.GetTextPointerFromCP(_paraClient.Paragraph.StructuralCache.TextContainer, _cpPara, LogicalDirection.Forward); 191ITextPointer position = TextContainerHelper.GetTextPointerFromCP(_paraClient.Paragraph.StructuralCache.TextContainer, _cpPara + dcp, LogicalDirection.Forward); 593position = TextContainerHelper.GetTextPointerFromCP(_paraClient.Paragraph.StructuralCache.TextContainer, cp, LogicalDirection.Forward) as TextPointer;
MS\Internal\PtsHost\LineBase.cs (4)
144int cch = TextContainerHelper.GetElementLength(_paraClient.Paragraph.StructuralCache.TextContainer, element); 158int cch = TextContainerHelper.GetElementLength(_paraClient.Paragraph.StructuralCache.TextContainer, element); 311run = new InlineObjectRun(TextContainerHelper.EmbeddedObjectLength, (UIElement)embeddedObject, textProps, _paraClient.Paragraph as TextParagraph); 316run = new TextHidden(TextContainerHelper.EmbeddedObjectLength);
MS\Internal\PtsHost\OptimalTextSource.cs (3)
138ITextPointer startPosition = TextContainerHelper.GetTextPointerFromCP(_paraClient.Paragraph.StructuralCache.TextContainer, _cpPara, LogicalDirection.Forward); 139ITextPointer position = TextContainerHelper.GetTextPointerFromCP(_paraClient.Paragraph.StructuralCache.TextContainer, _cpPara + dcp, LogicalDirection.Forward); 177ITextPointer position = TextContainerHelper.GetTextPointerFromCP(_paraClient.Paragraph.StructuralCache.TextContainer, _cpPara + dcp, LogicalDirection.Forward);
MS\Internal\PtsHost\SubpageParaClient.cs (2)
514textContentRange.Merge(TextContainerHelper.GetTextContentRangeForTextElementEdge( 522textContentRange.Merge(TextContainerHelper.GetTextContentRangeForTextElementEdge(
MS\Internal\PtsHost\TableParaClient.cs (7)
520range.Merge(TextContainerHelper.GetTextContentRangeForTextElementEdge( 536range.Merge(TextContainerHelper.GetTextContentRangeForTextElementEdge( 539range.Merge(TextContainerHelper.GetTextContentRangeForTextElementEdge( 566range.Merge(TextContainerHelper.GetTextContentRangeForTextElementEdge( 571range.Merge(TextContainerHelper.GetTextContentRangeForTextElementEdge( 578range.Merge(TextContainerHelper.GetTextContentRangeForTextElementEdge( 585range = TextContainerHelper.GetTextContentRangeForTextElement(TableParagraph.Table);
MS\Internal\PtsHost\TextParaClient.cs (2)
662return TextContainerHelper.GetTextPointerFromCP(Paragraph.StructuralCache.TextContainer, dcp + Paragraph.ParagraphStartCharacterPosition, direction); 1090StaticTextPointer pos = TextContainerHelper.GetStaticTextPointerFromCP(Paragraph.StructuralCache.TextContainer, cpPosition + Paragraph.ParagraphStartCharacterPosition);
MS\Internal\PtsHost\TextParagraph.cs (7)
862ITextPointer textPointer = TextContainerHelper.GetTextPointerFromCP(StructuralCache.TextContainer, ParagraphStartCharacterPosition + dcpFirst, LogicalDirection.Forward); 863ITextPointer textPointerContentStart = TextContainerHelper.GetContentStart(StructuralCache.TextContainer, Element); 885ITextPointer textPointerContentStart = TextContainerHelper.GetContentStart(StructuralCache.TextContainer, Element); 886ITextPointer textPointer = TextContainerHelper.GetTextPointerFromCP(StructuralCache.TextContainer, ParagraphStartCharacterPosition + dcpFirst, LogicalDirection.Forward); 938ITextPointer textPointerContentStart = TextContainerHelper.GetContentStart(StructuralCache.TextContainer, Element); 1190StaticTextPointer position = TextContainerHelper.GetStaticTextPointerFromCP(StructuralCache.TextContainer, startPosition); 1709int cpElement = TextContainerHelper.GetCPFromElement(StructuralCache.TextContainer, Element, ElementEdge.AfterStart);
MS\Internal\PtsHost\UIElementParaClient.cs (1)
178return TextContainerHelper.GetTextContentRangeForTextElement(elementOwner);
MS\Internal\Text\ComplexLine.cs (1)
533run = new InlineObject(dcp, TextContainerHelper.EmbeddedObjectLength, (UIElement)element, textProps, _owner);
System\Windows\Automation\Peers\DocumentAutomationPeer.cs (1)
64return TextContainerHelper.GetAutomationPeersFromRange(_childrenStart, _childrenEnd, textContainer.Start);
System\Windows\Automation\Peers\RichTextBoxAutomationPeer.cs (2)
73return TextContainerHelper.GetAutomationPeersFromRange(owner.TextContainer.Start, owner.TextContainer.End, null); 85return TextContainerHelper.GetAutomationPeersFromRange(start, end, owner.TextContainer.Start);
System\Windows\Automation\Peers\TextBlockAutomationPeer.cs (1)
38peers = TextContainerHelper.GetAutomationPeersFromRange(owner.TextContainer.Start, owner.TextContainer.End, null);
System\Windows\Automation\Peers\TextElementAutomationPeer.cs (2)
40return TextContainerHelper.GetAutomationPeersFromRange(textElement.ContentStart, textElement.ContentEnd, null); 211return TextContainerHelper.GetAutomationPeersFromRange(start, end, textElement.ContentStart);
System\Windows\Controls\TextRangeAdaptor.cs (1)
1381AutomationPeer 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);