System\Windows\Documents\Block.cs (16)
57public Block NextBlock
61return this.NextElement as Block;
69public Block PreviousBlock
73return this.PreviousElement as Block;
84typeof(Block),
128typeof(Block),
150typeof(Block),
172typeof(Block),
194typeof(Block),
215typeof(Block),
257FrameworkElement.FlowDirectionProperty.AddOwner(typeof(Block));
275typeof(Block),
322typeof(Block),
367typeof(Block),
388typeof(Block),
409typeof(Block),
System\windows\Documents\TextEditorParagraphs.cs (4)
89TextEditorCharacters._OnApplyProperty(This, Block.TextAlignmentProperty, TextAlignment.Left, /*applyToParagraphs*/true);
104TextEditorCharacters._OnApplyProperty(This, Block.TextAlignmentProperty, TextAlignment.Center, /*applyToParagraphs*/true);
119TextEditorCharacters._OnApplyProperty(This, Block.TextAlignmentProperty, TextAlignment.Right, /*applyToParagraphs*/true);
134TextEditorCharacters._OnApplyProperty(This, Block.TextAlignmentProperty, TextAlignment.Justify, /*applyToParagraphs*/true);
System\Windows\Documents\TextRangeEdit.cs (19)
753Block startParagraphOrBlockUIContainer = start.ParagraphOrBlockUIContainer;
761if (property == Block.FlowDirectionProperty)
788Block block = GetNextBlock(start, end);
813if (property == Block.FlowDirectionProperty)
836private static void SetPropertyOnParagraphOrBlockUIContainer(DependencyObject parent, Block block, DependencyProperty property, object value, PropertyValueAction propertyValueAction)
851FlowDirection flowDirection = (FlowDirection)block.GetValue(Block.FlowDirectionProperty);
898if (property == Block.FlowDirectionProperty)
918private static void PreserveBlockContentStructuralProperty(Block block, DependencyProperty property, object currentValue, object newValue)
1027private static Block GetNextBlock(TextPointer pointer, TextPointer limit)
1029Block block = null;
1035block = pointer.Parent as Block;
1222private static void SwapBlockLeftAndRightMargins(Block block)
1224object value = block.GetValue(Block.MarginProperty);
1241SetPropertyValue(block, Block.MarginProperty, value, newValue);
1382TextRangeEdit.SetParagraphProperty(range.Start, range.End, Block.MarginProperty, thickness, propertyValueAction);
1458Block firstParagraphOrBlockUIContainer = startPosition.ParagraphOrBlockUIContainer;
1459Block secondParagraphOrBlockUIContainer = endPosition.ParagraphOrBlockUIContainer;
1514Block first = startPosition.ParagraphOrBlockUIContainer;
1515Block second = endPosition.ParagraphOrBlockUIContainer;
System\Windows\Documents\TextRangeSerialization.cs (6)
892if ((property == Block.MarginProperty && (typeof(Paragraph).IsAssignableFrom(propertyOwnerType) || typeof(List).IsAssignableFrom(propertyOwnerType)))
894(property == Block.PaddingProperty) && typeof(List).IsAssignableFrom(propertyOwnerType))
1342ValidateMergingPositions(typeof(Block), fragmentStart, fragmentEnd);
1581ApplyContextualProperty(typeof(Block), start, end, property, propertyEntry.Value);
1594ApplyContextualProperty(typeof(Block), start, end, property, propertyEntry.Value);
1632if (targetType == typeof(Block) && start.CompareTo(end) > 0)
System\Windows\Documents\TextSchema.cs (29)
63Block.TextAlignmentProperty,
64Block.LineHeightProperty,
65Block.IsHyphenationEnabledProperty,
77Block.TextAlignmentProperty
190else if (typeof(Block).IsAssignableFrom(newType))
192return typeof(Block).IsAssignableFrom(siblingType);
335typeof(Block).IsAssignableFrom(type));
462if (typeof(Block).IsAssignableFrom(type) || typeof(FlowDocument).IsAssignableFrom(type))
872return typeof(Block).IsAssignableFrom(childType);
994Block.MarginProperty,
995Block.PaddingProperty,
996Block.BorderThicknessProperty,
997Block.BorderBrushProperty,
1012Block.MarginProperty,
1013Block.PaddingProperty,
1014Block.BorderThicknessProperty,
1015Block.BorderBrushProperty,
1042Block.MarginProperty,
1043Block.PaddingProperty,
1044Block.BorderThicknessProperty,
1045Block.BorderBrushProperty,
1134Block.MarginProperty,
1135Block.PaddingProperty,
1136Block.BorderThicknessProperty,
1137Block.BorderBrushProperty,
1138Block.BreakPageBeforeProperty,
1139Block.BreakColumnBeforeProperty,
1140Block.ClearFloatersProperty,
1141Block.IsHyphenationEnabledProperty,