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)
104
document.Blocks.Add(new
Paragraph
());
System\Windows\Documents\FixedElement.cs (1)
251
root = new
Paragraph
();
System\Windows\Documents\TextRangeEdit.cs (1)
624
paragraph = new
Paragraph
();
System\Windows\Documents\TextRangeEditTables.cs (4)
670
TableCell cell = new TableCell(new
Paragraph
());
919
Paragraph implicitParagraph = new
Paragraph
();
1081
cell.Blocks.Add(new
Paragraph
());
2291
Paragraph newParagraph = new
Paragraph
();
System\Windows\Markup\Baml2006\WpfGeneratedKnownTypes.cs (1)
7288
bamlType.DefaultConstructor = delegate() { return new System.Windows.Documents.
Paragraph
(); };
System\Windows\Markup\KnownTypes.cs (1)
1436
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)
115
if (o is
Paragraph
)
117
DependencyObject parent = ((
Paragraph
)o).Parent;
MS\Internal\Text\DynamicPropertyReader.cs (8)
162
Paragraph
p = element as
Paragraph
;
171
Paragraph
p = element as
Paragraph
;
180
Paragraph
p = element as
Paragraph
;
189
Paragraph
p = element as
Paragraph
;
MS\Internal\Text\LineProperties.cs (1)
132
_textIndent = (double)element.GetValue(
Paragraph
.TextIndentProperty);
System\Windows\Controls\RichTextBox.cs (3)
475
firstBlock is
Paragraph
))
477
Inline firstInline = (firstBlock == null) ? null : ((
Paragraph
)firstBlock).Inlines.FirstInline;
480
firstInline == ((
Paragraph
)firstBlock).Inlines.LastInline &&
System\Windows\Controls\TextRangeAdaptor.cs (1)
232
return NativeObjectLengthToPoints((double)tp.GetValue(
Paragraph
.TextIndentProperty));
System\Windows\Documents\FixedElement.cs (1)
375
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)
48
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)
262
Paragraph
paragraph = thisSelection.Start.Paragraph;
268
TextRangeEdit.SetParagraphProperty(thisSelection.Start, thisSelection.End,
Paragraph
.TextIndentProperty, 0.0, PropertyValueAction.SetValue);
273
TextRangeEdit.SetParagraphProperty(thisSelection.Start, thisSelection.End,
Paragraph
.TextIndentProperty, 20.0, PropertyValueAction.SetValue);
317
Paragraph
paragraph = thisSelection.Start.Paragraph;
324
TextRangeEdit.SetParagraphProperty(thisSelection.Start, thisSelection.End,
Paragraph
.TextIndentProperty, 20.0, PropertyValueAction.SetValue);
329
TextRangeEdit.SetParagraphProperty(thisSelection.Start, thisSelection.End,
Paragraph
.TextIndentProperty, 0.0, PropertyValueAction.SetValue);
System\windows\Documents\TextEditorTyping.cs (8)
762
paragraphOrBlockUIContainerToDelete is
Paragraph
&&
Paragraph
.HasNoTextContent((
Paragraph
)paragraphOrBlockUIContainerToDelete) || // empty paragraph
771
paragraphOrBlockUIContainerToDelete is
Paragraph
&&
Paragraph
.HasNoTextContent((
Paragraph
)paragraphOrBlockUIContainerToDelete) || // empty paragraph
806
(paragraphOrBlockUIContainer is
Paragraph
&& ((
Paragraph
)paragraphOrBlockUIContainer).TextIndent > 0);
System\Windows\Documents\TextPointer.cs (4)
1426
if (!TextSchema.IsValidChildOfContainer(containerType, typeof(
Paragraph
)))
1646
public
Paragraph
Paragraph
1653
return this.ParentBlock as
Paragraph
;
1673
return (parentBlock is
Paragraph
) || (parentBlock is BlockUIContainer) ? parentBlock : null;
System\Windows\Documents\TextPointerBase.cs (3)
660
return IsNextToRichBreak(thisPosition, direction, typeof(
Paragraph
));
1517
Invariant.Assert(lineBreakType == null || lineBreakType == typeof(LineBreak) || lineBreakType == typeof(
Paragraph
));
1528
typeof(
Paragraph
).IsAssignableFrom(neighbor))
System\Windows\Documents\TextRange.cs (3)
1591
Paragraph
paragraph = startPosition.Paragraph;
1595
if (
Paragraph
.HasNoTextContent(paragraph))
1665
(FlowDirection)textSegment.Start.GetValue(
Paragraph
.FlowDirectionProperty) == FlowDirection.RightToLeft)
System\Windows\Documents\TextRangeBase.cs (4)
447
while (value == null && (element is Inline || element is
Paragraph
|| element is TextBlock))
474
while (!typeof(
Paragraph
).IsAssignableFrom(position.ParentType) &&
481
if (typeof(
Paragraph
).IsAssignableFrom(position.ParentType))
690
if (typeof(
Paragraph
).IsAssignableFrom(elementType) ||
System\Windows\Documents\TextRangeEdit.cs (20)
594
Invariant.Assert(position.TextContainer.Parent == null || TextSchema.IsValidChildOfContainer(position.TextContainer.Parent.GetType(), typeof(
Paragraph
)));
617
Paragraph
paragraph = position.Paragraph;
658
while (!(breakPosition.Parent is
Paragraph
) && breakPosition.GetPointerContext(LogicalDirection.Forward) == TextPointerContext.ElementStart)
869
else if (property ==
Paragraph
.TextAlignmentProperty)
920
Paragraph
paragraph = block as
Paragraph
;
1036
if (block is
Paragraph
|| block is BlockUIContainer || block is List)
1228
if (
Paragraph
.IsMarginAuto((Thickness)value))
1292
if (!(commonAncestor is Span || commonAncestor is
Paragraph
))
1524
else if (second is
Paragraph
&&
Paragraph
.HasNoTextContent((
Paragraph
) second))
1538
else if (second is
Paragraph
&&
Paragraph
.HasNoTextContent((
Paragraph
) first))
1957
commonAncestor is
Paragraph
)
2237
start.Parent is
Paragraph
)
2239
Paragraph
paragraph = (
Paragraph
)start.Parent;
2348
new DoublePropertyRange (
Paragraph
.TextIndentProperty, -Math.Min(1000000, PTS.MaxPageSize), Math.Min(1000000, PTS.MaxPageSize))
System\Windows\Documents\TextRangeEditLists.cs (15)
107
if (previousBlock is
Paragraph
|| previousBlock is BlockUIContainer)
127
else if (firstParagraphOrBlockUIContainer is
Paragraph
&& secondParagraphOrBlockUIContainer is
Paragraph
)
231
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)
649
Paragraph
paragraph = insertionPosition.Paragraph;
919
Paragraph
implicitParagraph = new Paragraph();
2291
Paragraph
newParagraph = new Paragraph();
2294
Paragraph
sourceParagraph = currentCell.Blocks.FirstBlock as
Paragraph
;
2298
DependencyProperty[] inheritableProperties = TextSchema.GetInheritableProperties(typeof(
Paragraph
));
2299
DependencyProperty[] nonInheritableProperties = TextSchema.GetNoninheritableProperties(typeof(
Paragraph
));
System\Windows\Documents\TextRangeSerialization.cs (12)
665
typeof(
Paragraph
).IsAssignableFrom(contextType) ||
892
if ((property == Block.MarginProperty && (typeof(
Paragraph
).IsAssignableFrom(propertyOwnerType) || typeof(List).IsAssignableFrom(propertyOwnerType)))
897
if (
Paragraph
.IsMarginAuto(thickness))
1309
Invariant.Assert(insertionPosition.Parent is
Paragraph
, "insertionPosition must be in a scope of a Paragraph after splitting formatting elements");
1461
while (navigator != null && !(navigator.Parent is
Paragraph
))
1475
Invariant.Assert(navigator.Parent is
Paragraph
, "We suppose have a first paragraph found");
1476
Paragraph
firstParagraph = (
Paragraph
)navigator.Parent;
1479
while (navigator != null && !(navigator.Parent is
Paragraph
))
1493
Invariant.Assert(navigator.Parent is
Paragraph
, "We suppose a second paragraph found");
1494
Paragraph
secondParagraph = (
Paragraph
)navigator.Parent;
System\Windows\Documents\TextSchema.cs (13)
307
typeof(
Paragraph
).IsAssignableFrom(elementType) ||
327
typeof(
Paragraph
).IsAssignableFrom(elementType) ||
405
else if (typeof(
Paragraph
).IsAssignableFrom(type))
407
return typeof(
Paragraph
);
423
return reduceElement ? typeof(
Paragraph
) : typeof(BlockUIContainer);
519
else if (typeof(
Paragraph
).IsAssignableFrom(type))
834
typeof(
Paragraph
).IsAssignableFrom(parentType) ||
986
Paragraph
.MinWidowLinesProperty,
987
Paragraph
.MinOrphanLinesProperty,
988
Paragraph
.TextIndentProperty,
989
Paragraph
.KeepWithNextProperty,
990
Paragraph
.KeepTogetherProperty,
991
Paragraph
.TextDecorationsProperty,
System\Windows\Documents\TextStore.cs (1)
1282
else if (commonAncestor is
Paragraph
|| commonAncestor is Span)
System\Windows\Markup\Baml2006\Baml2006KnownTypes.cs (1)
534
case 438: t = () => typeof(
Paragraph
); break;
System\Windows\Markup\Baml2006\WpfGeneratedKnownProperties.cs (3)
5329
Type type = typeof(System.Windows.Documents.
Paragraph
);
5331
this.GetXamlType(typeof(System.Windows.Documents.
Paragraph
)), // DeclaringType
5337
bamlMember.GetDelegate = delegate(object target) { return ((System.Windows.Documents.
Paragraph
)target).Inlines; };
System\Windows\Markup\Baml2006\WpfGeneratedKnownTypes.cs (1)
7286
typeof(System.Windows.Documents.
Paragraph
),
System\Windows\Markup\KnownTypes.cs (2)
2515
case KnownElements.Paragraph: return (o as System.Windows.Documents.
Paragraph
).Inlines;
5992
case KnownElements.Paragraph: t = typeof(System.Windows.Documents.
Paragraph
); break;