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