6 instantiations of TextSelectionProcessor
PresentationFramework (6)
MS\Internal\Annotations\Anchoring\LocatorManager.cs (1)
80
TextSelectionProcessor textProcessor = new
TextSelectionProcessor
();
System\Windows\Annotations\AnnotationDocumentPaginator.cs (1)
332
TextSelectionProcessor textSelectionProcessor = new
TextSelectionProcessor
();
System\Windows\Annotations\AnnotationService.cs (2)
211
_locatorManager.RegisterSelectionProcessor(new
TextSelectionProcessor
(), typeof(TextRange));
212
_locatorManager.RegisterSelectionProcessor(new
TextSelectionProcessor
(), typeof(TextAnchor));
System\Windows\Controls\Primitives\DocumentViewerBase.cs (2)
1404
service.LocatorManager.RegisterSelectionProcessor(new
TextSelectionProcessor
(), typeof(TextRange));
1405
service.LocatorManager.RegisterSelectionProcessor(new
TextSelectionProcessor
(), typeof(TextAnchor));
46 references to TextSelectionProcessor
PresentationFramework (46)
MS\Internal\Annotations\Anchoring\FixedTextSelectionProcessor.cs (14)
210
part.NameValuePairs.Add(
TextSelectionProcessor
.CountAttribute, 1.ToString(NumberFormatInfo.InvariantInfo));
211
part.NameValuePairs.Add(
TextSelectionProcessor
.SegmentAttribute + 0.ToString(NumberFormatInfo.InvariantInfo), ",,,");
215
part.NameValuePairs.Add(
TextSelectionProcessor
.CountAttribute, fp.Segments.Count.ToString(NumberFormatInfo.InvariantInfo));
222
value += fp.Segments[i].Start.X.ToString(NumberFormatInfo.InvariantInfo) +
TextSelectionProcessor
.Separator + fp.Segments[i].Start.Y.ToString(NumberFormatInfo.InvariantInfo);
226
value +=
TextSelectionProcessor
.Separator;
228
value +=
TextSelectionProcessor
.Separator;
231
value += fp.Segments[i].End.X.ToString(NumberFormatInfo.InvariantInfo) +
TextSelectionProcessor
.Separator + fp.Segments[i].End.Y.ToString(NumberFormatInfo.InvariantInfo);
235
value +=
TextSelectionProcessor
.Separator;
238
part.NameValuePairs.Add(
TextSelectionProcessor
.SegmentAttribute + i.ToString(NumberFormatInfo.InvariantInfo), value);
315
throw new ArgumentException(SR.Format(SR.InvalidLocatorPart,
TextSelectionProcessor
.CountAttribute));
507
string segmentValue = locatorPart.NameValuePairs[
TextSelectionProcessor
.SegmentAttribute + segmentNumber.ToString(NumberFormatInfo.InvariantInfo)];
509
throw new ArgumentException(SR.Format(SR.InvalidLocatorPart,
TextSelectionProcessor
.SegmentAttribute + segmentNumber.ToString(NumberFormatInfo.InvariantInfo)));
511
string[] values = segmentValue.Split(
TextSelectionProcessor
.Separator);
513
throw new ArgumentException(SR.Format(SR.InvalidLocatorPart,
TextSelectionProcessor
.SegmentAttribute + segmentNumber.ToString(NumberFormatInfo.InvariantInfo)));
MS\Internal\Annotations\Anchoring\LocatorManager.cs (2)
80
TextSelectionProcessor
textProcessor = new TextSelectionProcessor();
313
if (locator.Parts[locator.Parts.Count - 1].NameValuePairs.ContainsKey(
TextSelectionProcessor
.IncludeOverlaps))
MS\Internal\Annotations\Anchoring\TextSelectionProcessor.cs (3)
169
part.NameValuePairs.Add(SegmentAttribute + i.ToString(NumberFormatInfo.InvariantInfo), startOffset.ToString(NumberFormatInfo.InvariantInfo) +
TextSelectionProcessor
.Separator + endOffset.ToString(NumberFormatInfo.InvariantInfo));
212
throw new ArgumentException(SR.Format(SR.InvalidLocatorPart,
TextSelectionProcessor
.CountAttribute));
368
throw new ArgumentException(SR.Format(SR.InvalidLocatorPart,
TextSelectionProcessor
.CountAttribute));
MS\Internal\Annotations\Anchoring\TextViewSelectionProcessor.cs (5)
158
ContentLocatorPart part = new ContentLocatorPart(
TextSelectionProcessor
.CharacterRangeElementName);// DocumentPageViewLocatorPart();
159
part.NameValuePairs.Add(
TextSelectionProcessor
.CountAttribute, 1.ToString(NumberFormatInfo.InvariantInfo));
160
part.NameValuePairs.Add(
TextSelectionProcessor
.SegmentAttribute + 0.ToString(NumberFormatInfo.InvariantInfo), startOffset.ToString(NumberFormatInfo.InvariantInfo) +
TextSelectionProcessor
.Separator + endOffset.ToString(NumberFormatInfo.InvariantInfo));
161
part.NameValuePairs.Add(
TextSelectionProcessor
.IncludeOverlaps, Boolean.TrueString);
System\Windows\Annotations\AnnotationDocumentPaginator.cs (2)
332
TextSelectionProcessor
textSelectionProcessor = new TextSelectionProcessor();
380
if (locator.Parts[locator.Parts.Count - 1].NameValuePairs.ContainsKey(
TextSelectionProcessor
.IncludeOverlaps))
System\Windows\Annotations\AnnotationHelper.cs (9)
218
TextSelectionProcessor
rangeProcessor = service.LocatorManager.GetSelectionProcessor(typeof(TextRange)) as
TextSelectionProcessor
;
219
TextSelectionProcessor
anchorProcessor = service.LocatorManager.GetSelectionProcessor(typeof(TextAnchor)) as
TextSelectionProcessor
;
695
TextSelectionProcessor
rangeProcessor = service.LocatorManager.GetSelectionProcessor(typeof(TextRange)) as
TextSelectionProcessor
;
696
TextSelectionProcessor
anchorProcessor = service.LocatorManager.GetSelectionProcessor(typeof(TextAnchor)) as
TextSelectionProcessor
;
712
locator.Parts[locator.Parts.Count - 1].NameValuePairs.Add(
TextSelectionProcessor
.IncludeOverlaps, Boolean.TrueString);
System\Windows\Annotations\AnnotationService.cs (4)
1554
TextSelectionProcessor
flowRangeProcessor = null;
1555
TextSelectionProcessor
flowAnchorProcessor = null;
1573
flowRangeProcessor = this.LocatorManager.GetSelectionProcessor(typeof(TextRange)) as
TextSelectionProcessor
;
1576
flowAnchorProcessor = this.LocatorManager.GetSelectionProcessor(typeof(TextAnchor)) as
TextSelectionProcessor
;
System\Windows\Annotations\LocatorPart.cs (7)
234
_nameValues.TryGetValue(
TextSelectionProcessor
.IncludeOverlaps, out overlapsString);
254
TextSelectionProcessor
.GetMaxMinLocatorPartValues(this, out desiredStartOffset, out desiredEndOffset);
258
TextSelectionProcessor
.GetMaxMinLocatorPartValues(part, out startOffset, out endOffset);
295
_nameValues.TryGetValue(
TextSelectionProcessor
.IncludeOverlaps, out overlapsString);
368
res += $"{
TextSelectionProcessor
.CharacterRangeElementName.Name}/{corePrefix}:{AnnotationXmlConstants.Elements.Item}";
372
TextSelectionProcessor
.GetMaxMinLocatorPartValues(this, out startOffset, out endOffset);
379
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}))]";