43 references to Parts
PresentationFramework (43)
src\Framework\MS\Internal\Annotations\Anchoring\DataIdProcessor.cs (1)
185
locator.
Parts
.Add(newLocatorPart);
src\Framework\MS\Internal\Annotations\Anchoring\FixedPageProcessor.cs (1)
152
locator.
Parts
.Add(locatorPart);
src\Framework\MS\Internal\Annotations\Anchoring\LocatorManager.cs (17)
329
if (locator.
Parts
[locator.
Parts
.Count - 1].NameValuePairs.ContainsKey(TextSelectionProcessor.IncludeOverlaps))
331
locator.
Parts
.RemoveAt(locator.
Parts
.Count - 1);
440
if (offset < 0 || offset >= realLocator.
Parts
.Count)
586
if (realLocator == null || locatorPartIdx < realLocator.
Parts
.Count)
603
else if (realLocator != null && locatorPartIdx < realLocator.
Parts
.Count)
644
locatorPartIdx = prefix.
Parts
.Count;
816
if (locator != null && locator.
Parts
.Count != 0)
941
if (realLocator != null && offset == realLocator.
Parts
.Count - 1)
943
ContentLocatorPart locatorPart = realLocator.
Parts
[offset];
966
Debug.Assert(offset >= 0 && offset < realLocator.
Parts
.Count, "offset out of range");
1138
Debug.Assert(data.LocatorPartIndex >= 0 && data.LocatorPartIndex < locator.
Parts
.Count,
1144
ContentLocatorPart locatorPart = locator.
Parts
[data.LocatorPartIndex];
1173
if (data.LocatorPartIndex == locator.
Parts
.Count)
1183
else if (data.LocatorPartIndex == locator.
Parts
.Count - 1)
1185
locatorPart = locator.
Parts
[data.LocatorPartIndex];
src\Framework\System\Windows\Annotations\AnnotationDocumentPaginator.cs (4)
391
if (locator.
Parts
[locator.
Parts
.Count - 1].NameValuePairs.ContainsKey(TextSelectionProcessor.IncludeOverlaps))
393
locator.
Parts
.RemoveAt(locator.
Parts
.Count - 1);
src\Framework\System\Windows\Annotations\AnnotationHelper.cs (3)
719
locator.
Parts
[locator.
Parts
.Count - 1].NameValuePairs.Add(TextSelectionProcessor.IncludeOverlaps, Boolean.TrueString);
755
locator.
Parts
.Add(FixedPageProcessor.CreateLocatorPart(pageNumber));
src\Framework\System\Windows\Annotations\LocatorPartList.cs (12)
99
Invariant.Assert(locator.
Parts
!= null, "Locator has null Parts property.");
103
if (this.
Parts
.Count < locator.
Parts
.Count)
108
for (int locatorPartIndex = 0; locatorPartIndex < locator.
Parts
.Count; locatorPartIndex++)
110
ContentLocatorPart left = locator.
Parts
[locatorPartIndex];
111
ContentLocatorPart right = this.
Parts
[locatorPartIndex];
138
foreach (ContentLocatorPart part in this.
Parts
)
145
clone.
Parts
.Add(newPart);
403
loc.
Parts
.Add(additionalLocatorParts[i]);
407
this.
Parts
.Add(additionalLocatorParts[0]);
481
foreach(ContentLocatorPart part in other.
Parts
)
483
this.
Parts
.Add((ContentLocatorPart)part.Clone());
src\Framework\System\Windows\Annotations\Storage\XmlStreamStore.cs (5)
260
if (anchorLocator.
Parts
== null)
270
if (anchorLocator.
Parts
.Count > 0)
273
for (int i = 0; i < anchorLocator.
Parts
.Count; i++)
275
if (anchorLocator.
Parts
[i] != null)
282
string fragment = anchorLocator.
Parts
[i].GetQueryFragment(_namespaceManager);