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