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