src\Framework\System\Windows\Documents\Block.cs (16)
57public Block NextBlock
61return this.NextElement as Block;
69public Block PreviousBlock
73return this.PreviousElement as Block;
84typeof(Block),
134typeof(Block),
156typeof(Block),
178typeof(Block),
200typeof(Block),
221typeof(Block),
269FrameworkElement.FlowDirectionProperty.AddOwner(typeof(Block));
287typeof(Block),
340typeof(Block),
391typeof(Block),
412typeof(Block),
433typeof(Block),
src\Framework\System\windows\Documents\TextEditorParagraphs.cs (4)
90TextEditorCharacters._OnApplyProperty(This, Block.TextAlignmentProperty, TextAlignment.Left, /*applyToParagraphs*/true);
105TextEditorCharacters._OnApplyProperty(This, Block.TextAlignmentProperty, TextAlignment.Center, /*applyToParagraphs*/true);
120TextEditorCharacters._OnApplyProperty(This, Block.TextAlignmentProperty, TextAlignment.Right, /*applyToParagraphs*/true);
135TextEditorCharacters._OnApplyProperty(This, Block.TextAlignmentProperty, TextAlignment.Justify, /*applyToParagraphs*/true);
src\Framework\System\Windows\Documents\TextRangeEdit.cs (19)
755Block startParagraphOrBlockUIContainer = start.ParagraphOrBlockUIContainer;
763if (property == Block.FlowDirectionProperty)
790Block block = GetNextBlock(start, end);
815if (property == Block.FlowDirectionProperty)
838private static void SetPropertyOnParagraphOrBlockUIContainer(DependencyObject parent, Block block, DependencyProperty property, object value, PropertyValueAction propertyValueAction)
853FlowDirection flowDirection = (FlowDirection)block.GetValue(Block.FlowDirectionProperty);
900if (property == Block.FlowDirectionProperty)
920private static void PreserveBlockContentStructuralProperty(Block block, DependencyProperty property, object currentValue, object newValue)
1029private static Block GetNextBlock(TextPointer pointer, TextPointer limit)
1031Block block = null;
1037block = pointer.Parent as Block;
1224private static void SwapBlockLeftAndRightMargins(Block block)
1226object value = block.GetValue(Block.MarginProperty);
1243SetPropertyValue(block, Block.MarginProperty, value, newValue);
1384TextRangeEdit.SetParagraphProperty(range.Start, range.End, Block.MarginProperty, thickness, propertyValueAction);
1460Block firstParagraphOrBlockUIContainer = startPosition.ParagraphOrBlockUIContainer;
1461Block secondParagraphOrBlockUIContainer = endPosition.ParagraphOrBlockUIContainer;
1516Block first = startPosition.ParagraphOrBlockUIContainer;
1517Block second = endPosition.ParagraphOrBlockUIContainer;
src\Framework\System\Windows\Documents\TextRangeSerialization.cs (6)
899if ((property == Block.MarginProperty && (typeof(Paragraph).IsAssignableFrom(propertyOwnerType) || typeof(List).IsAssignableFrom(propertyOwnerType)))
901(property == Block.PaddingProperty) && typeof(List).IsAssignableFrom(propertyOwnerType))
1366ValidateMergingPositions(typeof(Block), fragmentStart, fragmentEnd);
1601ApplyContextualProperty(typeof(Block), start, end, property, propertyEntry.Value);
1614ApplyContextualProperty(typeof(Block), start, end, property, propertyEntry.Value);
1652if (targetType == typeof(Block) && start.CompareTo(end) > 0)
src\Framework\System\Windows\Documents\TextSchema.cs (29)
65Block.TextAlignmentProperty,
66Block.LineHeightProperty,
67Block.IsHyphenationEnabledProperty,
79Block.TextAlignmentProperty
192else if (typeof(Block).IsAssignableFrom(newType))
194return typeof(Block).IsAssignableFrom(siblingType);
337typeof(Block).IsAssignableFrom(type));
464if (typeof(Block).IsAssignableFrom(type) || typeof(FlowDocument).IsAssignableFrom(type))
874return typeof(Block).IsAssignableFrom(childType);
996Block.MarginProperty,
997Block.PaddingProperty,
998Block.BorderThicknessProperty,
999Block.BorderBrushProperty,
1014Block.MarginProperty,
1015Block.PaddingProperty,
1016Block.BorderThicknessProperty,
1017Block.BorderBrushProperty,
1044Block.MarginProperty,
1045Block.PaddingProperty,
1046Block.BorderThicknessProperty,
1047Block.BorderBrushProperty,
1136Block.MarginProperty,
1137Block.PaddingProperty,
1138Block.BorderThicknessProperty,
1139Block.BorderBrushProperty,
1140Block.BreakPageBeforeProperty,
1141Block.BreakColumnBeforeProperty,
1142Block.ClearFloatersProperty,
1143Block.IsHyphenationEnabledProperty,