System\Windows\Documents\Block.cs (16)
54public Block NextBlock
58return this.NextElement as Block;
66public Block PreviousBlock
70return this.PreviousElement as Block;
81typeof(Block),
125typeof(Block),
147typeof(Block),
169typeof(Block),
191typeof(Block),
212typeof(Block),
254FrameworkElement.FlowDirectionProperty.AddOwner(typeof(Block));
272typeof(Block),
319typeof(Block),
364typeof(Block),
385typeof(Block),
406typeof(Block),
System\windows\Documents\TextEditorParagraphs.cs (4)
71TextEditorCharacters._OnApplyProperty(This, Block.TextAlignmentProperty, TextAlignment.Left, /*applyToParagraphs*/true);
86TextEditorCharacters._OnApplyProperty(This, Block.TextAlignmentProperty, TextAlignment.Center, /*applyToParagraphs*/true);
101TextEditorCharacters._OnApplyProperty(This, Block.TextAlignmentProperty, TextAlignment.Right, /*applyToParagraphs*/true);
116TextEditorCharacters._OnApplyProperty(This, Block.TextAlignmentProperty, TextAlignment.Justify, /*applyToParagraphs*/true);
System\Windows\Documents\TextRangeEdit.cs (19)
750Block startParagraphOrBlockUIContainer = start.ParagraphOrBlockUIContainer;
758if (property == Block.FlowDirectionProperty)
785Block block = GetNextBlock(start, end);
810if (property == Block.FlowDirectionProperty)
833private static void SetPropertyOnParagraphOrBlockUIContainer(DependencyObject parent, Block block, DependencyProperty property, object value, PropertyValueAction propertyValueAction)
848FlowDirection flowDirection = (FlowDirection)block.GetValue(Block.FlowDirectionProperty);
895if (property == Block.FlowDirectionProperty)
915private static void PreserveBlockContentStructuralProperty(Block block, DependencyProperty property, object currentValue, object newValue)
1024private static Block GetNextBlock(TextPointer pointer, TextPointer limit)
1026Block block = null;
1032block = pointer.Parent as Block;
1219private static void SwapBlockLeftAndRightMargins(Block block)
1221object value = block.GetValue(Block.MarginProperty);
1238SetPropertyValue(block, Block.MarginProperty, value, newValue);
1379TextRangeEdit.SetParagraphProperty(range.Start, range.End, Block.MarginProperty, thickness, propertyValueAction);
1455Block firstParagraphOrBlockUIContainer = startPosition.ParagraphOrBlockUIContainer;
1456Block secondParagraphOrBlockUIContainer = endPosition.ParagraphOrBlockUIContainer;
1511Block first = startPosition.ParagraphOrBlockUIContainer;
1512Block second = endPosition.ParagraphOrBlockUIContainer;
System\Windows\Documents\TextRangeSerialization.cs (6)
885if ((property == Block.MarginProperty && (typeof(Paragraph).IsAssignableFrom(propertyOwnerType) || typeof(List).IsAssignableFrom(propertyOwnerType)))
887(property == Block.PaddingProperty) && typeof(List).IsAssignableFrom(propertyOwnerType))
1335ValidateMergingPositions(typeof(Block), fragmentStart, fragmentEnd);
1574ApplyContextualProperty(typeof(Block), start, end, property, propertyEntry.Value);
1587ApplyContextualProperty(typeof(Block), start, end, property, propertyEntry.Value);
1625if (targetType == typeof(Block) && start.CompareTo(end) > 0)
System\Windows\Documents\TextSchema.cs (29)
61Block.TextAlignmentProperty,
62Block.LineHeightProperty,
63Block.IsHyphenationEnabledProperty,
75Block.TextAlignmentProperty
188else if (typeof(Block).IsAssignableFrom(newType))
190return typeof(Block).IsAssignableFrom(siblingType);
333typeof(Block).IsAssignableFrom(type));
460if (typeof(Block).IsAssignableFrom(type) || typeof(FlowDocument).IsAssignableFrom(type))
865return typeof(Block).IsAssignableFrom(childType);
987Block.MarginProperty,
988Block.PaddingProperty,
989Block.BorderThicknessProperty,
990Block.BorderBrushProperty,
1005Block.MarginProperty,
1006Block.PaddingProperty,
1007Block.BorderThicknessProperty,
1008Block.BorderBrushProperty,
1035Block.MarginProperty,
1036Block.PaddingProperty,
1037Block.BorderThicknessProperty,
1038Block.BorderBrushProperty,
1127Block.MarginProperty,
1128Block.PaddingProperty,
1129Block.BorderThicknessProperty,
1130Block.BorderBrushProperty,
1131Block.BreakPageBeforeProperty,
1132Block.BreakColumnBeforeProperty,
1133Block.ClearFloatersProperty,
1134Block.IsHyphenationEnabledProperty,