43 references to Parts
PresentationFramework (43)
MS\Internal\Annotations\Anchoring\DataIdProcessor.cs (1)
155
locator.
Parts
.Add(newLocatorPart);
MS\Internal\Annotations\Anchoring\FixedPageProcessor.cs (1)
139
locator.
Parts
.Add(locatorPart);
MS\Internal\Annotations\Anchoring\LocatorManager.cs (17)
291
if (locator.
Parts
[locator.
Parts
.Count - 1].NameValuePairs.ContainsKey(TextSelectionProcessor.IncludeOverlaps))
293
locator.
Parts
.RemoveAt(locator.
Parts
.Count - 1);
399
ArgumentOutOfRangeException.ThrowIfGreaterThanOrEqual(offset, realLocator.
Parts
.Count);
537
if (realLocator == null || locatorPartIdx < realLocator.
Parts
.Count)
554
else if (realLocator != null && locatorPartIdx < realLocator.
Parts
.Count)
595
locatorPartIdx = prefix.
Parts
.Count;
767
if (locator != null && locator.
Parts
.Count != 0)
892
if (realLocator != null && offset == realLocator.
Parts
.Count - 1)
894
ContentLocatorPart locatorPart = realLocator.
Parts
[offset];
917
Debug.Assert(offset >= 0 && offset < realLocator.
Parts
.Count, "offset out of range");
1091
Debug.Assert(data.LocatorPartIndex >= 0 && data.LocatorPartIndex < locator.
Parts
.Count,
1097
ContentLocatorPart locatorPart = locator.
Parts
[data.LocatorPartIndex];
1126
if (data.LocatorPartIndex == locator.
Parts
.Count)
1136
else if (data.LocatorPartIndex == locator.
Parts
.Count - 1)
1138
locatorPart = locator.
Parts
[data.LocatorPartIndex];
System\Windows\Annotations\AnnotationDocumentPaginator.cs (4)
379
if (locator.
Parts
[locator.
Parts
.Count - 1].NameValuePairs.ContainsKey(TextSelectionProcessor.IncludeOverlaps))
381
locator.
Parts
.RemoveAt(locator.
Parts
.Count - 1);
System\Windows\Annotations\AnnotationHelper.cs (3)
698
locator.
Parts
[locator.
Parts
.Count - 1].NameValuePairs.Add(TextSelectionProcessor.IncludeOverlaps, Boolean.TrueString);
734
locator.
Parts
.Add(FixedPageProcessor.CreateLocatorPart(pageNumber));
System\Windows\Annotations\LocatorPartList.cs (12)
68
Invariant.Assert(locator.
Parts
!= null, "Locator has null Parts property.");
71
if (this.
Parts
.Count < locator.
Parts
.Count)
76
for (int locatorPartIndex = 0; locatorPartIndex < locator.
Parts
.Count; locatorPartIndex++)
78
ContentLocatorPart left = locator.
Parts
[locatorPartIndex];
79
ContentLocatorPart right = this.
Parts
[locatorPartIndex];
106
foreach (ContentLocatorPart part in this.
Parts
)
113
clone.
Parts
.Add(newPart);
365
loc.
Parts
.Add(additionalLocatorParts[i]);
369
this.
Parts
.Add(additionalLocatorParts[0]);
443
foreach(ContentLocatorPart part in other.
Parts
)
445
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);