5 types derived from Block
PresentationFramework (5)
System\Windows\Documents\BlockUIContainer.cs (1)
20public class BlockUIContainer : Block
System\Windows\Documents\List.cs (1)
24public class List : Block
System\Windows\Documents\Paragraph.cs (1)
20public class Paragraph : Block
System\windows\Documents\Section.cs (1)
18public class Section : Block
System\Windows\Documents\Table.cs (1)
35public class Table : Block, IAddChild, IAcceptInsertion
216 references to Block
PresentationFramework (216)
MS\Internal\PtsHost\BaseParagraph.cs (4)
226fspap.fBreakPageBefore = _element is Block ? PTS.FromBoolean(StructuralCache.CurrentFormatContext.FinitePage && ((Block)_element).BreakPageBefore) : PTS.FromBoolean(false); 228fspap.fBreakColumnBefore = _element is Block ? PTS.FromBoolean(((Block)_element).BreakColumnBefore) : PTS.FromBoolean(false);
MS\Internal\PtsHost\ContainerParagraph.cs (7)
508Invariant.Assert(Element is Block || Element is ListItem); 509fskclearIn = PTS.WrapDirectionToFskclear((WrapDirection)Element.GetValue(Block.ClearFloatersProperty)); 668Invariant.Assert(Element is Block || Element is ListItem); 669fskclearIn = PTS.WrapDirectionToFskclear((WrapDirection)Element.GetValue(Block.ClearFloatersProperty)); 798Invariant.Assert(Element is Block || Element is ListItem); 799fskclearIn = PTS.WrapDirectionToFskclear((WrapDirection)Element.GetValue(Block.ClearFloatersProperty)); 1078else if (element is Block || element is ListItem)
MS\Internal\PtsHost\FigureHelper.cs (2)
237FontFamily pageFontFamily = (FontFamily)structuralCache.PropertyOwner.GetValue(Block.FontFamilyProperty); 239double pageFontSize = (double)structuralCache.PropertyOwner.GetValue(Block.FontSizeProperty);
MS\Internal\PtsHost\FloaterParagraph.cs (1)
129fsfloaterprops.fskclear = PTS.WrapDirectionToFskclear((WrapDirection)Element.GetValue(Block.ClearFloatersProperty));
MS\Internal\PtsHost\Line.cs (1)
64_textAlignment = (TextAlignment)TextParagraph.Element.GetValue(Block.TextAlignmentProperty);
MS\Internal\PtsHost\LineBase.cs (1)
148Invariant.Assert(!(element is Block), "We do not expect any Blocks inside Paragraphs");
MS\Internal\PtsHost\MbpInfo.cs (5)
30if (o is Block || o is AnchoredBlock || o is TableCell || o is ListItem) 103_margin = (Thickness)block.GetValue(Block.MarginProperty); 104_border = (Thickness)block.GetValue(Block.BorderThicknessProperty); 105_padding = (Thickness)block.GetValue(Block.PaddingProperty); 106_borderBrush = (Brush)block.GetValue(Block.BorderBrushProperty);
MS\Internal\PtsHost\PtsHelper.cs (2)
775double pageFontSize = (double)structuralCache.PropertyOwner.GetValue(Block.FontSizeProperty); 776FontFamily pageFontFamily = (FontFamily)structuralCache.PropertyOwner.GetValue(Block.FontFamilyProperty);
MS\Internal\PtsHost\Section.cs (4)
219double pageFontSize = (double)_structuralCache.PropertyOwner.GetValue(Block.FontSizeProperty); 220FontFamily pageFontFamily = (FontFamily)_structuralCache.PropertyOwner.GetValue(Block.FontFamilyProperty); 361double pageFontSize = (double)_structuralCache.PropertyOwner.GetValue(Block.FontSizeProperty); 362FontFamily pageFontFamily = (FontFamily)_structuralCache.PropertyOwner.GetValue(Block.FontFamilyProperty);
MS\Internal\PtsHost\SubpageParagraph.cs (9)
165fskclearIn = PTS.WrapDirectionToFskclear((WrapDirection)Element.GetValue(Block.ClearFloatersProperty)); 209double pageFontSize = (double)_structuralCache.PropertyOwner.GetValue(Block.FontSizeProperty); 210FontFamily pageFontFamily = (FontFamily)_structuralCache.PropertyOwner.GetValue(Block.FontFamilyProperty); 350fskclearIn = PTS.WrapDirectionToFskclear((WrapDirection)Element.GetValue(Block.ClearFloatersProperty)); 383double pageFontSize = (double)_structuralCache.PropertyOwner.GetValue(Block.FontSizeProperty); 384FontFamily pageFontFamily = (FontFamily)_structuralCache.PropertyOwner.GetValue(Block.FontFamilyProperty); 510fskclearIn = PTS.WrapDirectionToFskclear((WrapDirection)Element.GetValue(Block.ClearFloatersProperty)); 543double pageFontSize = (double)_structuralCache.PropertyOwner.GetValue(Block.FontSizeProperty); 544FontFamily pageFontFamily = (FontFamily)_structuralCache.PropertyOwner.GetValue(Block.FontFamilyProperty);
MS\Internal\PtsHost\TextParagraph.cs (2)
219isParagraphJustified = ((TextAlignment)Element.GetValue(Block.TextAlignmentProperty)) == TextAlignment.Justify; 1527bool isHyphenationEnabled = (bool) Element.GetValue(Block.IsHyphenationEnabledProperty);
MS\Internal\PtsHost\UIElementParagraph.cs (1)
152fsfloaterprops.fskclear = PTS.WrapDirectionToFskclear((WrapDirection)Element.GetValue(Block.ClearFloatersProperty));
MS\Internal\Text\DynamicPropertyReader.cs (1)
209double lineHeight = (double)d.GetValue(Block.LineHeightProperty);
MS\Internal\Text\LineProperties.cs (4)
112: this(element, contentHost, defaultTextProperties, markerProperties, (TextAlignment)element.GetValue(Block.TextAlignmentProperty)) 129_flowDirection = (FlowDirection)element.GetValue(Block.FlowDirectionProperty); 131_lineHeight = (double)element.GetValue(Block.LineHeightProperty); 133_lineStackingStrategy = (LineStackingStrategy)element.GetValue(Block.LineStackingStrategyProperty);
System\Windows\Controls\AccessText.cs (3)
311Block.LineHeightProperty.AddOwner(typeof(AccessText)); 327Block.LineStackingStrategyProperty.AddOwner(typeof(AccessText)); 342Block.TextAlignmentProperty.AddOwner(typeof(AccessText));
System\Windows\Controls\RichTextBox.cs (1)
469Block firstBlock = _document.Blocks.FirstBlock;
System\Windows\Controls\TextBlock.cs (5)
932Block.LineHeightProperty.AddOwner(typeof(TextBlock)); 972Block.LineStackingStrategyProperty.AddOwner(typeof(TextBlock)); 1010Block.PaddingProperty.AddOwner( 1029Block.TextAlignmentProperty.AddOwner(typeof(TextBlock)); 1115Block.IsHyphenationEnabledProperty.AddOwner(typeof(TextBlock));
System\Windows\Controls\TextBox.cs (1)
749public static readonly DependencyProperty TextAlignmentProperty = Block.TextAlignmentProperty.AddOwner(typeof(TextBox));
System\Windows\Controls\TextRangeAdaptor.cs (3)
204TextAlignment alignmentWCP = (TextAlignment)tp.GetValue(Block.TextAlignmentProperty); 242Thickness padding = (Thickness)tp.GetValue(Block.PaddingProperty); 253Thickness padding = (Thickness)tp.GetValue(Block.PaddingProperty);
System\Windows\Documents\AnchoredBlock.cs (8)
47protected AnchoredBlock(Block block, TextPointer insertionPosition) 101Block.MarginProperty.AddOwner( 120Block.PaddingProperty.AddOwner( 139Block.BorderThicknessProperty.AddOwner( 158Block.BorderBrushProperty.AddOwner( 177Block.TextAlignmentProperty.AddOwner(typeof(AnchoredBlock)); 192Block.LineHeightProperty.AddOwner(typeof(AnchoredBlock)); 208Block.LineStackingStrategyProperty.AddOwner(typeof(AnchoredBlock));
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\BlockCollection.cs (3)
19public class BlockCollection : TextElementCollection<Block> 50public Block FirstBlock 61public Block LastBlock
System\Windows\Documents\Figure.cs (2)
43public Figure(Block childBlock) : this(childBlock, null) 57public Figure(Block childBlock, TextPointer insertionPosition) : base(childBlock, insertionPosition)
System\Windows\Documents\FixedElement.cs (2)
106Block.BorderThicknessProperty.AddOwner(typeof(FixedElement)); 109Block.BorderBrushProperty.AddOwner(typeof(FixedElement));
System\Windows\Documents\FixedSOMTableCell.cs (2)
74element.SetValue(Block.BorderThicknessProperty, new Thickness(1)); 75element.SetValue(Block.BorderBrushProperty, Brushes.Black);
System\Windows\Documents\Floater.cs (2)
50public Floater(Block childBlock) : this(childBlock, null) 64public Floater(Block childBlock, TextPointer insertionPosition) : base(childBlock, insertionPosition)
System\Windows\Documents\FlowDocument.cs (10)
48/// Top-level children of Flow Document must be one of <see cref="Block"/>-derived classes: 112public FlowDocument(Block block) 336Block.TextAlignmentProperty.AddOwner(_typeofThis); 351Block.FlowDirectionProperty.AddOwner(_typeofThis); 366Block.LineHeightProperty.AddOwner(_typeofThis); 382Block.LineStackingStrategyProperty.AddOwner(_typeofThis); 731Block.IsHyphenationEnabledProperty.AddOwner(_typeofThis); 1574return Block.IsValidThickness(value, /*allow NaN*/true); 1651if (value is Block) 1654((Block)value).RepositionWithContent(textContainer.End);
System\Windows\Documents\List.cs (6)
228internal void Apply(Block firstBlock, Block lastBlock) 243Block block = firstBlock; 272block.ClearValue(Block.MarginProperty); 273block.ClearValue(Block.PaddingProperty); 278block = block == lastBlock ? null : (Block)listItem.ElementEnd.GetAdjacentElement(LogicalDirection.Forward);
System\Windows\Documents\ListItem.cs (8)
138Block.MarginProperty.AddOwner( 157Block.PaddingProperty.AddOwner( 176Block.BorderThicknessProperty.AddOwner( 195Block.BorderBrushProperty.AddOwner( 214Block.TextAlignmentProperty.AddOwner(typeof(ListItem)); 229Block.FlowDirectionProperty.AddOwner(typeof(ListItem)); 244Block.LineHeightProperty.AddOwner(typeof(ListItem)); 260Block.LineStackingStrategyProperty.AddOwner(typeof(ListItem));
System\windows\Documents\Section.cs (1)
42public Section(Block block)
System\Windows\Documents\TableCell.cs (8)
69public TableCell(Block blockItem) 188Block.PaddingProperty.AddOwner( 207Block.BorderThicknessProperty.AddOwner( 226Block.BorderBrushProperty.AddOwner( 245Block.TextAlignmentProperty.AddOwner(typeof(TableCell)); 260Block.FlowDirectionProperty.AddOwner(typeof(TableCell)); 275Block.LineHeightProperty.AddOwner(typeof(TableCell)); 291Block.LineStackingStrategyProperty.AddOwner(typeof(TableCell));
System\windows\Documents\TextEditorLists.cs (2)
251Block paragraphOrBlockUIContainer = thisSelection.Start.ParagraphOrBlockUIContainer; 306Block paragraphOrBlockUIContainer = thisSelection.Start.ParagraphOrBlockUIContainer;
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\TextEditorTyping.cs (2)
750Block paragraphOrBlockUIContainerToDelete = position.ParagraphOrBlockUIContainer; 797Block paragraphOrBlockUIContainer = ((TextPointer)position).ParagraphOrBlockUIContainer;
System\Windows\Documents\TextPointer.cs (4)
1664internal Block ParagraphOrBlockUIContainer 1672Block parentBlock = this.ParentBlock; 3864internal Block ParentBlock 3878return parentBlock as Block;
System\Windows\Documents\TextPointerBase.cs (2)
761Block paragraphOrBlockUIContainer = pointer.ParagraphOrBlockUIContainer; 777Block paragraphOrBlockUIContainer = position.ParagraphOrBlockUIContainer;
System\Windows\Documents\TextRangeBase.cs (1)
1360TextSchema.IsValidChild(/*position*/insertPosition, /*childType*/typeof(Block)) &&
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\TextRangeEditLists.cs (12)
44internal static bool MergeParagraphs(Block firstParagraphOrBlockUIContainer, Block secondParagraphOrBlockUIContainer) 250Block firstBlock = range.Start.ParagraphOrBlockUIContainer; 251Block lastBlock = end.ParagraphOrBlockUIContainer; 276Block firstBlock = range.Start.ParagraphOrBlockUIContainer; 279Block lastBlock = end.ParagraphOrBlockUIContainer; 293for (Block block = firstBlock; block != lastBlock && block != null; block = block.NextBlock) 307Block block = firstBlock; 310Block nextBlock = block == lastBlock ? null : block.ElementEnd.GetAdjacentElement(LogicalDirection.Forward) as Block; 624internal static bool ParagraphsAreMergeable(Block firstParagraphOrBlockUIContainer, Block secondParagraphOrBlockUIContainer)
System\Windows\Documents\TextRangeEditTables.cs (1)
880Invariant.Assert(TextSchema.IsValidChild(/*position:*/position, /*childType:*/typeof(Block)), "Expecting valid parent-child relationship");
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,
System\windows\Documents\TextSelection.cs (3)
1991FlowDirection renderScopeFlowDirection = (FlowDirection)this.TextView.RenderScope.GetValue(Block.FlowDirectionProperty); 1992FlowDirection paragraphFlowDirection = (FlowDirection)cursorPosition.GetValue(Block.FlowDirectionProperty); 2396Block paragraphOrBlockUIContainer = (caretPosition is TextPointer) ? ((TextPointer)caretPosition).ParagraphOrBlockUIContainer : null;
System\Windows\Markup\Baml2006\Baml2006KnownTypes.cs (1)
132case 36: t = () => typeof(Block); break;
System\Windows\Markup\Baml2006\WpfGeneratedKnownProperties.cs (3)
7752Type type = typeof(System.Windows.Documents.Block); 7753DependencyProperty dp = System.Windows.Documents.Block.TextAlignmentProperty; 7755this.GetXamlType(typeof(System.Windows.Documents.Block)), // DeclaringType
System\Windows\Markup\Baml2006\WpfGeneratedKnownTypes.cs (1)
2047typeof(System.Windows.Documents.Block),
System\Windows\Markup\KnownTypes.cs (1)
5590case KnownElements.Block: t = typeof(System.Windows.Documents.Block); break;