6 instantiations of TextSelectionProcessor
PresentationFramework (6)
MS\Internal\Annotations\Anchoring\LocatorManager.cs (1)
58TextSelectionProcessor textProcessor = new TextSelectionProcessor();
System\Windows\Annotations\AnnotationDocumentPaginator.cs (1)
331TextSelectionProcessor textSelectionProcessor = new TextSelectionProcessor();
System\Windows\Annotations\AnnotationService.cs (2)
198_locatorManager.RegisterSelectionProcessor(new TextSelectionProcessor(), typeof(TextRange)); 199_locatorManager.RegisterSelectionProcessor(new TextSelectionProcessor(), typeof(TextAnchor));
System\Windows\Controls\Primitives\DocumentViewerBase.cs (2)
1389service.LocatorManager.RegisterSelectionProcessor(new TextSelectionProcessor(), typeof(TextRange)); 1390service.LocatorManager.RegisterSelectionProcessor(new TextSelectionProcessor(), typeof(TextAnchor));
46 references to TextSelectionProcessor
PresentationFramework (46)
MS\Internal\Annotations\Anchoring\FixedTextSelectionProcessor.cs (14)
199part.NameValuePairs.Add(TextSelectionProcessor.CountAttribute, 1.ToString(NumberFormatInfo.InvariantInfo)); 200part.NameValuePairs.Add(TextSelectionProcessor.SegmentAttribute + 0.ToString(NumberFormatInfo.InvariantInfo), ",,,"); 204part.NameValuePairs.Add(TextSelectionProcessor.CountAttribute, fp.Segments.Count.ToString(NumberFormatInfo.InvariantInfo)); 211value += fp.Segments[i].Start.X.ToString(NumberFormatInfo.InvariantInfo) + TextSelectionProcessor.Separator + fp.Segments[i].Start.Y.ToString(NumberFormatInfo.InvariantInfo); 215value += TextSelectionProcessor.Separator; 217value += TextSelectionProcessor.Separator; 220value += fp.Segments[i].End.X.ToString(NumberFormatInfo.InvariantInfo) + TextSelectionProcessor.Separator + fp.Segments[i].End.Y.ToString(NumberFormatInfo.InvariantInfo); 224value += TextSelectionProcessor.Separator; 227part.NameValuePairs.Add(TextSelectionProcessor.SegmentAttribute + i.ToString(NumberFormatInfo.InvariantInfo), value); 304throw new ArgumentException(SR.Format(SR.InvalidLocatorPart, TextSelectionProcessor.CountAttribute)); 496string segmentValue = locatorPart.NameValuePairs[TextSelectionProcessor.SegmentAttribute + segmentNumber.ToString(NumberFormatInfo.InvariantInfo)]; 498throw new ArgumentException(SR.Format(SR.InvalidLocatorPart, TextSelectionProcessor.SegmentAttribute + segmentNumber.ToString(NumberFormatInfo.InvariantInfo))); 500string[] values = segmentValue.Split(TextSelectionProcessor.Separator); 502throw new ArgumentException(SR.Format(SR.InvalidLocatorPart, TextSelectionProcessor.SegmentAttribute + segmentNumber.ToString(NumberFormatInfo.InvariantInfo)));
MS\Internal\Annotations\Anchoring\LocatorManager.cs (2)
58TextSelectionProcessor textProcessor = new TextSelectionProcessor(); 291if (locator.Parts[locator.Parts.Count - 1].NameValuePairs.ContainsKey(TextSelectionProcessor.IncludeOverlaps))
MS\Internal\Annotations\Anchoring\TextSelectionProcessor.cs (3)
159part.NameValuePairs.Add(SegmentAttribute + i.ToString(NumberFormatInfo.InvariantInfo), startOffset.ToString(NumberFormatInfo.InvariantInfo) + TextSelectionProcessor.Separator + endOffset.ToString(NumberFormatInfo.InvariantInfo)); 202throw new ArgumentException(SR.Format(SR.InvalidLocatorPart, TextSelectionProcessor.CountAttribute)); 358throw new ArgumentException(SR.Format(SR.InvalidLocatorPart, TextSelectionProcessor.CountAttribute));
MS\Internal\Annotations\Anchoring\TextViewSelectionProcessor.cs (5)
146ContentLocatorPart part = new ContentLocatorPart(TextSelectionProcessor.CharacterRangeElementName);// DocumentPageViewLocatorPart(); 147part.NameValuePairs.Add(TextSelectionProcessor.CountAttribute, 1.ToString(NumberFormatInfo.InvariantInfo)); 148part.NameValuePairs.Add(TextSelectionProcessor.SegmentAttribute + 0.ToString(NumberFormatInfo.InvariantInfo), startOffset.ToString(NumberFormatInfo.InvariantInfo) + TextSelectionProcessor.Separator + endOffset.ToString(NumberFormatInfo.InvariantInfo)); 149part.NameValuePairs.Add(TextSelectionProcessor.IncludeOverlaps, Boolean.TrueString);
System\Windows\Annotations\AnnotationDocumentPaginator.cs (2)
331TextSelectionProcessor textSelectionProcessor = new TextSelectionProcessor(); 379if (locator.Parts[locator.Parts.Count - 1].NameValuePairs.ContainsKey(TextSelectionProcessor.IncludeOverlaps))
System\Windows\Annotations\AnnotationHelper.cs (9)
204TextSelectionProcessor rangeProcessor = service.LocatorManager.GetSelectionProcessor(typeof(TextRange)) as TextSelectionProcessor; 205TextSelectionProcessor anchorProcessor = service.LocatorManager.GetSelectionProcessor(typeof(TextAnchor)) as TextSelectionProcessor; 681TextSelectionProcessor rangeProcessor = service.LocatorManager.GetSelectionProcessor(typeof(TextRange)) as TextSelectionProcessor; 682TextSelectionProcessor anchorProcessor = service.LocatorManager.GetSelectionProcessor(typeof(TextAnchor)) as TextSelectionProcessor; 698locator.Parts[locator.Parts.Count - 1].NameValuePairs.Add(TextSelectionProcessor.IncludeOverlaps, Boolean.TrueString);
System\Windows\Annotations\AnnotationService.cs (4)
1537TextSelectionProcessor flowRangeProcessor = null; 1538TextSelectionProcessor flowAnchorProcessor = null; 1556flowRangeProcessor = this.LocatorManager.GetSelectionProcessor(typeof(TextRange)) as TextSelectionProcessor; 1559flowAnchorProcessor = this.LocatorManager.GetSelectionProcessor(typeof(TextAnchor)) as TextSelectionProcessor;
System\Windows\Annotations\LocatorPart.cs (7)
230_nameValues.TryGetValue(TextSelectionProcessor.IncludeOverlaps, out overlapsString); 250TextSelectionProcessor.GetMaxMinLocatorPartValues(this, out desiredStartOffset, out desiredEndOffset); 254TextSelectionProcessor.GetMaxMinLocatorPartValues(part, out startOffset, out endOffset); 291_nameValues.TryGetValue(TextSelectionProcessor.IncludeOverlaps, out overlapsString); 364res += $"{TextSelectionProcessor.CharacterRangeElementName.Name}/{corePrefix}:{AnnotationXmlConstants.Elements.Item}"; 368TextSelectionProcessor.GetMaxMinLocatorPartValues(this, out startOffset, out endOffset); 375res += $"[starts-with(@{AnnotationXmlConstants.Attributes.ItemName}, \"{TextSelectionProcessor.SegmentAttribute}\") and ((substring-before(@{AnnotationXmlConstants.Attributes.ItemValue},\",\") >= {startStr} and substring-before(@{AnnotationXmlConstants.Attributes.ItemValue},\",\") <= {endStr}) or (substring-before(@{AnnotationXmlConstants.Attributes.ItemValue},\",\") < {startStr} and substring-after(@{AnnotationXmlConstants.Attributes.ItemValue},\",\") >= {startStr}))]";