6 instantiations of TextSelectionProcessor
PresentationFramework (6)
src\Framework\MS\Internal\Annotations\Anchoring\LocatorManager.cs (1)
87TextSelectionProcessor textProcessor = new TextSelectionProcessor();
src\Framework\System\Windows\Annotations\AnnotationDocumentPaginator.cs (1)
342TextSelectionProcessor textSelectionProcessor = new TextSelectionProcessor();
src\Framework\System\Windows\Annotations\AnnotationService.cs (2)
227_locatorManager.RegisterSelectionProcessor(new TextSelectionProcessor(), typeof(TextRange)); 228_locatorManager.RegisterSelectionProcessor(new TextSelectionProcessor(), typeof(TextAnchor));
src\Framework\System\Windows\Controls\Primitives\DocumentViewerBase.cs (2)
1416service.LocatorManager.RegisterSelectionProcessor(new TextSelectionProcessor(), typeof(TextRange)); 1417service.LocatorManager.RegisterSelectionProcessor(new TextSelectionProcessor(), typeof(TextAnchor));
46 references to TextSelectionProcessor
PresentationFramework (46)
src\Framework\MS\Internal\Annotations\Anchoring\FixedTextSelectionProcessor.cs (14)
217part.NameValuePairs.Add(TextSelectionProcessor.CountAttribute, 1.ToString(NumberFormatInfo.InvariantInfo)); 218part.NameValuePairs.Add(TextSelectionProcessor.SegmentAttribute + 0.ToString(NumberFormatInfo.InvariantInfo), ",,,"); 222part.NameValuePairs.Add(TextSelectionProcessor.CountAttribute, fp.Segments.Count.ToString(NumberFormatInfo.InvariantInfo)); 229value += fp.Segments[i].Start.X.ToString(NumberFormatInfo.InvariantInfo) + TextSelectionProcessor.Separator[0] + fp.Segments[i].Start.Y.ToString(NumberFormatInfo.InvariantInfo); 233value += TextSelectionProcessor.Separator[0]; 235value += TextSelectionProcessor.Separator[0]; 238value += fp.Segments[i].End.X.ToString(NumberFormatInfo.InvariantInfo) + TextSelectionProcessor.Separator[0] + fp.Segments[i].End.Y.ToString(NumberFormatInfo.InvariantInfo); 242value += TextSelectionProcessor.Separator[0]; 245part.NameValuePairs.Add(TextSelectionProcessor.SegmentAttribute + i.ToString(NumberFormatInfo.InvariantInfo), value); 325throw new ArgumentException(SR.Get(SRID.InvalidLocatorPart, TextSelectionProcessor.CountAttribute)); 520string segmentValue = locatorPart.NameValuePairs[TextSelectionProcessor.SegmentAttribute + segmentNumber.ToString(NumberFormatInfo.InvariantInfo)]; 522throw new ArgumentException(SR.Get(SRID.InvalidLocatorPart, TextSelectionProcessor.SegmentAttribute + segmentNumber.ToString(NumberFormatInfo.InvariantInfo))); 524string[] values = segmentValue.Split(TextSelectionProcessor.Separator); 526throw new ArgumentException(SR.Get(SRID.InvalidLocatorPart, TextSelectionProcessor.SegmentAttribute + segmentNumber.ToString(NumberFormatInfo.InvariantInfo)));
src\Framework\MS\Internal\Annotations\Anchoring\LocatorManager.cs (2)
87TextSelectionProcessor textProcessor = new TextSelectionProcessor(); 329if (locator.Parts[locator.Parts.Count - 1].NameValuePairs.ContainsKey(TextSelectionProcessor.IncludeOverlaps))
src\Framework\MS\Internal\Annotations\Anchoring\TextSelectionProcessor.cs (3)
179part.NameValuePairs.Add(SegmentAttribute + i.ToString(NumberFormatInfo.InvariantInfo), startOffset.ToString(NumberFormatInfo.InvariantInfo) + TextSelectionProcessor.Separator[0] + endOffset.ToString(NumberFormatInfo.InvariantInfo)); 225throw new ArgumentException(SR.Get(SRID.InvalidLocatorPart, TextSelectionProcessor.CountAttribute)); 382throw new ArgumentException(SR.Get(SRID.InvalidLocatorPart, TextSelectionProcessor.CountAttribute));
src\Framework\MS\Internal\Annotations\Anchoring\TextViewSelectionProcessor.cs (5)
161ContentLocatorPart part = new ContentLocatorPart(TextSelectionProcessor.CharacterRangeElementName);// DocumentPageViewLocatorPart(); 162part.NameValuePairs.Add(TextSelectionProcessor.CountAttribute, 1.ToString(NumberFormatInfo.InvariantInfo)); 163part.NameValuePairs.Add(TextSelectionProcessor.SegmentAttribute + 0.ToString(NumberFormatInfo.InvariantInfo), startOffset.ToString(NumberFormatInfo.InvariantInfo) + TextSelectionProcessor.Separator[0] + endOffset.ToString(NumberFormatInfo.InvariantInfo)); 164part.NameValuePairs.Add(TextSelectionProcessor.IncludeOverlaps, Boolean.TrueString);
src\Framework\System\Windows\Annotations\AnnotationDocumentPaginator.cs (2)
342TextSelectionProcessor textSelectionProcessor = new TextSelectionProcessor(); 391if (locator.Parts[locator.Parts.Count - 1].NameValuePairs.ContainsKey(TextSelectionProcessor.IncludeOverlaps))
src\Framework\System\Windows\Annotations\AnnotationHelper.cs (9)
224TextSelectionProcessor rangeProcessor = service.LocatorManager.GetSelectionProcessor(typeof(TextRange)) as TextSelectionProcessor; 225TextSelectionProcessor anchorProcessor = service.LocatorManager.GetSelectionProcessor(typeof(TextAnchor)) as TextSelectionProcessor; 702TextSelectionProcessor rangeProcessor = service.LocatorManager.GetSelectionProcessor(typeof(TextRange)) as TextSelectionProcessor; 703TextSelectionProcessor anchorProcessor = service.LocatorManager.GetSelectionProcessor(typeof(TextAnchor)) as TextSelectionProcessor; 719locator.Parts[locator.Parts.Count - 1].NameValuePairs.Add(TextSelectionProcessor.IncludeOverlaps, Boolean.TrueString);
src\Framework\System\Windows\Annotations\AnnotationService.cs (4)
1594TextSelectionProcessor flowRangeProcessor = null; 1595TextSelectionProcessor flowAnchorProcessor = null; 1613flowRangeProcessor = this.LocatorManager.GetSelectionProcessor(typeof(TextRange)) as TextSelectionProcessor; 1616flowAnchorProcessor = this.LocatorManager.GetSelectionProcessor(typeof(TextAnchor)) as TextSelectionProcessor;
src\Framework\System\Windows\Annotations\LocatorPart.cs (7)
241_nameValues.TryGetValue(TextSelectionProcessor.IncludeOverlaps, out overlapsString); 261TextSelectionProcessor.GetMaxMinLocatorPartValues(this, out desiredStartOffset, out desiredEndOffset); 265TextSelectionProcessor.GetMaxMinLocatorPartValues(part, out startOffset, out endOffset); 302_nameValues.TryGetValue(TextSelectionProcessor.IncludeOverlaps, out overlapsString); 375res += TextSelectionProcessor.CharacterRangeElementName.Name + "/" + corePrefix + ":"+AnnotationXmlConstants.Elements.Item; 379TextSelectionProcessor.GetMaxMinLocatorPartValues(this, out startOffset, out endOffset); 386res += "[starts-with(@" + AnnotationXmlConstants.Attributes.ItemName + ", \"" + TextSelectionProcessor.SegmentAttribute + "\") and " +