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)
100
document.Blocks.Add(new
Paragraph
());
System\Windows\Documents\FixedElement.cs (1)
245
root = new
Paragraph
();
System\Windows\Documents\TextRangeEdit.cs (1)
622
paragraph = new
Paragraph
();
System\Windows\Documents\TextRangeEditTables.cs (4)
670
TableCell cell = new TableCell(new
Paragraph
())
921
Paragraph implicitParagraph = new
Paragraph
();
1083
cell.Blocks.Add(new
Paragraph
());
2293
Paragraph newParagraph = new
Paragraph
();
System\Windows\Markup\Baml2006\WpfGeneratedKnownTypes.cs (1)
8019
DefaultConstructor = delegate () { return new System.Windows.Documents.
Paragraph
(); },
System\Windows\Markup\KnownTypes.cs (1)
1430
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)
113
if (o is
Paragraph
)
115
DependencyObject parent = ((
Paragraph
)o).Parent;
MS\Internal\Text\DynamicPropertyReader.cs (8)
156
Paragraph
p = element as
Paragraph
;
165
Paragraph
p = element as
Paragraph
;
174
Paragraph
p = element as
Paragraph
;
183
Paragraph
p = element as
Paragraph
;
MS\Internal\Text\LineProperties.cs (1)
128
_textIndent = (double)element.GetValue(
Paragraph
.TextIndentProperty);
System\Windows\Controls\RichTextBox.cs (3)
473
firstBlock is
Paragraph
))
475
Inline firstInline = (firstBlock == null) ? null : ((
Paragraph
)firstBlock).Inlines.FirstInline;
478
firstInline == ((
Paragraph
)firstBlock).Inlines.LastInline &&
System\Windows\Controls\TextRangeAdaptor.cs (1)
230
return NativeObjectLengthToPoints((double)tp.GetValue(
Paragraph
.TextIndentProperty));
System\Windows\Documents\FixedElement.cs (1)
373
return 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)
274
block.ClearValue(
Paragraph
.TextIndentProperty);
285
Paragraph
.FlowDirectionProperty, firstBlock.GetValue(
Paragraph
.FlowDirectionProperty));
System\Windows\Documents\ListItem.cs (1)
47
public ListItem(
Paragraph
paragraph)
System\Windows\Documents\Paragraph.cs (9)
35
DefaultStyleKeyProperty.OverrideMetadata(typeof(
Paragraph
), new FrameworkPropertyMetadata(typeof(
Paragraph
)));
84
typeof(
Paragraph
),
106
typeof(
Paragraph
),
129
typeof(
Paragraph
),
153
typeof(
Paragraph
),
176
typeof(
Paragraph
),
199
typeof(
Paragraph
),
246
internal static bool HasNoTextContent(
Paragraph
paragraph)
System\windows\Documents\TextEditorLists.cs (6)
246
Paragraph
paragraph = thisSelection.Start.Paragraph;
252
TextRangeEdit.SetParagraphProperty(thisSelection.Start, thisSelection.End,
Paragraph
.TextIndentProperty, 0.0, PropertyValueAction.SetValue);
257
TextRangeEdit.SetParagraphProperty(thisSelection.Start, thisSelection.End,
Paragraph
.TextIndentProperty, 20.0, PropertyValueAction.SetValue);
301
Paragraph
paragraph = thisSelection.Start.Paragraph;
308
TextRangeEdit.SetParagraphProperty(thisSelection.Start, thisSelection.End,
Paragraph
.TextIndentProperty, 20.0, PropertyValueAction.SetValue);
313
TextRangeEdit.SetParagraphProperty(thisSelection.Start, thisSelection.End,
Paragraph
.TextIndentProperty, 0.0, PropertyValueAction.SetValue);
System\windows\Documents\TextEditorTyping.cs (8)
744
paragraphOrBlockUIContainerToDelete is
Paragraph
&&
Paragraph
.HasNoTextContent((
Paragraph
)paragraphOrBlockUIContainerToDelete) || // empty paragraph
753
paragraphOrBlockUIContainerToDelete is
Paragraph
&&
Paragraph
.HasNoTextContent((
Paragraph
)paragraphOrBlockUIContainerToDelete) || // empty paragraph
788
(paragraphOrBlockUIContainer is
Paragraph
&& ((
Paragraph
)paragraphOrBlockUIContainer).TextIndent > 0);
System\Windows\Documents\TextPointer.cs (4)
1421
if (!TextSchema.IsValidChildOfContainer(containerType, typeof(
Paragraph
)))
1641
public
Paragraph
Paragraph
1648
return this.ParentBlock as
Paragraph
;
1668
return (parentBlock is
Paragraph
) || (parentBlock is BlockUIContainer) ? parentBlock : null;
System\Windows\Documents\TextPointerBase.cs (3)
658
return IsNextToRichBreak(thisPosition, direction, typeof(
Paragraph
));
1515
Invariant.Assert(lineBreakType == null || lineBreakType == typeof(LineBreak) || lineBreakType == typeof(
Paragraph
));
1526
typeof(
Paragraph
).IsAssignableFrom(neighbor))
System\Windows\Documents\TextRange.cs (3)
1580
Paragraph
paragraph = startPosition.Paragraph;
1584
if (
Paragraph
.HasNoTextContent(paragraph))
1655
(FlowDirection)textSegment.Start.GetValue(
Paragraph
.FlowDirectionProperty) == FlowDirection.RightToLeft)
System\Windows\Documents\TextRangeBase.cs (4)
444
while (value == null && (element is Inline || element is
Paragraph
|| element is TextBlock))
471
while (!typeof(
Paragraph
).IsAssignableFrom(position.ParentType) &&
478
if (typeof(
Paragraph
).IsAssignableFrom(position.ParentType))
687
if (typeof(
Paragraph
).IsAssignableFrom(elementType) ||
System\Windows\Documents\TextRangeEdit.cs (20)
592
Invariant.Assert(position.TextContainer.Parent == null || TextSchema.IsValidChildOfContainer(position.TextContainer.Parent.GetType(), typeof(
Paragraph
)));
615
Paragraph
paragraph = position.Paragraph;
656
while (!(breakPosition.Parent is
Paragraph
) && breakPosition.GetPointerContext(LogicalDirection.Forward) == TextPointerContext.ElementStart)
867
else if (property ==
Paragraph
.TextAlignmentProperty)
918
Paragraph
paragraph = block as
Paragraph
;
1034
if (block is
Paragraph
|| block is BlockUIContainer || block is List)
1226
if (
Paragraph
.IsMarginAuto((Thickness)value))
1290
if (!(commonAncestor is Span || commonAncestor is
Paragraph
))
1522
else if (second is
Paragraph
&&
Paragraph
.HasNoTextContent((
Paragraph
) second))
1536
else if (second is
Paragraph
&&
Paragraph
.HasNoTextContent((
Paragraph
) first))
1955
commonAncestor is
Paragraph
)
2235
start.Parent is
Paragraph
)
2237
Paragraph
paragraph = (
Paragraph
)start.Parent;
2346
new DoublePropertyRange (
Paragraph
.TextIndentProperty, -Math.Min(1000000, PTS.MaxPageSize), Math.Min(1000000, PTS.MaxPageSize))
System\Windows\Documents\TextRangeEditLists.cs (15)
105
if (previousBlock is
Paragraph
|| previousBlock is BlockUIContainer)
125
else if (firstParagraphOrBlockUIContainer is
Paragraph
&& secondParagraphOrBlockUIContainer is
Paragraph
)
229
Paragraph
.FlowDirectionProperty, precedingList.GetValue(
Paragraph
.FlowDirectionProperty));
389
FlowDirection flowDirection = (FlowDirection)listToRemove.GetValue(
Paragraph
.FlowDirectionProperty);
391
TextRangeEdit.SetParagraphProperty(range.Start, range.End,
Paragraph
.FlowDirectionProperty, flowDirection);
426
Paragraph
leadingParagraphOfLastItem = lastListItem.Blocks.FirstBlock as
Paragraph
;
551
object listFlowDirectionValue = unindentedList.GetValue(
Paragraph
.FlowDirectionProperty);
573
TextRangeEdit.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)
647
Paragraph
paragraph = insertionPosition.Paragraph;
921
Paragraph
implicitParagraph = new Paragraph();
2293
Paragraph
newParagraph = new Paragraph();
2296
Paragraph
sourceParagraph = currentCell.Blocks.FirstBlock as
Paragraph
;
2300
DependencyProperty[] inheritableProperties = TextSchema.GetInheritableProperties(typeof(
Paragraph
));
2301
DependencyProperty[] nonInheritableProperties = TextSchema.GetNoninheritableProperties(typeof(
Paragraph
));
System\Windows\Documents\TextRangeSerialization.cs (12)
659
typeof(
Paragraph
).IsAssignableFrom(contextType) ||
886
if ((property == Block.MarginProperty && (typeof(
Paragraph
).IsAssignableFrom(propertyOwnerType) || typeof(List).IsAssignableFrom(propertyOwnerType)))
891
if (
Paragraph
.IsMarginAuto(thickness))
1303
Invariant.Assert(insertionPosition.Parent is
Paragraph
, "insertionPosition must be in a scope of a Paragraph after splitting formatting elements");
1455
while (navigator != null && !(navigator.Parent is
Paragraph
))
1469
Invariant.Assert(navigator.Parent is
Paragraph
, "We suppose have a first paragraph found");
1470
Paragraph
firstParagraph = (
Paragraph
)navigator.Parent;
1473
while (navigator != null && !(navigator.Parent is
Paragraph
))
1487
Invariant.Assert(navigator.Parent is
Paragraph
, "We suppose a second paragraph found");
1488
Paragraph
secondParagraph = (
Paragraph
)navigator.Parent;
System\Windows\Documents\TextSchema.cs (13)
306
typeof(
Paragraph
).IsAssignableFrom(elementType) ||
326
typeof(
Paragraph
).IsAssignableFrom(elementType) ||
404
else if (typeof(
Paragraph
).IsAssignableFrom(type))
406
return typeof(
Paragraph
);
422
return reduceElement ? typeof(
Paragraph
) : typeof(BlockUIContainer);
518
else if (typeof(
Paragraph
).IsAssignableFrom(type))
828
typeof(
Paragraph
).IsAssignableFrom(parentType) ||
980
Paragraph
.MinWidowLinesProperty,
981
Paragraph
.MinOrphanLinesProperty,
982
Paragraph
.TextIndentProperty,
983
Paragraph
.KeepWithNextProperty,
984
Paragraph
.KeepTogetherProperty,
985
Paragraph
.TextDecorationsProperty,
System\Windows\Documents\TextStore.cs (1)
1268
else if (commonAncestor is
Paragraph
|| commonAncestor is Span)
System\Windows\Markup\Baml2006\Baml2006KnownTypes.cs (1)
532
case 438: t = () => typeof(
Paragraph
); break;
System\Windows\Markup\Baml2006\WpfGeneratedKnownProperties.cs (3)
5679
Type type = typeof(System.Windows.Documents.
Paragraph
);
5681
this.GetXamlType(typeof(System.Windows.Documents.
Paragraph
)), // DeclaringType
5688
GetDelegate = delegate (object target) { return ((System.Windows.Documents.
Paragraph
)target).Inlines; },
System\Windows\Markup\Baml2006\WpfGeneratedKnownTypes.cs (1)
8016
typeof(System.Windows.Documents.
Paragraph
),
System\Windows\Markup\KnownTypes.cs (2)
2509
case KnownElements.Paragraph: return (o as System.Windows.Documents.
Paragraph
).Inlines;
5986
case KnownElements.Paragraph: t = typeof(System.Windows.Documents.
Paragraph
); break;