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)
243
root = new
Paragraph
();
System\Windows\Documents\TextRangeEdit.cs (1)
622
paragraph = new
Paragraph
();
System\Windows\Documents\TextRangeEditTables.cs (4)
668
TableCell cell = new TableCell(new
Paragraph
());
917
Paragraph implicitParagraph = new
Paragraph
();
1079
cell.Blocks.Add(new
Paragraph
());
2289
Paragraph newParagraph = new
Paragraph
();
System\Windows\Markup\Baml2006\WpfGeneratedKnownTypes.cs (1)
7286
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)
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)
471
firstBlock is
Paragraph
))
473
Inline firstInline = (firstBlock == null) ? null : ((
Paragraph
)firstBlock).Inlines.FirstInline;
476
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)
367
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)
753
paragraphOrBlockUIContainerToDelete is
Paragraph
&&
Paragraph
.HasNoTextContent((
Paragraph
)paragraphOrBlockUIContainerToDelete) || // empty paragraph
762
paragraphOrBlockUIContainerToDelete is
Paragraph
&&
Paragraph
.HasNoTextContent((
Paragraph
)paragraphOrBlockUIContainerToDelete) || // empty paragraph
797
(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)
1588
Paragraph
paragraph = startPosition.Paragraph;
1592
if (
Paragraph
.HasNoTextContent(paragraph))
1662
(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));
387
FlowDirection flowDirection = (FlowDirection)listToRemove.GetValue(
Paragraph
.FlowDirectionProperty);
389
TextRangeEdit.SetParagraphProperty(range.Start, range.End,
Paragraph
.FlowDirectionProperty, flowDirection);
424
Paragraph
leadingParagraphOfLastItem = lastListItem.Blocks.FirstBlock as
Paragraph
;
549
object listFlowDirectionValue = unindentedList.GetValue(
Paragraph
.FlowDirectionProperty);
571
TextRangeEdit.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)
647
Paragraph
paragraph = insertionPosition.Paragraph;
917
Paragraph
implicitParagraph = new Paragraph();
2289
Paragraph
newParagraph = new Paragraph();
2292
Paragraph
sourceParagraph = currentCell.Blocks.FirstBlock as
Paragraph
;
2296
DependencyProperty[] inheritableProperties = TextSchema.GetInheritableProperties(typeof(
Paragraph
));
2297
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))
833
typeof(
Paragraph
).IsAssignableFrom(parentType) ||
985
Paragraph
.MinWidowLinesProperty,
986
Paragraph
.MinOrphanLinesProperty,
987
Paragraph
.TextIndentProperty,
988
Paragraph
.KeepWithNextProperty,
989
Paragraph
.KeepTogetherProperty,
990
Paragraph
.TextDecorationsProperty,
System\Windows\Documents\TextStore.cs (1)
1271
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)
5327
Type type = typeof(System.Windows.Documents.
Paragraph
);
5329
this.GetXamlType(typeof(System.Windows.Documents.
Paragraph
)), // DeclaringType
5335
bamlMember.GetDelegate = delegate(object target) { return ((System.Windows.Documents.
Paragraph
)target).Inlines; };
System\Windows\Markup\Baml2006\WpfGeneratedKnownTypes.cs (1)
7284
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;