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