10 instantiations of Paragraph
PresentationFramework (10)
MS\Internal\Controls\StickyNote\StickyNoteContentControl.cs (1)
190((RichTextBox)InnerControl).Document = new FlowDocument(new Paragraph(new Run()));
System\Windows\Controls\RichTextBox.cs (1)
99document.Blocks.Add(new Paragraph());
System\Windows\Documents\FixedElement.cs (1)
244root = new Paragraph();
System\Windows\Documents\TextRangeEdit.cs (1)
621paragraph = new Paragraph();
System\Windows\Documents\TextRangeEditTables.cs (4)
669TableCell cell = new TableCell(new Paragraph()) 920Paragraph implicitParagraph = new Paragraph(); 1082cell.Blocks.Add(new Paragraph()); 2292Paragraph newParagraph = new Paragraph();
System\Windows\Markup\Baml2006\WpfGeneratedKnownTypes.cs (1)
8018DefaultConstructor = delegate () { return new System.Windows.Documents.Paragraph(); },
System\Windows\Markup\KnownTypes.cs (1)
1429case KnownElements.Paragraph: o = new System.Windows.Documents.Paragraph(); break;
136 references to Paragraph
Microsoft.VisualStudio.LanguageServices (2)
artifacts\obj\Microsoft.VisualStudio.LanguageServices\Release\net472\PreviewPane\PreviewPane.g.cs (2)
118internal System.Windows.Documents.Paragraph DescriptionParagraph; 247this.DescriptionParagraph = ((System.Windows.Documents.Paragraph)(target));
PresentationFramework (134)
MS\Internal\PtsHost\MbpInfo.cs (2)
112if (o is Paragraph) 114DependencyObject parent = ((Paragraph)o).Parent;
MS\Internal\Text\DynamicPropertyReader.cs (8)
155Paragraph p = element as Paragraph; 164Paragraph p = element as Paragraph; 173Paragraph p = element as Paragraph; 182Paragraph p = element as Paragraph;
MS\Internal\Text\LineProperties.cs (1)
127_textIndent = (double)element.GetValue(Paragraph.TextIndentProperty);
System\Windows\Controls\RichTextBox.cs (3)
472firstBlock is Paragraph)) 474Inline firstInline = (firstBlock == null) ? null : ((Paragraph)firstBlock).Inlines.FirstInline; 477firstInline == ((Paragraph)firstBlock).Inlines.LastInline &&
System\Windows\Controls\TextRangeAdaptor.cs (1)
229return NativeObjectLengthToPoints((double)tp.GetValue(Paragraph.TextIndentProperty));
System\Windows\Documents\FixedElement.cs (1)
372return typeof(Paragraph);
System\Windows\Documents\FlowDocument.cs (2)
48/// <see cref="Paragraph"/>, <see cref="Section"/>, <see cref="List"/>, <see cref="Table"/>. 52/// Each of block elements has specific schema, only <see cref="Paragraph"/> allowing
System\Windows\Documents\List.cs (3)
273block.ClearValue(Paragraph.TextIndentProperty); 284Paragraph.FlowDirectionProperty, firstBlock.GetValue(Paragraph.FlowDirectionProperty));
System\Windows\Documents\ListItem.cs (1)
46public ListItem(Paragraph paragraph)
System\Windows\Documents\Paragraph.cs (9)
34DefaultStyleKeyProperty.OverrideMetadata(typeof(Paragraph), new FrameworkPropertyMetadata(typeof(Paragraph))); 83typeof(Paragraph), 105typeof(Paragraph), 128typeof(Paragraph), 152typeof(Paragraph), 175typeof(Paragraph), 198typeof(Paragraph), 245internal static bool HasNoTextContent(Paragraph paragraph)
System\windows\Documents\TextEditorLists.cs (6)
245Paragraph paragraph = thisSelection.Start.Paragraph; 251TextRangeEdit.SetParagraphProperty(thisSelection.Start, thisSelection.End, Paragraph.TextIndentProperty, 0.0, PropertyValueAction.SetValue); 256TextRangeEdit.SetParagraphProperty(thisSelection.Start, thisSelection.End, Paragraph.TextIndentProperty, 20.0, PropertyValueAction.SetValue); 300Paragraph paragraph = thisSelection.Start.Paragraph; 307TextRangeEdit.SetParagraphProperty(thisSelection.Start, thisSelection.End, Paragraph.TextIndentProperty, 20.0, PropertyValueAction.SetValue); 312TextRangeEdit.SetParagraphProperty(thisSelection.Start, thisSelection.End, Paragraph.TextIndentProperty, 0.0, PropertyValueAction.SetValue);
System\windows\Documents\TextEditorTyping.cs (8)
743paragraphOrBlockUIContainerToDelete is Paragraph && Paragraph.HasNoTextContent((Paragraph)paragraphOrBlockUIContainerToDelete) || // empty paragraph 752paragraphOrBlockUIContainerToDelete is Paragraph && Paragraph.HasNoTextContent((Paragraph)paragraphOrBlockUIContainerToDelete) || // empty paragraph 787(paragraphOrBlockUIContainer is Paragraph && ((Paragraph)paragraphOrBlockUIContainer).TextIndent > 0);
System\Windows\Documents\TextPointer.cs (4)
1420if (!TextSchema.IsValidChildOfContainer(containerType, typeof(Paragraph))) 1640public Paragraph Paragraph 1647return this.ParentBlock as Paragraph; 1667return (parentBlock is Paragraph) || (parentBlock is BlockUIContainer) ? parentBlock : null;
System\Windows\Documents\TextPointerBase.cs (3)
657return IsNextToRichBreak(thisPosition, direction, typeof(Paragraph)); 1514Invariant.Assert(lineBreakType == null || lineBreakType == typeof(LineBreak) || lineBreakType == typeof(Paragraph)); 1525typeof(Paragraph).IsAssignableFrom(neighbor))
System\Windows\Documents\TextRange.cs (3)
1579Paragraph paragraph = startPosition.Paragraph; 1583if (Paragraph.HasNoTextContent(paragraph)) 1654(FlowDirection)textSegment.Start.GetValue(Paragraph.FlowDirectionProperty) == FlowDirection.RightToLeft)
System\Windows\Documents\TextRangeBase.cs (4)
443while (value == null && (element is Inline || element is Paragraph || element is TextBlock)) 470while (!typeof(Paragraph).IsAssignableFrom(position.ParentType) && 477if (typeof(Paragraph).IsAssignableFrom(position.ParentType)) 686if (typeof(Paragraph).IsAssignableFrom(elementType) ||
System\Windows\Documents\TextRangeEdit.cs (20)
591Invariant.Assert(position.TextContainer.Parent == null || TextSchema.IsValidChildOfContainer(position.TextContainer.Parent.GetType(), typeof(Paragraph))); 614Paragraph paragraph = position.Paragraph; 655while (!(breakPosition.Parent is Paragraph) && breakPosition.GetPointerContext(LogicalDirection.Forward) == TextPointerContext.ElementStart) 866else if (property == Paragraph.TextAlignmentProperty) 917Paragraph paragraph = block as Paragraph; 1033if (block is Paragraph || block is BlockUIContainer || block is List) 1225if (Paragraph.IsMarginAuto((Thickness)value)) 1289if (!(commonAncestor is Span || commonAncestor is Paragraph)) 1521else if (second is Paragraph && Paragraph.HasNoTextContent((Paragraph) second)) 1535else if (second is Paragraph && Paragraph.HasNoTextContent((Paragraph) first)) 1954commonAncestor is Paragraph) 2234start.Parent is Paragraph) 2236Paragraph paragraph = (Paragraph)start.Parent; 2345new DoublePropertyRange (Paragraph.TextIndentProperty, -Math.Min(1000000, PTS.MaxPageSize), Math.Min(1000000, PTS.MaxPageSize))
System\Windows\Documents\TextRangeEditLists.cs (15)
104if (previousBlock is Paragraph || previousBlock is BlockUIContainer) 124else if (firstParagraphOrBlockUIContainer is Paragraph && secondParagraphOrBlockUIContainer is Paragraph) 228Paragraph.FlowDirectionProperty, precedingList.GetValue(Paragraph.FlowDirectionProperty)); 388FlowDirection flowDirection = (FlowDirection)listToRemove.GetValue(Paragraph.FlowDirectionProperty); 390TextRangeEdit.SetParagraphProperty(range.Start, range.End, Paragraph.FlowDirectionProperty, flowDirection); 425Paragraph leadingParagraphOfLastItem = lastListItem.Blocks.FirstBlock as Paragraph; 550object listFlowDirectionValue = unindentedList.GetValue(Paragraph.FlowDirectionProperty); 572TextRangeEdit.SetParagraphProperty(start, end, Paragraph.FlowDirectionProperty, listFlowDirectionValue); 679!TextSchema.ValuesAreEqual(/*newValue*/newFlowDirectionValue, /*currentValue*/startListItem.List.GetValue(Paragraph.FlowDirectionProperty))) 699!TextSchema.ValuesAreEqual(/*newValue*/newFlowDirectionValue, /*currentValue*/endListItem.List.GetValue(Paragraph.FlowDirectionProperty))) 730(!TextSchema.ValuesAreEqual(/*newValue*/newFlowDirectionValue, /*currentValue*/startListItem.List.GetValue(Paragraph.FlowDirectionProperty)))) 738(!TextSchema.ValuesAreEqual(/*newValue*/newFlowDirectionValue, /*currentValue*/endListItem.List.GetValue(Paragraph.FlowDirectionProperty))))
System\Windows\Documents\TextRangeEditTables.cs (7)
646Paragraph paragraph = insertionPosition.Paragraph; 920Paragraph implicitParagraph = new Paragraph(); 2292Paragraph newParagraph = new Paragraph(); 2295Paragraph sourceParagraph = currentCell.Blocks.FirstBlock as Paragraph; 2299DependencyProperty[] inheritableProperties = TextSchema.GetInheritableProperties(typeof(Paragraph)); 2300DependencyProperty[] nonInheritableProperties = TextSchema.GetNoninheritableProperties(typeof(Paragraph));
System\Windows\Documents\TextRangeSerialization.cs (12)
658typeof(Paragraph).IsAssignableFrom(contextType) || 885if ((property == Block.MarginProperty && (typeof(Paragraph).IsAssignableFrom(propertyOwnerType) || typeof(List).IsAssignableFrom(propertyOwnerType))) 890if (Paragraph.IsMarginAuto(thickness)) 1302Invariant.Assert(insertionPosition.Parent is Paragraph, "insertionPosition must be in a scope of a Paragraph after splitting formatting elements"); 1454while (navigator != null && !(navigator.Parent is Paragraph)) 1468Invariant.Assert(navigator.Parent is Paragraph, "We suppose have a first paragraph found"); 1469Paragraph firstParagraph = (Paragraph)navigator.Parent; 1472while (navigator != null && !(navigator.Parent is Paragraph)) 1486Invariant.Assert(navigator.Parent is Paragraph, "We suppose a second paragraph found"); 1487Paragraph secondParagraph = (Paragraph)navigator.Parent;
System\Windows\Documents\TextSchema.cs (13)
305typeof(Paragraph).IsAssignableFrom(elementType) || 325typeof(Paragraph).IsAssignableFrom(elementType) || 403else if (typeof(Paragraph).IsAssignableFrom(type)) 405return typeof(Paragraph); 421return reduceElement ? typeof(Paragraph) : typeof(BlockUIContainer); 517else if (typeof(Paragraph).IsAssignableFrom(type)) 827typeof(Paragraph).IsAssignableFrom(parentType) || 979Paragraph.MinWidowLinesProperty, 980Paragraph.MinOrphanLinesProperty, 981Paragraph.TextIndentProperty, 982Paragraph.KeepWithNextProperty, 983Paragraph.KeepTogetherProperty, 984Paragraph.TextDecorationsProperty,
System\Windows\Documents\TextStore.cs (1)
1267else if (commonAncestor is Paragraph || commonAncestor is Span)
System\Windows\Markup\Baml2006\Baml2006KnownTypes.cs (1)
531case 438: t = () => typeof(Paragraph); break;
System\Windows\Markup\Baml2006\WpfGeneratedKnownProperties.cs (3)
5678Type type = typeof(System.Windows.Documents.Paragraph); 5680this.GetXamlType(typeof(System.Windows.Documents.Paragraph)), // DeclaringType 5687GetDelegate = delegate (object target) { return ((System.Windows.Documents.Paragraph)target).Inlines; },
System\Windows\Markup\Baml2006\WpfGeneratedKnownTypes.cs (1)
8015typeof(System.Windows.Documents.Paragraph),
System\Windows\Markup\KnownTypes.cs (2)
2508case KnownElements.Paragraph: return (o as System.Windows.Documents.Paragraph).Inlines; 5985case KnownElements.Paragraph: t = typeof(System.Windows.Documents.Paragraph); break;