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