5 types derived from Block
PresentationFramework (5)
System\Windows\Documents\BlockUIContainer.cs (1)
18public class BlockUIContainer : Block
System\Windows\Documents\List.cs (1)
23public class List : Block
System\Windows\Documents\Paragraph.cs (1)
19public class Paragraph : Block
System\windows\Documents\Section.cs (1)
17public class Section : Block
System\Windows\Documents\Table.cs (1)
17public class Table : Block, IAddChild, IAcceptInsertion
216 references to Block
PresentationFramework (216)
MS\Internal\PtsHost\BaseParagraph.cs (4)
223fspap.fBreakPageBefore = _element is Block ? PTS.FromBoolean(StructuralCache.CurrentFormatContext.FinitePage && ((Block)_element).BreakPageBefore) : PTS.FromBoolean(false); 225fspap.fBreakColumnBefore = _element is Block ? PTS.FromBoolean(((Block)_element).BreakColumnBefore) : PTS.FromBoolean(false);
MS\Internal\PtsHost\ContainerParagraph.cs (7)
484Invariant.Assert(Element is Block || Element is ListItem); 485fskclearIn = PTS.WrapDirectionToFskclear((WrapDirection)Element.GetValue(Block.ClearFloatersProperty)); 644Invariant.Assert(Element is Block || Element is ListItem); 645fskclearIn = PTS.WrapDirectionToFskclear((WrapDirection)Element.GetValue(Block.ClearFloatersProperty)); 774Invariant.Assert(Element is Block || Element is ListItem); 775fskclearIn = PTS.WrapDirectionToFskclear((WrapDirection)Element.GetValue(Block.ClearFloatersProperty)); 1054else if (element is Block || element is ListItem)
MS\Internal\PtsHost\FigureHelper.cs (2)
227FontFamily pageFontFamily = (FontFamily)structuralCache.PropertyOwner.GetValue(Block.FontFamilyProperty); 229double pageFontSize = (double)structuralCache.PropertyOwner.GetValue(Block.FontSizeProperty);
MS\Internal\PtsHost\FloaterParagraph.cs (1)
116fskclear = PTS.WrapDirectionToFskclear((WrapDirection)Element.GetValue(Block.ClearFloatersProperty))
MS\Internal\PtsHost\Line.cs (1)
49_textAlignment = (TextAlignment)TextParagraph.Element.GetValue(Block.TextAlignmentProperty);
MS\Internal\PtsHost\LineBase.cs (1)
137Invariant.Assert(!(element is Block), "We do not expect any Blocks inside Paragraphs");
MS\Internal\PtsHost\MbpInfo.cs (5)
27if (o is Block || o is AnchoredBlock || o is TableCell || o is ListItem) 100_margin = (Thickness)block.GetValue(Block.MarginProperty); 101_border = (Thickness)block.GetValue(Block.BorderThicknessProperty); 102_padding = (Thickness)block.GetValue(Block.PaddingProperty); 103_borderBrush = (Brush)block.GetValue(Block.BorderBrushProperty);
MS\Internal\PtsHost\PtsHelper.cs (2)
769double pageFontSize = (double)structuralCache.PropertyOwner.GetValue(Block.FontSizeProperty); 770FontFamily pageFontFamily = (FontFamily)structuralCache.PropertyOwner.GetValue(Block.FontFamilyProperty);
MS\Internal\PtsHost\Section.cs (4)
216double pageFontSize = (double)_structuralCache.PropertyOwner.GetValue(Block.FontSizeProperty); 217FontFamily pageFontFamily = (FontFamily)_structuralCache.PropertyOwner.GetValue(Block.FontFamilyProperty); 358double pageFontSize = (double)_structuralCache.PropertyOwner.GetValue(Block.FontSizeProperty); 359FontFamily pageFontFamily = (FontFamily)_structuralCache.PropertyOwner.GetValue(Block.FontFamilyProperty);
MS\Internal\PtsHost\SubpageParagraph.cs (9)
149fskclearIn = PTS.WrapDirectionToFskclear((WrapDirection)Element.GetValue(Block.ClearFloatersProperty)); 193double pageFontSize = (double)_structuralCache.PropertyOwner.GetValue(Block.FontSizeProperty); 194FontFamily pageFontFamily = (FontFamily)_structuralCache.PropertyOwner.GetValue(Block.FontFamilyProperty); 334fskclearIn = PTS.WrapDirectionToFskclear((WrapDirection)Element.GetValue(Block.ClearFloatersProperty)); 367double pageFontSize = (double)_structuralCache.PropertyOwner.GetValue(Block.FontSizeProperty); 368FontFamily pageFontFamily = (FontFamily)_structuralCache.PropertyOwner.GetValue(Block.FontFamilyProperty); 494fskclearIn = PTS.WrapDirectionToFskclear((WrapDirection)Element.GetValue(Block.ClearFloatersProperty)); 527double pageFontSize = (double)_structuralCache.PropertyOwner.GetValue(Block.FontSizeProperty); 528FontFamily pageFontFamily = (FontFamily)_structuralCache.PropertyOwner.GetValue(Block.FontFamilyProperty);
MS\Internal\PtsHost\TextParagraph.cs (2)
200isParagraphJustified = ((TextAlignment)Element.GetValue(Block.TextAlignmentProperty)) == TextAlignment.Justify; 1497bool isHyphenationEnabled = (bool) Element.GetValue(Block.IsHyphenationEnabledProperty);
MS\Internal\PtsHost\UIElementParagraph.cs (1)
137fskclear = PTS.WrapDirectionToFskclear((WrapDirection)Element.GetValue(Block.ClearFloatersProperty)),
MS\Internal\Text\DynamicPropertyReader.cs (1)
202double lineHeight = (double)d.GetValue(Block.LineHeightProperty);
MS\Internal\Text\LineProperties.cs (4)
107: this(element, contentHost, defaultTextProperties, markerProperties, (TextAlignment)element.GetValue(Block.TextAlignmentProperty)) 124_flowDirection = (FlowDirection)element.GetValue(Block.FlowDirectionProperty); 126_lineHeight = (double)element.GetValue(Block.LineHeightProperty); 128_lineStackingStrategy = (LineStackingStrategy)element.GetValue(Block.LineStackingStrategyProperty);
System\Windows\Controls\AccessText.cs (3)
308Block.LineHeightProperty.AddOwner(typeof(AccessText)); 324Block.LineStackingStrategyProperty.AddOwner(typeof(AccessText)); 339Block.TextAlignmentProperty.AddOwner(typeof(AccessText));
System\Windows\Controls\RichTextBox.cs (1)
466Block firstBlock = _document.Blocks.FirstBlock;
System\Windows\Controls\TextBlock.cs (5)
919Block.LineHeightProperty.AddOwner(typeof(TextBlock)); 959Block.LineStackingStrategyProperty.AddOwner(typeof(TextBlock)); 997Block.PaddingProperty.AddOwner( 1016Block.TextAlignmentProperty.AddOwner(typeof(TextBlock)); 1102Block.IsHyphenationEnabledProperty.AddOwner(typeof(TextBlock));
System\Windows\Controls\TextBox.cs (1)
743public static readonly DependencyProperty TextAlignmentProperty = Block.TextAlignmentProperty.AddOwner(typeof(TextBox));
System\Windows\Controls\TextRangeAdaptor.cs (3)
201TextAlignment alignmentWCP = (TextAlignment)tp.GetValue(Block.TextAlignmentProperty); 239Thickness padding = (Thickness)tp.GetValue(Block.PaddingProperty); 250Thickness padding = (Thickness)tp.GetValue(Block.PaddingProperty);
System\Windows\Documents\AnchoredBlock.cs (8)
45protected AnchoredBlock(Block block, TextPointer insertionPosition) 90Block.MarginProperty.AddOwner( 109Block.PaddingProperty.AddOwner( 128Block.BorderThicknessProperty.AddOwner( 147Block.BorderBrushProperty.AddOwner( 166Block.TextAlignmentProperty.AddOwner(typeof(AnchoredBlock)); 181Block.LineHeightProperty.AddOwner(typeof(AnchoredBlock)); 197Block.LineStackingStrategyProperty.AddOwner(typeof(AnchoredBlock));
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\BlockCollection.cs (3)
16public class BlockCollection : TextElementCollection<Block> 47public Block FirstBlock 58public Block LastBlock
System\Windows\Documents\Figure.cs (2)
40public Figure(Block childBlock) : this(childBlock, null) 54public Figure(Block childBlock, TextPointer insertionPosition) : base(childBlock, insertionPosition)
System\Windows\Documents\FixedElement.cs (2)
97Block.BorderThicknessProperty.AddOwner(typeof(FixedElement)); 100Block.BorderBrushProperty.AddOwner(typeof(FixedElement));
System\Windows\Documents\FixedSOMTableCell.cs (2)
69element.SetValue(Block.BorderThicknessProperty, new Thickness(1)); 70element.SetValue(Block.BorderBrushProperty, Brushes.Black);
System\Windows\Documents\Floater.cs (2)
48public Floater(Block childBlock) : this(childBlock, null) 62public Floater(Block childBlock, TextPointer insertionPosition) : base(childBlock, insertionPosition)
System\Windows\Documents\FlowDocument.cs (10)
47/// Top-level children of Flow Document must be one of <see cref="Block"/>-derived classes: 111public FlowDocument(Block block) 335Block.TextAlignmentProperty.AddOwner(_typeofThis); 350Block.FlowDirectionProperty.AddOwner(_typeofThis); 365Block.LineHeightProperty.AddOwner(_typeofThis); 381Block.LineStackingStrategyProperty.AddOwner(_typeofThis); 730Block.IsHyphenationEnabledProperty.AddOwner(_typeofThis); 1561return Block.IsValidThickness(value, /*allow NaN*/true); 1638if (value is Block) 1641((Block)value).RepositionWithContent(textContainer.End);
System\Windows\Documents\List.cs (6)
227internal void Apply(Block firstBlock, Block lastBlock) 242Block block = firstBlock; 271block.ClearValue(Block.MarginProperty); 272block.ClearValue(Block.PaddingProperty); 277block = block == lastBlock ? null : (Block)listItem.ElementEnd.GetAdjacentElement(LogicalDirection.Forward);
System\Windows\Documents\ListItem.cs (8)
136Block.MarginProperty.AddOwner( 155Block.PaddingProperty.AddOwner( 174Block.BorderThicknessProperty.AddOwner( 193Block.BorderBrushProperty.AddOwner( 212Block.TextAlignmentProperty.AddOwner(typeof(ListItem)); 227Block.FlowDirectionProperty.AddOwner(typeof(ListItem)); 242Block.LineHeightProperty.AddOwner(typeof(ListItem)); 258Block.LineStackingStrategyProperty.AddOwner(typeof(ListItem));
System\windows\Documents\Section.cs (1)
41public Section(Block block)
System\Windows\Documents\TableCell.cs (8)
55public TableCell(Block blockItem) 174Block.PaddingProperty.AddOwner( 193Block.BorderThicknessProperty.AddOwner( 212Block.BorderBrushProperty.AddOwner( 231Block.TextAlignmentProperty.AddOwner(typeof(TableCell)); 246Block.FlowDirectionProperty.AddOwner(typeof(TableCell)); 261Block.LineHeightProperty.AddOwner(typeof(TableCell)); 277Block.LineStackingStrategyProperty.AddOwner(typeof(TableCell));
System\windows\Documents\TextEditorLists.cs (2)
234Block paragraphOrBlockUIContainer = thisSelection.Start.ParagraphOrBlockUIContainer; 289Block paragraphOrBlockUIContainer = thisSelection.Start.ParagraphOrBlockUIContainer;
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\TextEditorTyping.cs (2)
731Block paragraphOrBlockUIContainerToDelete = position.ParagraphOrBlockUIContainer; 778Block paragraphOrBlockUIContainer = ((TextPointer)position).ParagraphOrBlockUIContainer;
System\Windows\Documents\TextPointer.cs (4)
1658internal Block ParagraphOrBlockUIContainer 1666Block parentBlock = this.ParentBlock; 3858internal Block ParentBlock 3872return parentBlock as Block;
System\Windows\Documents\TextPointerBase.cs (2)
758Block paragraphOrBlockUIContainer = pointer.ParagraphOrBlockUIContainer; 774Block paragraphOrBlockUIContainer = position.ParagraphOrBlockUIContainer;
System\Windows\Documents\TextRangeBase.cs (1)
1356TextSchema.IsValidChild(/*position*/insertPosition, /*childType*/typeof(Block)) &&
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\TextRangeEditLists.cs (12)
41internal static bool MergeParagraphs(Block firstParagraphOrBlockUIContainer, Block secondParagraphOrBlockUIContainer) 247Block firstBlock = range.Start.ParagraphOrBlockUIContainer; 248Block lastBlock = end.ParagraphOrBlockUIContainer; 273Block firstBlock = range.Start.ParagraphOrBlockUIContainer; 276Block lastBlock = end.ParagraphOrBlockUIContainer; 290for (Block block = firstBlock; block != lastBlock && block != null; block = block.NextBlock) 304Block block = firstBlock; 307Block nextBlock = block == lastBlock ? null : block.ElementEnd.GetAdjacentElement(LogicalDirection.Forward) as Block; 623internal static bool ParagraphsAreMergeable(Block firstParagraphOrBlockUIContainer, Block secondParagraphOrBlockUIContainer)
System\Windows\Documents\TextRangeEditTables.cs (1)
881Invariant.Assert(TextSchema.IsValidChild(/*position:*/position, /*childType:*/typeof(Block)), "Expecting valid parent-child relationship");
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,
System\windows\Documents\TextSelection.cs (3)
1972FlowDirection renderScopeFlowDirection = (FlowDirection)this.TextView.RenderScope.GetValue(Block.FlowDirectionProperty); 1973FlowDirection paragraphFlowDirection = (FlowDirection)cursorPosition.GetValue(Block.FlowDirectionProperty); 2377Block paragraphOrBlockUIContainer = (caretPosition is TextPointer) ? ((TextPointer)caretPosition).ParagraphOrBlockUIContainer : null;
System\Windows\Markup\Baml2006\Baml2006KnownTypes.cs (1)
129case 36: t = () => typeof(Block); break;
System\Windows\Markup\Baml2006\WpfGeneratedKnownProperties.cs (3)
8369Type type = typeof(System.Windows.Documents.Block); 8370DependencyProperty dp = System.Windows.Documents.Block.TextAlignmentProperty; 8372this.GetXamlType(typeof(System.Windows.Documents.Block)), // DeclaringType
System\Windows\Markup\Baml2006\WpfGeneratedKnownTypes.cs (1)
2092typeof(System.Windows.Documents.Block),
System\Windows\Markup\KnownTypes.cs (1)
5583case KnownElements.Block: t = typeof(System.Windows.Documents.Block); break;