6 instantiations of TextSelectionProcessor
PresentationFramework (6)
MS\Internal\Annotations\Anchoring\LocatorManager.cs (1)
57
TextSelectionProcessor textProcessor = new
TextSelectionProcessor
();
System\Windows\Annotations\AnnotationDocumentPaginator.cs (1)
330
TextSelectionProcessor textSelectionProcessor = new
TextSelectionProcessor
();
System\Windows\Annotations\AnnotationService.cs (2)
197
_locatorManager.RegisterSelectionProcessor(new
TextSelectionProcessor
(), typeof(TextRange));
198
_locatorManager.RegisterSelectionProcessor(new
TextSelectionProcessor
(), typeof(TextAnchor));
System\Windows\Controls\Primitives\DocumentViewerBase.cs (2)
1373
service.LocatorManager.RegisterSelectionProcessor(new
TextSelectionProcessor
(), typeof(TextRange));
1374
service.LocatorManager.RegisterSelectionProcessor(new
TextSelectionProcessor
(), typeof(TextAnchor));
46 references to TextSelectionProcessor
PresentationFramework (46)
MS\Internal\Annotations\Anchoring\FixedTextSelectionProcessor.cs (14)
198
part.NameValuePairs.Add(
TextSelectionProcessor
.CountAttribute, 1.ToString(NumberFormatInfo.InvariantInfo));
199
part.NameValuePairs.Add(
TextSelectionProcessor
.SegmentAttribute + 0.ToString(NumberFormatInfo.InvariantInfo), ",,,");
203
part.NameValuePairs.Add(
TextSelectionProcessor
.CountAttribute, fp.Segments.Count.ToString(NumberFormatInfo.InvariantInfo));
210
value += fp.Segments[i].Start.X.ToString(NumberFormatInfo.InvariantInfo) +
TextSelectionProcessor
.Separator + fp.Segments[i].Start.Y.ToString(NumberFormatInfo.InvariantInfo);
214
value +=
TextSelectionProcessor
.Separator;
216
value +=
TextSelectionProcessor
.Separator;
219
value += fp.Segments[i].End.X.ToString(NumberFormatInfo.InvariantInfo) +
TextSelectionProcessor
.Separator + fp.Segments[i].End.Y.ToString(NumberFormatInfo.InvariantInfo);
223
value +=
TextSelectionProcessor
.Separator;
226
part.NameValuePairs.Add(
TextSelectionProcessor
.SegmentAttribute + i.ToString(NumberFormatInfo.InvariantInfo), value);
303
throw new ArgumentException(SR.Format(SR.InvalidLocatorPart,
TextSelectionProcessor
.CountAttribute));
495
string segmentValue = locatorPart.NameValuePairs[
TextSelectionProcessor
.SegmentAttribute + segmentNumber.ToString(NumberFormatInfo.InvariantInfo)];
497
throw new ArgumentException(SR.Format(SR.InvalidLocatorPart,
TextSelectionProcessor
.SegmentAttribute + segmentNumber.ToString(NumberFormatInfo.InvariantInfo)));
502
if (segmentValueSpan.Split(splitRegions,
TextSelectionProcessor
.Separator) != 4)
503
throw new ArgumentException(SR.Format(SR.InvalidLocatorPart,
TextSelectionProcessor
.SegmentAttribute + segmentNumber.ToString(NumberFormatInfo.InvariantInfo)));
MS\Internal\Annotations\Anchoring\LocatorManager.cs (2)
57
TextSelectionProcessor
textProcessor = new TextSelectionProcessor();
290
if (locator.Parts[locator.Parts.Count - 1].NameValuePairs.ContainsKey(
TextSelectionProcessor
.IncludeOverlaps))
MS\Internal\Annotations\Anchoring\TextSelectionProcessor.cs (3)
158
part.NameValuePairs.Add(SegmentAttribute + i.ToString(NumberFormatInfo.InvariantInfo), startOffset.ToString(NumberFormatInfo.InvariantInfo) +
TextSelectionProcessor
.Separator + endOffset.ToString(NumberFormatInfo.InvariantInfo));
201
throw new ArgumentException(SR.Format(SR.InvalidLocatorPart,
TextSelectionProcessor
.CountAttribute));
357
throw new ArgumentException(SR.Format(SR.InvalidLocatorPart,
TextSelectionProcessor
.CountAttribute));
MS\Internal\Annotations\Anchoring\TextViewSelectionProcessor.cs (5)
145
ContentLocatorPart part = new ContentLocatorPart(
TextSelectionProcessor
.CharacterRangeElementName);// DocumentPageViewLocatorPart();
146
part.NameValuePairs.Add(
TextSelectionProcessor
.CountAttribute, 1.ToString(NumberFormatInfo.InvariantInfo));
147
part.NameValuePairs.Add(
TextSelectionProcessor
.SegmentAttribute + 0.ToString(NumberFormatInfo.InvariantInfo), startOffset.ToString(NumberFormatInfo.InvariantInfo) +
TextSelectionProcessor
.Separator + endOffset.ToString(NumberFormatInfo.InvariantInfo));
148
part.NameValuePairs.Add(
TextSelectionProcessor
.IncludeOverlaps, Boolean.TrueString);
System\Windows\Annotations\AnnotationDocumentPaginator.cs (2)
330
TextSelectionProcessor
textSelectionProcessor = new TextSelectionProcessor();
378
if (locator.Parts[locator.Parts.Count - 1].NameValuePairs.ContainsKey(
TextSelectionProcessor
.IncludeOverlaps))
System\Windows\Annotations\AnnotationHelper.cs (9)
203
TextSelectionProcessor
rangeProcessor = service.LocatorManager.GetSelectionProcessor(typeof(TextRange)) as
TextSelectionProcessor
;
204
TextSelectionProcessor
anchorProcessor = service.LocatorManager.GetSelectionProcessor(typeof(TextAnchor)) as
TextSelectionProcessor
;
680
TextSelectionProcessor
rangeProcessor = service.LocatorManager.GetSelectionProcessor(typeof(TextRange)) as
TextSelectionProcessor
;
681
TextSelectionProcessor
anchorProcessor = service.LocatorManager.GetSelectionProcessor(typeof(TextAnchor)) as
TextSelectionProcessor
;
697
locator.Parts[locator.Parts.Count - 1].NameValuePairs.Add(
TextSelectionProcessor
.IncludeOverlaps, Boolean.TrueString);
System\Windows\Annotations\AnnotationService.cs (4)
1536
TextSelectionProcessor
flowRangeProcessor = null;
1537
TextSelectionProcessor
flowAnchorProcessor = null;
1555
flowRangeProcessor = this.LocatorManager.GetSelectionProcessor(typeof(TextRange)) as
TextSelectionProcessor
;
1558
flowAnchorProcessor = this.LocatorManager.GetSelectionProcessor(typeof(TextAnchor)) as
TextSelectionProcessor
;
System\Windows\Annotations\LocatorPart.cs (7)
229
_nameValues.TryGetValue(
TextSelectionProcessor
.IncludeOverlaps, out overlapsString);
249
TextSelectionProcessor
.GetMaxMinLocatorPartValues(this, out desiredStartOffset, out desiredEndOffset);
253
TextSelectionProcessor
.GetMaxMinLocatorPartValues(part, out startOffset, out endOffset);
290
_nameValues.TryGetValue(
TextSelectionProcessor
.IncludeOverlaps, out overlapsString);
363
res += $"{
TextSelectionProcessor
.CharacterRangeElementName.Name}/{corePrefix}:{AnnotationXmlConstants.Elements.Item}";
367
TextSelectionProcessor
.GetMaxMinLocatorPartValues(this, out startOffset, out endOffset);
374
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}))]";