43 references to Parts
PresentationFramework (43)
MS\Internal\Annotations\Anchoring\DataIdProcessor.cs (1)
166
locator.
Parts
.Add(newLocatorPart);
MS\Internal\Annotations\Anchoring\FixedPageProcessor.cs (1)
139
locator.
Parts
.Add(locatorPart);
MS\Internal\Annotations\Anchoring\LocatorManager.cs (17)
302
if (locator.
Parts
[locator.
Parts
.Count - 1].NameValuePairs.ContainsKey(TextSelectionProcessor.IncludeOverlaps))
304
locator.
Parts
.RemoveAt(locator.
Parts
.Count - 1);
410
ArgumentOutOfRangeException.ThrowIfGreaterThanOrEqual(offset, realLocator.
Parts
.Count);
549
if (realLocator == null || locatorPartIdx < realLocator.
Parts
.Count)
566
else if (realLocator != null && locatorPartIdx < realLocator.
Parts
.Count)
607
locatorPartIdx = prefix.
Parts
.Count;
779
if (locator != null && locator.
Parts
.Count != 0)
904
if (realLocator != null && offset == realLocator.
Parts
.Count - 1)
906
ContentLocatorPart locatorPart = realLocator.
Parts
[offset];
929
Debug.Assert(offset >= 0 && offset < realLocator.
Parts
.Count, "offset out of range");
1101
Debug.Assert(data.LocatorPartIndex >= 0 && data.LocatorPartIndex < locator.
Parts
.Count,
1107
ContentLocatorPart locatorPart = locator.
Parts
[data.LocatorPartIndex];
1136
if (data.LocatorPartIndex == locator.
Parts
.Count)
1146
else if (data.LocatorPartIndex == locator.
Parts
.Count - 1)
1148
locatorPart = locator.
Parts
[data.LocatorPartIndex];
System\Windows\Annotations\AnnotationDocumentPaginator.cs (4)
375
if (locator.
Parts
[locator.
Parts
.Count - 1].NameValuePairs.ContainsKey(TextSelectionProcessor.IncludeOverlaps))
377
locator.
Parts
.RemoveAt(locator.
Parts
.Count - 1);
System\Windows\Annotations\AnnotationHelper.cs (3)
700
locator.
Parts
[locator.
Parts
.Count - 1].NameValuePairs.Add(TextSelectionProcessor.IncludeOverlaps, Boolean.TrueString);
736
locator.
Parts
.Add(FixedPageProcessor.CreateLocatorPart(pageNumber));
System\Windows\Annotations\LocatorPartList.cs (12)
81
Invariant.Assert(locator.
Parts
!= null, "Locator has null Parts property.");
85
if (this.
Parts
.Count < locator.
Parts
.Count)
90
for (int locatorPartIndex = 0; locatorPartIndex < locator.
Parts
.Count; locatorPartIndex++)
92
ContentLocatorPart left = locator.
Parts
[locatorPartIndex];
93
ContentLocatorPart right = this.
Parts
[locatorPartIndex];
120
foreach (ContentLocatorPart part in this.
Parts
)
127
clone.
Parts
.Add(newPart);
379
loc.
Parts
.Add(additionalLocatorParts[i]);
383
this.
Parts
.Add(additionalLocatorParts[0]);
457
foreach(ContentLocatorPart part in other.
Parts
)
459
this.
Parts
.Add((ContentLocatorPart)part.Clone());
System\Windows\Annotations\Storage\XmlStreamStore.cs (5)
232
if (anchorLocator.
Parts
== null)
242
if (anchorLocator.
Parts
.Count > 0)
245
for (int i = 0; i < anchorLocator.
Parts
.Count; i++)
247
if (anchorLocator.
Parts
[i] != null)
254
string fragment = anchorLocator.
Parts
[i].GetQueryFragment(_namespaceManager);