43 references to Parts
PresentationFramework (43)
MS\Internal\Annotations\Anchoring\DataIdProcessor.cs (1)
175
locator.
Parts
.Add(newLocatorPart);
MS\Internal\Annotations\Anchoring\FixedPageProcessor.cs (1)
146
locator.
Parts
.Add(locatorPart);
MS\Internal\Annotations\Anchoring\LocatorManager.cs (17)
313
if (locator.
Parts
[locator.
Parts
.Count - 1].NameValuePairs.ContainsKey(TextSelectionProcessor.IncludeOverlaps))
315
locator.
Parts
.RemoveAt(locator.
Parts
.Count - 1);
421
ArgumentOutOfRangeException.ThrowIfGreaterThanOrEqual(offset, realLocator.
Parts
.Count);
560
if (realLocator == null || locatorPartIdx < realLocator.
Parts
.Count)
577
else if (realLocator != null && locatorPartIdx < realLocator.
Parts
.Count)
618
locatorPartIdx = prefix.
Parts
.Count;
790
if (locator != null && locator.
Parts
.Count != 0)
915
if (realLocator != null && offset == realLocator.
Parts
.Count - 1)
917
ContentLocatorPart locatorPart = realLocator.
Parts
[offset];
940
Debug.Assert(offset >= 0 && offset < realLocator.
Parts
.Count, "offset out of range");
1112
Debug.Assert(data.LocatorPartIndex >= 0 && data.LocatorPartIndex < locator.
Parts
.Count,
1118
ContentLocatorPart locatorPart = locator.
Parts
[data.LocatorPartIndex];
1147
if (data.LocatorPartIndex == locator.
Parts
.Count)
1157
else if (data.LocatorPartIndex == locator.
Parts
.Count - 1)
1159
locatorPart = locator.
Parts
[data.LocatorPartIndex];
System\Windows\Annotations\AnnotationDocumentPaginator.cs (4)
380
if (locator.
Parts
[locator.
Parts
.Count - 1].NameValuePairs.ContainsKey(TextSelectionProcessor.IncludeOverlaps))
382
locator.
Parts
.RemoveAt(locator.
Parts
.Count - 1);
System\Windows\Annotations\AnnotationHelper.cs (3)
712
locator.
Parts
[locator.
Parts
.Count - 1].NameValuePairs.Add(TextSelectionProcessor.IncludeOverlaps, Boolean.TrueString);
748
locator.
Parts
.Add(FixedPageProcessor.CreateLocatorPart(pageNumber));
System\Windows\Annotations\LocatorPartList.cs (12)
88
Invariant.Assert(locator.
Parts
!= null, "Locator has null Parts property.");
92
if (this.
Parts
.Count < locator.
Parts
.Count)
97
for (int locatorPartIndex = 0; locatorPartIndex < locator.
Parts
.Count; locatorPartIndex++)
99
ContentLocatorPart left = locator.
Parts
[locatorPartIndex];
100
ContentLocatorPart right = this.
Parts
[locatorPartIndex];
127
foreach (ContentLocatorPart part in this.
Parts
)
134
clone.
Parts
.Add(newPart);
386
loc.
Parts
.Add(additionalLocatorParts[i]);
390
this.
Parts
.Add(additionalLocatorParts[0]);
464
foreach(ContentLocatorPart part in other.
Parts
)
466
this.
Parts
.Add((ContentLocatorPart)part.Clone());
System\Windows\Annotations\Storage\XmlStreamStore.cs (5)
243
if (anchorLocator.
Parts
== null)
253
if (anchorLocator.
Parts
.Count > 0)
256
for (int i = 0; i < anchorLocator.
Parts
.Count; i++)
258
if (anchorLocator.
Parts
[i] != null)
265
string fragment = anchorLocator.
Parts
[i].GetQueryFragment(_namespaceManager);