10 instantiations of Paragraph
PresentationFramework (10)
MS\Internal\Controls\StickyNote\StickyNoteContentControl.cs (1)
191((RichTextBox)InnerControl).Document = new FlowDocument(new Paragraph(new Run()));
System\Windows\Controls\RichTextBox.cs (1)
100document.Blocks.Add(new Paragraph());
System\Windows\Documents\FixedElement.cs (1)
243root = new Paragraph();
System\Windows\Documents\TextRangeEdit.cs (1)
622paragraph = new Paragraph();
System\Windows\Documents\TextRangeEditTables.cs (4)
668TableCell cell = new TableCell(new Paragraph()); 917Paragraph implicitParagraph = new Paragraph(); 1079cell.Blocks.Add(new Paragraph()); 2289Paragraph newParagraph = new Paragraph();
System\Windows\Markup\Baml2006\WpfGeneratedKnownTypes.cs (1)
7286bamlType.DefaultConstructor = delegate() { return new System.Windows.Documents.Paragraph(); };
System\Windows\Markup\KnownTypes.cs (1)
1436case 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)
113if (o is Paragraph) 115DependencyObject parent = ((Paragraph)o).Parent;
MS\Internal\Text\DynamicPropertyReader.cs (8)
156Paragraph p = element as Paragraph; 165Paragraph p = element as Paragraph; 174Paragraph p = element as Paragraph; 183Paragraph p = element as Paragraph;
MS\Internal\Text\LineProperties.cs (1)
128_textIndent = (double)element.GetValue(Paragraph.TextIndentProperty);
System\Windows\Controls\RichTextBox.cs (3)
471firstBlock is Paragraph)) 473Inline firstInline = (firstBlock == null) ? null : ((Paragraph)firstBlock).Inlines.FirstInline; 476firstInline == ((Paragraph)firstBlock).Inlines.LastInline &&
System\Windows\Controls\TextRangeAdaptor.cs (1)
230return NativeObjectLengthToPoints((double)tp.GetValue(Paragraph.TextIndentProperty));
System\Windows\Documents\FixedElement.cs (1)
367return 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)
47public 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)
246Paragraph paragraph = thisSelection.Start.Paragraph; 252TextRangeEdit.SetParagraphProperty(thisSelection.Start, thisSelection.End, Paragraph.TextIndentProperty, 0.0, PropertyValueAction.SetValue); 257TextRangeEdit.SetParagraphProperty(thisSelection.Start, thisSelection.End, Paragraph.TextIndentProperty, 20.0, PropertyValueAction.SetValue); 301Paragraph paragraph = thisSelection.Start.Paragraph; 308TextRangeEdit.SetParagraphProperty(thisSelection.Start, thisSelection.End, Paragraph.TextIndentProperty, 20.0, PropertyValueAction.SetValue); 313TextRangeEdit.SetParagraphProperty(thisSelection.Start, thisSelection.End, Paragraph.TextIndentProperty, 0.0, PropertyValueAction.SetValue);
System\windows\Documents\TextEditorTyping.cs (8)
753paragraphOrBlockUIContainerToDelete is Paragraph && Paragraph.HasNoTextContent((Paragraph)paragraphOrBlockUIContainerToDelete) || // empty paragraph 762paragraphOrBlockUIContainerToDelete is Paragraph && Paragraph.HasNoTextContent((Paragraph)paragraphOrBlockUIContainerToDelete) || // empty paragraph 797(paragraphOrBlockUIContainer is Paragraph && ((Paragraph)paragraphOrBlockUIContainer).TextIndent > 0);
System\Windows\Documents\TextPointer.cs (4)
1421if (!TextSchema.IsValidChildOfContainer(containerType, typeof(Paragraph))) 1641public Paragraph Paragraph 1648return this.ParentBlock as Paragraph; 1668return (parentBlock is Paragraph) || (parentBlock is BlockUIContainer) ? parentBlock : null;
System\Windows\Documents\TextPointerBase.cs (3)
658return IsNextToRichBreak(thisPosition, direction, typeof(Paragraph)); 1515Invariant.Assert(lineBreakType == null || lineBreakType == typeof(LineBreak) || lineBreakType == typeof(Paragraph)); 1526typeof(Paragraph).IsAssignableFrom(neighbor))
System\Windows\Documents\TextRange.cs (3)
1588Paragraph paragraph = startPosition.Paragraph; 1592if (Paragraph.HasNoTextContent(paragraph)) 1662(FlowDirection)textSegment.Start.GetValue(Paragraph.FlowDirectionProperty) == FlowDirection.RightToLeft)
System\Windows\Documents\TextRangeBase.cs (4)
444while (value == null && (element is Inline || element is Paragraph || element is TextBlock)) 471while (!typeof(Paragraph).IsAssignableFrom(position.ParentType) && 478if (typeof(Paragraph).IsAssignableFrom(position.ParentType)) 687if (typeof(Paragraph).IsAssignableFrom(elementType) ||
System\Windows\Documents\TextRangeEdit.cs (20)
592Invariant.Assert(position.TextContainer.Parent == null || TextSchema.IsValidChildOfContainer(position.TextContainer.Parent.GetType(), typeof(Paragraph))); 615Paragraph paragraph = position.Paragraph; 656while (!(breakPosition.Parent is Paragraph) && breakPosition.GetPointerContext(LogicalDirection.Forward) == TextPointerContext.ElementStart) 867else if (property == Paragraph.TextAlignmentProperty) 918Paragraph paragraph = block as Paragraph; 1034if (block is Paragraph || block is BlockUIContainer || block is List) 1226if (Paragraph.IsMarginAuto((Thickness)value)) 1290if (!(commonAncestor is Span || commonAncestor is Paragraph)) 1522else if (second is Paragraph && Paragraph.HasNoTextContent((Paragraph) second)) 1536else if (second is Paragraph && Paragraph.HasNoTextContent((Paragraph) first)) 1955commonAncestor is Paragraph) 2235start.Parent is Paragraph) 2237Paragraph paragraph = (Paragraph)start.Parent; 2346new DoublePropertyRange (Paragraph.TextIndentProperty, -Math.Min(1000000, PTS.MaxPageSize), Math.Min(1000000, PTS.MaxPageSize))
System\Windows\Documents\TextRangeEditLists.cs (15)
105if (previousBlock is Paragraph || previousBlock is BlockUIContainer) 125else if (firstParagraphOrBlockUIContainer is Paragraph && secondParagraphOrBlockUIContainer is Paragraph) 229Paragraph.FlowDirectionProperty, precedingList.GetValue(Paragraph.FlowDirectionProperty)); 387FlowDirection flowDirection = (FlowDirection)listToRemove.GetValue(Paragraph.FlowDirectionProperty); 389TextRangeEdit.SetParagraphProperty(range.Start, range.End, Paragraph.FlowDirectionProperty, flowDirection); 424Paragraph leadingParagraphOfLastItem = lastListItem.Blocks.FirstBlock as Paragraph; 549object listFlowDirectionValue = unindentedList.GetValue(Paragraph.FlowDirectionProperty); 571TextRangeEdit.SetParagraphProperty(start, end, Paragraph.FlowDirectionProperty, listFlowDirectionValue); 678!TextSchema.ValuesAreEqual(/*newValue*/newFlowDirectionValue, /*currentValue*/startListItem.List.GetValue(Paragraph.FlowDirectionProperty))) 698!TextSchema.ValuesAreEqual(/*newValue*/newFlowDirectionValue, /*currentValue*/endListItem.List.GetValue(Paragraph.FlowDirectionProperty))) 729(!TextSchema.ValuesAreEqual(/*newValue*/newFlowDirectionValue, /*currentValue*/startListItem.List.GetValue(Paragraph.FlowDirectionProperty)))) 737(!TextSchema.ValuesAreEqual(/*newValue*/newFlowDirectionValue, /*currentValue*/endListItem.List.GetValue(Paragraph.FlowDirectionProperty))))
System\Windows\Documents\TextRangeEditTables.cs (7)
647Paragraph paragraph = insertionPosition.Paragraph; 917Paragraph implicitParagraph = new Paragraph(); 2289Paragraph newParagraph = new Paragraph(); 2292Paragraph sourceParagraph = currentCell.Blocks.FirstBlock as Paragraph; 2296DependencyProperty[] inheritableProperties = TextSchema.GetInheritableProperties(typeof(Paragraph)); 2297DependencyProperty[] nonInheritableProperties = TextSchema.GetNoninheritableProperties(typeof(Paragraph));
System\Windows\Documents\TextRangeSerialization.cs (12)
659typeof(Paragraph).IsAssignableFrom(contextType) || 886if ((property == Block.MarginProperty && (typeof(Paragraph).IsAssignableFrom(propertyOwnerType) || typeof(List).IsAssignableFrom(propertyOwnerType))) 891if (Paragraph.IsMarginAuto(thickness)) 1303Invariant.Assert(insertionPosition.Parent is Paragraph, "insertionPosition must be in a scope of a Paragraph after splitting formatting elements"); 1455while (navigator != null && !(navigator.Parent is Paragraph)) 1469Invariant.Assert(navigator.Parent is Paragraph, "We suppose have a first paragraph found"); 1470Paragraph firstParagraph = (Paragraph)navigator.Parent; 1473while (navigator != null && !(navigator.Parent is Paragraph)) 1487Invariant.Assert(navigator.Parent is Paragraph, "We suppose a second paragraph found"); 1488Paragraph secondParagraph = (Paragraph)navigator.Parent;
System\Windows\Documents\TextSchema.cs (13)
306typeof(Paragraph).IsAssignableFrom(elementType) || 326typeof(Paragraph).IsAssignableFrom(elementType) || 404else if (typeof(Paragraph).IsAssignableFrom(type)) 406return typeof(Paragraph); 422return reduceElement ? typeof(Paragraph) : typeof(BlockUIContainer); 518else if (typeof(Paragraph).IsAssignableFrom(type)) 833typeof(Paragraph).IsAssignableFrom(parentType) || 985Paragraph.MinWidowLinesProperty, 986Paragraph.MinOrphanLinesProperty, 987Paragraph.TextIndentProperty, 988Paragraph.KeepWithNextProperty, 989Paragraph.KeepTogetherProperty, 990Paragraph.TextDecorationsProperty,
System\Windows\Documents\TextStore.cs (1)
1271else if (commonAncestor is Paragraph || commonAncestor is Span)
System\Windows\Markup\Baml2006\Baml2006KnownTypes.cs (1)
532case 438: t = () => typeof(Paragraph); break;
System\Windows\Markup\Baml2006\WpfGeneratedKnownProperties.cs (3)
5327Type type = typeof(System.Windows.Documents.Paragraph); 5329this.GetXamlType(typeof(System.Windows.Documents.Paragraph)), // DeclaringType 5335bamlMember.GetDelegate = delegate(object target) { return ((System.Windows.Documents.Paragraph)target).Inlines; };
System\Windows\Markup\Baml2006\WpfGeneratedKnownTypes.cs (1)
7284typeof(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;