10 instantiations of Paragraph
PresentationFramework (10)
MS\Internal\Controls\StickyNote\StickyNoteContentControl.cs (1)
196((RichTextBox)InnerControl).Document = new FlowDocument(new Paragraph(new Run()));
System\Windows\Controls\RichTextBox.cs (1)
104document.Blocks.Add(new Paragraph());
System\Windows\Documents\FixedElement.cs (1)
251root = new Paragraph();
System\Windows\Documents\TextRangeEdit.cs (1)
624paragraph = new Paragraph();
System\Windows\Documents\TextRangeEditTables.cs (4)
670TableCell cell = new TableCell(new Paragraph()); 919Paragraph implicitParagraph = new Paragraph(); 1081cell.Blocks.Add(new Paragraph()); 2291Paragraph newParagraph = new Paragraph();
System\Windows\Markup\Baml2006\WpfGeneratedKnownTypes.cs (1)
7288bamlType.DefaultConstructor = delegate() { return new System.Windows.Documents.Paragraph(); };
System\Windows\Markup\KnownTypes.cs (1)
1436case KnownElements.Paragraph: o = new System.Windows.Documents.Paragraph(); break;
134 references to Paragraph
PresentationFramework (134)
MS\Internal\PtsHost\MbpInfo.cs (2)
115if (o is Paragraph) 117DependencyObject parent = ((Paragraph)o).Parent;
MS\Internal\Text\DynamicPropertyReader.cs (8)
162Paragraph p = element as Paragraph; 171Paragraph p = element as Paragraph; 180Paragraph p = element as Paragraph; 189Paragraph p = element as Paragraph;
MS\Internal\Text\LineProperties.cs (1)
132_textIndent = (double)element.GetValue(Paragraph.TextIndentProperty);
System\Windows\Controls\RichTextBox.cs (3)
475firstBlock is Paragraph)) 477Inline firstInline = (firstBlock == null) ? null : ((Paragraph)firstBlock).Inlines.FirstInline; 480firstInline == ((Paragraph)firstBlock).Inlines.LastInline &&
System\Windows\Controls\TextRangeAdaptor.cs (1)
232return NativeObjectLengthToPoints((double)tp.GetValue(Paragraph.TextIndentProperty));
System\Windows\Documents\FixedElement.cs (1)
375return typeof(Paragraph);
System\Windows\Documents\FlowDocument.cs (2)
49/// <see cref="Paragraph"/>, <see cref="Section"/>, <see cref="List"/>, <see cref="Table"/>. 53/// Each of block elements has specific schema, only <see cref="Paragraph"/> allowing
System\Windows\Documents\List.cs (3)
274block.ClearValue(Paragraph.TextIndentProperty); 285Paragraph.FlowDirectionProperty, firstBlock.GetValue(Paragraph.FlowDirectionProperty));
System\Windows\Documents\ListItem.cs (1)
48public ListItem(Paragraph paragraph)
System\Windows\Documents\Paragraph.cs (9)
35DefaultStyleKeyProperty.OverrideMetadata(typeof(Paragraph), new FrameworkPropertyMetadata(typeof(Paragraph))); 84typeof(Paragraph), 106typeof(Paragraph), 129typeof(Paragraph), 153typeof(Paragraph), 176typeof(Paragraph), 199typeof(Paragraph), 246internal static bool HasNoTextContent(Paragraph paragraph)
System\windows\Documents\TextEditorLists.cs (6)
262Paragraph paragraph = thisSelection.Start.Paragraph; 268TextRangeEdit.SetParagraphProperty(thisSelection.Start, thisSelection.End, Paragraph.TextIndentProperty, 0.0, PropertyValueAction.SetValue); 273TextRangeEdit.SetParagraphProperty(thisSelection.Start, thisSelection.End, Paragraph.TextIndentProperty, 20.0, PropertyValueAction.SetValue); 317Paragraph paragraph = thisSelection.Start.Paragraph; 324TextRangeEdit.SetParagraphProperty(thisSelection.Start, thisSelection.End, Paragraph.TextIndentProperty, 20.0, PropertyValueAction.SetValue); 329TextRangeEdit.SetParagraphProperty(thisSelection.Start, thisSelection.End, Paragraph.TextIndentProperty, 0.0, PropertyValueAction.SetValue);
System\windows\Documents\TextEditorTyping.cs (8)
762paragraphOrBlockUIContainerToDelete is Paragraph && Paragraph.HasNoTextContent((Paragraph)paragraphOrBlockUIContainerToDelete) || // empty paragraph 771paragraphOrBlockUIContainerToDelete is Paragraph && Paragraph.HasNoTextContent((Paragraph)paragraphOrBlockUIContainerToDelete) || // empty paragraph 806(paragraphOrBlockUIContainer is Paragraph && ((Paragraph)paragraphOrBlockUIContainer).TextIndent > 0);
System\Windows\Documents\TextPointer.cs (4)
1426if (!TextSchema.IsValidChildOfContainer(containerType, typeof(Paragraph))) 1646public Paragraph Paragraph 1653return this.ParentBlock as Paragraph; 1673return (parentBlock is Paragraph) || (parentBlock is BlockUIContainer) ? parentBlock : null;
System\Windows\Documents\TextPointerBase.cs (3)
663return IsNextToRichBreak(thisPosition, direction, typeof(Paragraph)); 1520Invariant.Assert(lineBreakType == null || lineBreakType == typeof(LineBreak) || lineBreakType == typeof(Paragraph)); 1531typeof(Paragraph).IsAssignableFrom(neighbor))
System\Windows\Documents\TextRange.cs (3)
1591Paragraph paragraph = startPosition.Paragraph; 1595if (Paragraph.HasNoTextContent(paragraph)) 1665(FlowDirection)textSegment.Start.GetValue(Paragraph.FlowDirectionProperty) == FlowDirection.RightToLeft)
System\Windows\Documents\TextRangeBase.cs (4)
447while (value == null && (element is Inline || element is Paragraph || element is TextBlock)) 474while (!typeof(Paragraph).IsAssignableFrom(position.ParentType) && 481if (typeof(Paragraph).IsAssignableFrom(position.ParentType)) 690if (typeof(Paragraph).IsAssignableFrom(elementType) ||
System\Windows\Documents\TextRangeEdit.cs (20)
594Invariant.Assert(position.TextContainer.Parent == null || TextSchema.IsValidChildOfContainer(position.TextContainer.Parent.GetType(), typeof(Paragraph))); 617Paragraph paragraph = position.Paragraph; 658while (!(breakPosition.Parent is Paragraph) && breakPosition.GetPointerContext(LogicalDirection.Forward) == TextPointerContext.ElementStart) 869else if (property == Paragraph.TextAlignmentProperty) 920Paragraph paragraph = block as Paragraph; 1036if (block is Paragraph || block is BlockUIContainer || block is List) 1228if (Paragraph.IsMarginAuto((Thickness)value)) 1292if (!(commonAncestor is Span || commonAncestor is Paragraph)) 1524else if (second is Paragraph && Paragraph.HasNoTextContent((Paragraph) second)) 1538else if (second is Paragraph && Paragraph.HasNoTextContent((Paragraph) first)) 1957commonAncestor is Paragraph) 2237start.Parent is Paragraph) 2239Paragraph paragraph = (Paragraph)start.Parent; 2348new DoublePropertyRange (Paragraph.TextIndentProperty, -Math.Min(1000000, PTS.MaxPageSize), Math.Min(1000000, PTS.MaxPageSize))
System\Windows\Documents\TextRangeEditLists.cs (15)
107if (previousBlock is Paragraph || previousBlock is BlockUIContainer) 127else if (firstParagraphOrBlockUIContainer is Paragraph && secondParagraphOrBlockUIContainer is Paragraph) 231Paragraph.FlowDirectionProperty, precedingList.GetValue(Paragraph.FlowDirectionProperty)); 389FlowDirection flowDirection = (FlowDirection)listToRemove.GetValue(Paragraph.FlowDirectionProperty); 391TextRangeEdit.SetParagraphProperty(range.Start, range.End, Paragraph.FlowDirectionProperty, flowDirection); 426Paragraph leadingParagraphOfLastItem = lastListItem.Blocks.FirstBlock as Paragraph; 551object listFlowDirectionValue = unindentedList.GetValue(Paragraph.FlowDirectionProperty); 573TextRangeEdit.SetParagraphProperty(start, end, Paragraph.FlowDirectionProperty, listFlowDirectionValue); 680!TextSchema.ValuesAreEqual(/*newValue*/newFlowDirectionValue, /*currentValue*/startListItem.List.GetValue(Paragraph.FlowDirectionProperty))) 700!TextSchema.ValuesAreEqual(/*newValue*/newFlowDirectionValue, /*currentValue*/endListItem.List.GetValue(Paragraph.FlowDirectionProperty))) 731(!TextSchema.ValuesAreEqual(/*newValue*/newFlowDirectionValue, /*currentValue*/startListItem.List.GetValue(Paragraph.FlowDirectionProperty)))) 739(!TextSchema.ValuesAreEqual(/*newValue*/newFlowDirectionValue, /*currentValue*/endListItem.List.GetValue(Paragraph.FlowDirectionProperty))))
System\Windows\Documents\TextRangeEditTables.cs (7)
649Paragraph paragraph = insertionPosition.Paragraph; 919Paragraph implicitParagraph = new Paragraph(); 2291Paragraph newParagraph = new Paragraph(); 2294Paragraph sourceParagraph = currentCell.Blocks.FirstBlock as Paragraph; 2298DependencyProperty[] inheritableProperties = TextSchema.GetInheritableProperties(typeof(Paragraph)); 2299DependencyProperty[] nonInheritableProperties = TextSchema.GetNoninheritableProperties(typeof(Paragraph));
System\Windows\Documents\TextRangeSerialization.cs (12)
665typeof(Paragraph).IsAssignableFrom(contextType) || 892if ((property == Block.MarginProperty && (typeof(Paragraph).IsAssignableFrom(propertyOwnerType) || typeof(List).IsAssignableFrom(propertyOwnerType))) 897if (Paragraph.IsMarginAuto(thickness)) 1309Invariant.Assert(insertionPosition.Parent is Paragraph, "insertionPosition must be in a scope of a Paragraph after splitting formatting elements"); 1461while (navigator != null && !(navigator.Parent is Paragraph)) 1475Invariant.Assert(navigator.Parent is Paragraph, "We suppose have a first paragraph found"); 1476Paragraph firstParagraph = (Paragraph)navigator.Parent; 1479while (navigator != null && !(navigator.Parent is Paragraph)) 1493Invariant.Assert(navigator.Parent is Paragraph, "We suppose a second paragraph found"); 1494Paragraph secondParagraph = (Paragraph)navigator.Parent;
System\Windows\Documents\TextSchema.cs (13)
307typeof(Paragraph).IsAssignableFrom(elementType) || 327typeof(Paragraph).IsAssignableFrom(elementType) || 405else if (typeof(Paragraph).IsAssignableFrom(type)) 407return typeof(Paragraph); 423return reduceElement ? typeof(Paragraph) : typeof(BlockUIContainer); 519else if (typeof(Paragraph).IsAssignableFrom(type)) 834typeof(Paragraph).IsAssignableFrom(parentType) || 986Paragraph.MinWidowLinesProperty, 987Paragraph.MinOrphanLinesProperty, 988Paragraph.TextIndentProperty, 989Paragraph.KeepWithNextProperty, 990Paragraph.KeepTogetherProperty, 991Paragraph.TextDecorationsProperty,
System\Windows\Documents\TextStore.cs (1)
1282else if (commonAncestor is Paragraph || commonAncestor is Span)
System\Windows\Markup\Baml2006\Baml2006KnownTypes.cs (1)
534case 438: t = () => typeof(Paragraph); break;
System\Windows\Markup\Baml2006\WpfGeneratedKnownProperties.cs (3)
5329Type type = typeof(System.Windows.Documents.Paragraph); 5331this.GetXamlType(typeof(System.Windows.Documents.Paragraph)), // DeclaringType 5337bamlMember.GetDelegate = delegate(object target) { return ((System.Windows.Documents.Paragraph)target).Inlines; };
System\Windows\Markup\Baml2006\WpfGeneratedKnownTypes.cs (1)
7286typeof(System.Windows.Documents.Paragraph),
System\Windows\Markup\KnownTypes.cs (2)
2515case KnownElements.Paragraph: return (o as System.Windows.Documents.Paragraph).Inlines; 5992case KnownElements.Paragraph: t = typeof(System.Windows.Documents.Paragraph); break;