10 instantiations of Paragraph
PresentationFramework (10)
src\Framework\MS\Internal\Controls\StickyNote\StickyNoteContentControl.cs (1)
202((RichTextBox)InnerControl).Document = new FlowDocument(new Paragraph(new Run()));
src\Framework\System\Windows\Controls\RichTextBox.cs (1)
106document.Blocks.Add(new Paragraph());
src\Framework\System\Windows\Documents\FixedElement.cs (1)
256root = new Paragraph();
src\Framework\System\Windows\Documents\TextRangeEdit.cs (1)
626paragraph = new Paragraph();
src\Framework\System\Windows\Documents\TextRangeEditTables.cs (4)
673TableCell cell = new TableCell(new Paragraph()); 922Paragraph implicitParagraph = new Paragraph(); 1084cell.Blocks.Add(new Paragraph()); 2294Paragraph newParagraph = new Paragraph();
src\Framework\System\Windows\Markup\Baml2006\WpfGeneratedKnownTypes.cs (1)
7284bamlType.DefaultConstructor = delegate() { return new System.Windows.Documents.Paragraph(); };
src\Framework\System\Windows\Markup\KnownTypes.cs (1)
1437case KnownElements.Paragraph: o = new System.Windows.Documents.Paragraph(); break;
134 references to Paragraph
PresentationFramework (134)
src\Framework\MS\Internal\PtsHost\MbpInfo.cs (2)
116if (o is Paragraph) 118DependencyObject parent = ((Paragraph)o).Parent;
src\Framework\MS\Internal\Text\DynamicPropertyReader.cs (8)
165Paragraph p = element as Paragraph; 174Paragraph p = element as Paragraph; 183Paragraph p = element as Paragraph; 192Paragraph p = element as Paragraph;
src\Framework\MS\Internal\Text\LineProperties.cs (1)
135_textIndent = (double)element.GetValue(Paragraph.TextIndentProperty);
src\Framework\System\Windows\Controls\RichTextBox.cs (3)
486firstBlock is Paragraph)) 488Inline firstInline = (firstBlock == null) ? null : ((Paragraph)firstBlock).Inlines.FirstInline; 491firstInline == ((Paragraph)firstBlock).Inlines.LastInline &&
src\Framework\System\Windows\Controls\TextRangeAdaptor.cs (1)
240return NativeObjectLengthToPoints((double)tp.GetValue(Paragraph.TextIndentProperty));
src\Framework\System\Windows\Documents\FixedElement.cs (1)
381return typeof(Paragraph);
src\Framework\System\Windows\Documents\FlowDocument.cs (2)
54/// <see cref="Paragraph"/>, <see cref="Section"/>, <see cref="List"/>, <see cref="Table"/>. 58/// Each of block elements has specific schema, only <see cref="Paragraph"/> allowing
src\Framework\System\Windows\Documents\List.cs (3)
284block.ClearValue(Paragraph.TextIndentProperty); 295Paragraph.FlowDirectionProperty, firstBlock.GetValue(Paragraph.FlowDirectionProperty));
src\Framework\System\Windows\Documents\ListItem.cs (1)
52public ListItem(Paragraph paragraph)
src\Framework\System\Windows\Documents\Paragraph.cs (9)
39DefaultStyleKeyProperty.OverrideMetadata(typeof(Paragraph), new FrameworkPropertyMetadata(typeof(Paragraph))); 91typeof(Paragraph), 113typeof(Paragraph), 136typeof(Paragraph), 160typeof(Paragraph), 183typeof(Paragraph), 206typeof(Paragraph), 253internal static bool HasNoTextContent(Paragraph paragraph)
src\Framework\System\windows\Documents\TextEditorLists.cs (6)
264Paragraph paragraph = thisSelection.Start.Paragraph; 270TextRangeEdit.SetParagraphProperty(thisSelection.Start, thisSelection.End, Paragraph.TextIndentProperty, 0.0, PropertyValueAction.SetValue); 275TextRangeEdit.SetParagraphProperty(thisSelection.Start, thisSelection.End, Paragraph.TextIndentProperty, 20.0, PropertyValueAction.SetValue); 319Paragraph paragraph = thisSelection.Start.Paragraph; 326TextRangeEdit.SetParagraphProperty(thisSelection.Start, thisSelection.End, Paragraph.TextIndentProperty, 20.0, PropertyValueAction.SetValue); 331TextRangeEdit.SetParagraphProperty(thisSelection.Start, thisSelection.End, Paragraph.TextIndentProperty, 0.0, PropertyValueAction.SetValue);
src\Framework\System\windows\Documents\TextEditorTyping.cs (8)
779paragraphOrBlockUIContainerToDelete is Paragraph && Paragraph.HasNoTextContent((Paragraph)paragraphOrBlockUIContainerToDelete) || // empty paragraph 788paragraphOrBlockUIContainerToDelete is Paragraph && Paragraph.HasNoTextContent((Paragraph)paragraphOrBlockUIContainerToDelete) || // empty paragraph 823(paragraphOrBlockUIContainer is Paragraph && ((Paragraph)paragraphOrBlockUIContainer).TextIndent > 0);
src\Framework\System\Windows\Documents\TextPointer.cs (4)
1440if (!TextSchema.IsValidChildOfContainer(containerType, typeof(Paragraph))) 1660public Paragraph Paragraph 1667return this.ParentBlock as Paragraph; 1687return (parentBlock is Paragraph) || (parentBlock is BlockUIContainer) ? parentBlock : null;
src\Framework\System\Windows\Documents\TextPointerBase.cs (3)
665return IsNextToRichBreak(thisPosition, direction, typeof(Paragraph)); 1522Invariant.Assert(lineBreakType == null || lineBreakType == typeof(LineBreak) || lineBreakType == typeof(Paragraph)); 1533typeof(Paragraph).IsAssignableFrom(neighbor))
src\Framework\System\Windows\Documents\TextRange.cs (3)
1588Paragraph paragraph = startPosition.Paragraph; 1592if (Paragraph.HasNoTextContent(paragraph)) 1662(FlowDirection)textSegment.Start.GetValue(Paragraph.FlowDirectionProperty) == FlowDirection.RightToLeft)
src\Framework\System\Windows\Documents\TextRangeBase.cs (4)
458while (value == null && (element is Inline || element is Paragraph || element is TextBlock)) 485while (!typeof(Paragraph).IsAssignableFrom(position.ParentType) && 492if (typeof(Paragraph).IsAssignableFrom(position.ParentType)) 701if (typeof(Paragraph).IsAssignableFrom(elementType) ||
src\Framework\System\Windows\Documents\TextRangeEdit.cs (20)
596Invariant.Assert(position.TextContainer.Parent == null || TextSchema.IsValidChildOfContainer(position.TextContainer.Parent.GetType(), typeof(Paragraph))); 619Paragraph paragraph = position.Paragraph; 660while (!(breakPosition.Parent is Paragraph) && breakPosition.GetPointerContext(LogicalDirection.Forward) == TextPointerContext.ElementStart) 871else if (property == Paragraph.TextAlignmentProperty) 922Paragraph paragraph = block as Paragraph; 1038if (block is Paragraph || block is BlockUIContainer || block is List) 1230if (Paragraph.IsMarginAuto((Thickness)value)) 1294if (!(commonAncestor is Span || commonAncestor is Paragraph)) 1526else if (second is Paragraph && Paragraph.HasNoTextContent((Paragraph) second)) 1540else if (second is Paragraph && Paragraph.HasNoTextContent((Paragraph) first)) 1959commonAncestor is Paragraph) 2239start.Parent is Paragraph) 2241Paragraph paragraph = (Paragraph)start.Parent; 2350new DoublePropertyRange (Paragraph.TextIndentProperty, -Math.Min(1000000, PTS.MaxPageSize), Math.Min(1000000, PTS.MaxPageSize))
src\Framework\System\Windows\Documents\TextRangeEditLists.cs (15)
109if (previousBlock is Paragraph || previousBlock is BlockUIContainer) 129else if (firstParagraphOrBlockUIContainer is Paragraph && secondParagraphOrBlockUIContainer is Paragraph) 233Paragraph.FlowDirectionProperty, precedingList.GetValue(Paragraph.FlowDirectionProperty)); 391FlowDirection flowDirection = (FlowDirection)listToRemove.GetValue(Paragraph.FlowDirectionProperty); 393TextRangeEdit.SetParagraphProperty(range.Start, range.End, Paragraph.FlowDirectionProperty, flowDirection); 428Paragraph leadingParagraphOfLastItem = lastListItem.Blocks.FirstBlock as Paragraph; 553object listFlowDirectionValue = unindentedList.GetValue(Paragraph.FlowDirectionProperty); 575TextRangeEdit.SetParagraphProperty(start, end, Paragraph.FlowDirectionProperty, listFlowDirectionValue); 682!TextSchema.ValuesAreEqual(/*newValue*/newFlowDirectionValue, /*currentValue*/startListItem.List.GetValue(Paragraph.FlowDirectionProperty))) 702!TextSchema.ValuesAreEqual(/*newValue*/newFlowDirectionValue, /*currentValue*/endListItem.List.GetValue(Paragraph.FlowDirectionProperty))) 733(!TextSchema.ValuesAreEqual(/*newValue*/newFlowDirectionValue, /*currentValue*/startListItem.List.GetValue(Paragraph.FlowDirectionProperty)))) 741(!TextSchema.ValuesAreEqual(/*newValue*/newFlowDirectionValue, /*currentValue*/endListItem.List.GetValue(Paragraph.FlowDirectionProperty))))
src\Framework\System\Windows\Documents\TextRangeEditTables.cs (7)
652Paragraph paragraph = insertionPosition.Paragraph; 922Paragraph implicitParagraph = new Paragraph(); 2294Paragraph newParagraph = new Paragraph(); 2297Paragraph sourceParagraph = currentCell.Blocks.FirstBlock as Paragraph; 2301DependencyProperty[] inheritableProperties = TextSchema.GetInheritableProperties(typeof(Paragraph)); 2302DependencyProperty[] nonInheritableProperties = TextSchema.GetNoninheritableProperties(typeof(Paragraph));
src\Framework\System\Windows\Documents\TextRangeSerialization.cs (12)
672typeof(Paragraph).IsAssignableFrom(contextType) || 899if ((property == Block.MarginProperty && (typeof(Paragraph).IsAssignableFrom(propertyOwnerType) || typeof(List).IsAssignableFrom(propertyOwnerType))) 904if (Paragraph.IsMarginAuto(thickness)) 1333Invariant.Assert(insertionPosition.Parent is Paragraph, "insertionPosition must be in a scope of a Paragraph after splitting formatting elements"); 1485while (navigator != null && !(navigator.Parent is Paragraph)) 1499Invariant.Assert(navigator.Parent is Paragraph, "We suppose have a first paragraph found"); 1500Paragraph firstParagraph = (Paragraph)navigator.Parent; 1503while (navigator != null && !(navigator.Parent is Paragraph)) 1517Invariant.Assert(navigator.Parent is Paragraph, "We suppose a second paragraph found"); 1518Paragraph secondParagraph = (Paragraph)navigator.Parent;
src\Framework\System\Windows\Documents\TextSchema.cs (13)
309typeof(Paragraph).IsAssignableFrom(elementType) || 329typeof(Paragraph).IsAssignableFrom(elementType) || 407else if (typeof(Paragraph).IsAssignableFrom(type)) 409return typeof(Paragraph); 425return reduceElement ? typeof(Paragraph) : typeof(BlockUIContainer); 521else if (typeof(Paragraph).IsAssignableFrom(type)) 836typeof(Paragraph).IsAssignableFrom(parentType) || 988Paragraph.MinWidowLinesProperty, 989Paragraph.MinOrphanLinesProperty, 990Paragraph.TextIndentProperty, 991Paragraph.KeepWithNextProperty, 992Paragraph.KeepTogetherProperty, 993Paragraph.TextDecorationsProperty,
src\Framework\System\Windows\Documents\TextStore.cs (1)
1154else if (commonAncestor is Paragraph || commonAncestor is Span)
src\Framework\System\Windows\Markup\Baml2006\Baml2006KnownTypes.cs (1)
530case 438: t = () => typeof(Paragraph); break;
src\Framework\System\Windows\Markup\Baml2006\WpfGeneratedKnownProperties.cs (3)
5304Type type = typeof(System.Windows.Documents.Paragraph); 5306this.GetXamlType(typeof(System.Windows.Documents.Paragraph)), // DeclaringType 5312bamlMember.GetDelegate = delegate(object target) { return ((System.Windows.Documents.Paragraph)target).Inlines; };
src\Framework\System\Windows\Markup\Baml2006\WpfGeneratedKnownTypes.cs (1)
7282typeof(System.Windows.Documents.Paragraph),
src\Framework\System\Windows\Markup\KnownTypes.cs (2)
2508case KnownElements.Paragraph: return (o as System.Windows.Documents.Paragraph).Inlines; 5982case KnownElements.Paragraph: t = typeof(System.Windows.Documents.Paragraph); break;