System\Windows\Documents\Block.cs (16)
55public Block NextBlock
59return this.NextElement as Block;
67public Block PreviousBlock
71return this.PreviousElement as Block;
82typeof(Block),
126typeof(Block),
148typeof(Block),
170typeof(Block),
192typeof(Block),
213typeof(Block),
255FrameworkElement.FlowDirectionProperty.AddOwner(typeof(Block));
273typeof(Block),
320typeof(Block),
365typeof(Block),
386typeof(Block),
407typeof(Block),
System\windows\Documents\TextEditorParagraphs.cs (4)
72TextEditorCharacters._OnApplyProperty(This, Block.TextAlignmentProperty, TextAlignment.Left, /*applyToParagraphs*/true);
87TextEditorCharacters._OnApplyProperty(This, Block.TextAlignmentProperty, TextAlignment.Center, /*applyToParagraphs*/true);
102TextEditorCharacters._OnApplyProperty(This, Block.TextAlignmentProperty, TextAlignment.Right, /*applyToParagraphs*/true);
117TextEditorCharacters._OnApplyProperty(This, Block.TextAlignmentProperty, TextAlignment.Justify, /*applyToParagraphs*/true);
System\Windows\Documents\TextRangeEdit.cs (19)
751Block startParagraphOrBlockUIContainer = start.ParagraphOrBlockUIContainer;
759if (property == Block.FlowDirectionProperty)
786Block block = GetNextBlock(start, end);
811if (property == Block.FlowDirectionProperty)
834private static void SetPropertyOnParagraphOrBlockUIContainer(DependencyObject parent, Block block, DependencyProperty property, object value, PropertyValueAction propertyValueAction)
849FlowDirection flowDirection = (FlowDirection)block.GetValue(Block.FlowDirectionProperty);
896if (property == Block.FlowDirectionProperty)
916private static void PreserveBlockContentStructuralProperty(Block block, DependencyProperty property, object currentValue, object newValue)
1025private static Block GetNextBlock(TextPointer pointer, TextPointer limit)
1027Block block = null;
1033block = pointer.Parent as Block;
1220private static void SwapBlockLeftAndRightMargins(Block block)
1222object value = block.GetValue(Block.MarginProperty);
1239SetPropertyValue(block, Block.MarginProperty, value, newValue);
1380TextRangeEdit.SetParagraphProperty(range.Start, range.End, Block.MarginProperty, thickness, propertyValueAction);
1456Block firstParagraphOrBlockUIContainer = startPosition.ParagraphOrBlockUIContainer;
1457Block secondParagraphOrBlockUIContainer = endPosition.ParagraphOrBlockUIContainer;
1512Block first = startPosition.ParagraphOrBlockUIContainer;
1513Block second = endPosition.ParagraphOrBlockUIContainer;
System\Windows\Documents\TextRangeSerialization.cs (6)
886if ((property == Block.MarginProperty && (typeof(Paragraph).IsAssignableFrom(propertyOwnerType) || typeof(List).IsAssignableFrom(propertyOwnerType)))
888(property == Block.PaddingProperty) && typeof(List).IsAssignableFrom(propertyOwnerType))
1336ValidateMergingPositions(typeof(Block), fragmentStart, fragmentEnd);
1575ApplyContextualProperty(typeof(Block), start, end, property, propertyEntry.Value);
1588ApplyContextualProperty(typeof(Block), start, end, property, propertyEntry.Value);
1626if (targetType == typeof(Block) && start.CompareTo(end) > 0)
System\Windows\Documents\TextSchema.cs (29)
62Block.TextAlignmentProperty,
63Block.LineHeightProperty,
64Block.IsHyphenationEnabledProperty,
76Block.TextAlignmentProperty
189else if (typeof(Block).IsAssignableFrom(newType))
191return typeof(Block).IsAssignableFrom(siblingType);
334typeof(Block).IsAssignableFrom(type));
461if (typeof(Block).IsAssignableFrom(type) || typeof(FlowDocument).IsAssignableFrom(type))
871return typeof(Block).IsAssignableFrom(childType);
993Block.MarginProperty,
994Block.PaddingProperty,
995Block.BorderThicknessProperty,
996Block.BorderBrushProperty,
1011Block.MarginProperty,
1012Block.PaddingProperty,
1013Block.BorderThicknessProperty,
1014Block.BorderBrushProperty,
1041Block.MarginProperty,
1042Block.PaddingProperty,
1043Block.BorderThicknessProperty,
1044Block.BorderBrushProperty,
1133Block.MarginProperty,
1134Block.PaddingProperty,
1135Block.BorderThicknessProperty,
1136Block.BorderBrushProperty,
1137Block.BreakPageBeforeProperty,
1138Block.BreakColumnBeforeProperty,
1139Block.ClearFloatersProperty,
1140Block.IsHyphenationEnabledProperty,