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