5 types derived from Block
PresentationFramework (5)
System\Windows\Documents\BlockUIContainer.cs (1)
19public 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)
18public class Table : Block, IAddChild, IAcceptInsertion
216 references to Block
PresentationFramework (216)
MS\Internal\PtsHost\BaseParagraph.cs (4)
224fspap.fBreakPageBefore = _element is Block ? PTS.FromBoolean(StructuralCache.CurrentFormatContext.FinitePage && ((Block)_element).BreakPageBefore) : PTS.FromBoolean(false); 226fspap.fBreakColumnBefore = _element is Block ? PTS.FromBoolean(((Block)_element).BreakColumnBefore) : PTS.FromBoolean(false);
MS\Internal\PtsHost\ContainerParagraph.cs (7)
485Invariant.Assert(Element is Block || Element is ListItem); 486fskclearIn = PTS.WrapDirectionToFskclear((WrapDirection)Element.GetValue(Block.ClearFloatersProperty)); 645Invariant.Assert(Element is Block || Element is ListItem); 646fskclearIn = PTS.WrapDirectionToFskclear((WrapDirection)Element.GetValue(Block.ClearFloatersProperty)); 775Invariant.Assert(Element is Block || Element is ListItem); 776fskclearIn = PTS.WrapDirectionToFskclear((WrapDirection)Element.GetValue(Block.ClearFloatersProperty)); 1055else if (element is Block || element is ListItem)
MS\Internal\PtsHost\FigureHelper.cs (2)
228FontFamily pageFontFamily = (FontFamily)structuralCache.PropertyOwner.GetValue(Block.FontFamilyProperty); 230double pageFontSize = (double)structuralCache.PropertyOwner.GetValue(Block.FontSizeProperty);
MS\Internal\PtsHost\FloaterParagraph.cs (1)
117fskclear = PTS.WrapDirectionToFskclear((WrapDirection)Element.GetValue(Block.ClearFloatersProperty))
MS\Internal\PtsHost\Line.cs (1)
50_textAlignment = (TextAlignment)TextParagraph.Element.GetValue(Block.TextAlignmentProperty);
MS\Internal\PtsHost\LineBase.cs (1)
138Invariant.Assert(!(element is Block), "We do not expect any Blocks inside Paragraphs");
MS\Internal\PtsHost\MbpInfo.cs (5)
28if (o is Block || o is AnchoredBlock || o is TableCell || o is ListItem) 101_margin = (Thickness)block.GetValue(Block.MarginProperty); 102_border = (Thickness)block.GetValue(Block.BorderThicknessProperty); 103_padding = (Thickness)block.GetValue(Block.PaddingProperty); 104_borderBrush = (Brush)block.GetValue(Block.BorderBrushProperty);
MS\Internal\PtsHost\PtsHelper.cs (2)
770double pageFontSize = (double)structuralCache.PropertyOwner.GetValue(Block.FontSizeProperty); 771FontFamily pageFontFamily = (FontFamily)structuralCache.PropertyOwner.GetValue(Block.FontFamilyProperty);
MS\Internal\PtsHost\Section.cs (4)
217double pageFontSize = (double)_structuralCache.PropertyOwner.GetValue(Block.FontSizeProperty); 218FontFamily pageFontFamily = (FontFamily)_structuralCache.PropertyOwner.GetValue(Block.FontFamilyProperty); 359double pageFontSize = (double)_structuralCache.PropertyOwner.GetValue(Block.FontSizeProperty); 360FontFamily pageFontFamily = (FontFamily)_structuralCache.PropertyOwner.GetValue(Block.FontFamilyProperty);
MS\Internal\PtsHost\SubpageParagraph.cs (9)
150fskclearIn = PTS.WrapDirectionToFskclear((WrapDirection)Element.GetValue(Block.ClearFloatersProperty)); 194double pageFontSize = (double)_structuralCache.PropertyOwner.GetValue(Block.FontSizeProperty); 195FontFamily pageFontFamily = (FontFamily)_structuralCache.PropertyOwner.GetValue(Block.FontFamilyProperty); 335fskclearIn = PTS.WrapDirectionToFskclear((WrapDirection)Element.GetValue(Block.ClearFloatersProperty)); 368double pageFontSize = (double)_structuralCache.PropertyOwner.GetValue(Block.FontSizeProperty); 369FontFamily pageFontFamily = (FontFamily)_structuralCache.PropertyOwner.GetValue(Block.FontFamilyProperty); 495fskclearIn = PTS.WrapDirectionToFskclear((WrapDirection)Element.GetValue(Block.ClearFloatersProperty)); 528double pageFontSize = (double)_structuralCache.PropertyOwner.GetValue(Block.FontSizeProperty); 529FontFamily pageFontFamily = (FontFamily)_structuralCache.PropertyOwner.GetValue(Block.FontFamilyProperty);
MS\Internal\PtsHost\TextParagraph.cs (2)
201isParagraphJustified = ((TextAlignment)Element.GetValue(Block.TextAlignmentProperty)) == TextAlignment.Justify; 1498bool isHyphenationEnabled = (bool) Element.GetValue(Block.IsHyphenationEnabledProperty);
MS\Internal\PtsHost\UIElementParagraph.cs (1)
138fskclear = PTS.WrapDirectionToFskclear((WrapDirection)Element.GetValue(Block.ClearFloatersProperty)),
MS\Internal\Text\DynamicPropertyReader.cs (1)
203double lineHeight = (double)d.GetValue(Block.LineHeightProperty);
MS\Internal\Text\LineProperties.cs (4)
108: this(element, contentHost, defaultTextProperties, markerProperties, (TextAlignment)element.GetValue(Block.TextAlignmentProperty)) 125_flowDirection = (FlowDirection)element.GetValue(Block.FlowDirectionProperty); 127_lineHeight = (double)element.GetValue(Block.LineHeightProperty); 129_lineStackingStrategy = (LineStackingStrategy)element.GetValue(Block.LineStackingStrategyProperty);
System\Windows\Controls\AccessText.cs (3)
309Block.LineHeightProperty.AddOwner(typeof(AccessText)); 325Block.LineStackingStrategyProperty.AddOwner(typeof(AccessText)); 340Block.TextAlignmentProperty.AddOwner(typeof(AccessText));
System\Windows\Controls\RichTextBox.cs (1)
467Block firstBlock = _document.Blocks.FirstBlock;
System\Windows\Controls\TextBlock.cs (5)
920Block.LineHeightProperty.AddOwner(typeof(TextBlock)); 960Block.LineStackingStrategyProperty.AddOwner(typeof(TextBlock)); 998Block.PaddingProperty.AddOwner( 1017Block.TextAlignmentProperty.AddOwner(typeof(TextBlock)); 1103Block.IsHyphenationEnabledProperty.AddOwner(typeof(TextBlock));
System\Windows\Controls\TextBox.cs (1)
744public static readonly DependencyProperty TextAlignmentProperty = Block.TextAlignmentProperty.AddOwner(typeof(TextBox));
System\Windows\Controls\TextRangeAdaptor.cs (3)
202TextAlignment alignmentWCP = (TextAlignment)tp.GetValue(Block.TextAlignmentProperty); 240Thickness padding = (Thickness)tp.GetValue(Block.PaddingProperty); 251Thickness padding = (Thickness)tp.GetValue(Block.PaddingProperty);
System\Windows\Documents\AnchoredBlock.cs (8)
46protected AnchoredBlock(Block block, TextPointer insertionPosition) 91Block.MarginProperty.AddOwner( 110Block.PaddingProperty.AddOwner( 129Block.BorderThicknessProperty.AddOwner( 148Block.BorderBrushProperty.AddOwner( 167Block.TextAlignmentProperty.AddOwner(typeof(AnchoredBlock)); 182Block.LineHeightProperty.AddOwner(typeof(AnchoredBlock)); 198Block.LineStackingStrategyProperty.AddOwner(typeof(AnchoredBlock));
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\BlockCollection.cs (3)
17public class BlockCollection : TextElementCollection<Block> 48public Block FirstBlock 59public Block LastBlock
System\Windows\Documents\Figure.cs (2)
41public Figure(Block childBlock) : this(childBlock, null) 55public Figure(Block childBlock, TextPointer insertionPosition) : base(childBlock, insertionPosition)
System\Windows\Documents\FixedElement.cs (2)
98Block.BorderThicknessProperty.AddOwner(typeof(FixedElement)); 101Block.BorderBrushProperty.AddOwner(typeof(FixedElement));
System\Windows\Documents\FixedSOMTableCell.cs (2)
70element.SetValue(Block.BorderThicknessProperty, new Thickness(1)); 71element.SetValue(Block.BorderBrushProperty, Brushes.Black);
System\Windows\Documents\Floater.cs (2)
49public Floater(Block childBlock) : this(childBlock, null) 63public 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); 1562return Block.IsValidThickness(value, /*allow NaN*/true); 1639if (value is Block) 1642((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)
137Block.MarginProperty.AddOwner( 156Block.PaddingProperty.AddOwner( 175Block.BorderThicknessProperty.AddOwner( 194Block.BorderBrushProperty.AddOwner( 213Block.TextAlignmentProperty.AddOwner(typeof(ListItem)); 228Block.FlowDirectionProperty.AddOwner(typeof(ListItem)); 243Block.LineHeightProperty.AddOwner(typeof(ListItem)); 259Block.LineStackingStrategyProperty.AddOwner(typeof(ListItem));
System\windows\Documents\Section.cs (1)
42public Section(Block block)
System\Windows\Documents\TableCell.cs (8)
56public TableCell(Block blockItem) 175Block.PaddingProperty.AddOwner( 194Block.BorderThicknessProperty.AddOwner( 213Block.BorderBrushProperty.AddOwner( 232Block.TextAlignmentProperty.AddOwner(typeof(TableCell)); 247Block.FlowDirectionProperty.AddOwner(typeof(TableCell)); 262Block.LineHeightProperty.AddOwner(typeof(TableCell)); 278Block.LineStackingStrategyProperty.AddOwner(typeof(TableCell));
System\windows\Documents\TextEditorLists.cs (2)
235Block paragraphOrBlockUIContainer = thisSelection.Start.ParagraphOrBlockUIContainer; 290Block paragraphOrBlockUIContainer = thisSelection.Start.ParagraphOrBlockUIContainer;
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\TextEditorTyping.cs (2)
732Block paragraphOrBlockUIContainerToDelete = position.ParagraphOrBlockUIContainer; 779Block paragraphOrBlockUIContainer = ((TextPointer)position).ParagraphOrBlockUIContainer;
System\Windows\Documents\TextPointer.cs (4)
1659internal Block ParagraphOrBlockUIContainer 1667Block parentBlock = this.ParentBlock; 3859internal Block ParentBlock 3873return parentBlock as Block;
System\Windows\Documents\TextPointerBase.cs (2)
759Block paragraphOrBlockUIContainer = pointer.ParagraphOrBlockUIContainer; 775Block paragraphOrBlockUIContainer = position.ParagraphOrBlockUIContainer;
System\Windows\Documents\TextRangeBase.cs (1)
1357TextSchema.IsValidChild(/*position*/insertPosition, /*childType*/typeof(Block)) &&
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\TextRangeEditLists.cs (12)
42internal static bool MergeParagraphs(Block firstParagraphOrBlockUIContainer, Block secondParagraphOrBlockUIContainer) 248Block firstBlock = range.Start.ParagraphOrBlockUIContainer; 249Block lastBlock = end.ParagraphOrBlockUIContainer; 274Block firstBlock = range.Start.ParagraphOrBlockUIContainer; 277Block lastBlock = end.ParagraphOrBlockUIContainer; 291for (Block block = firstBlock; block != lastBlock && block != null; block = block.NextBlock) 305Block block = firstBlock; 308Block 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)
882Invariant.Assert(TextSchema.IsValidChild(/*position:*/position, /*childType:*/typeof(Block)), "Expecting valid parent-child relationship");
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)) 866return typeof(Block).IsAssignableFrom(childType); 988Block.MarginProperty, 989Block.PaddingProperty, 990Block.BorderThicknessProperty, 991Block.BorderBrushProperty, 1006Block.MarginProperty, 1007Block.PaddingProperty, 1008Block.BorderThicknessProperty, 1009Block.BorderBrushProperty, 1036Block.MarginProperty, 1037Block.PaddingProperty, 1038Block.BorderThicknessProperty, 1039Block.BorderBrushProperty, 1128Block.MarginProperty, 1129Block.PaddingProperty, 1130Block.BorderThicknessProperty, 1131Block.BorderBrushProperty, 1132Block.BreakPageBeforeProperty, 1133Block.BreakColumnBeforeProperty, 1134Block.ClearFloatersProperty, 1135Block.IsHyphenationEnabledProperty,
System\windows\Documents\TextSelection.cs (3)
1973FlowDirection renderScopeFlowDirection = (FlowDirection)this.TextView.RenderScope.GetValue(Block.FlowDirectionProperty); 1974FlowDirection paragraphFlowDirection = (FlowDirection)cursorPosition.GetValue(Block.FlowDirectionProperty); 2378Block paragraphOrBlockUIContainer = (caretPosition is TextPointer) ? ((TextPointer)caretPosition).ParagraphOrBlockUIContainer : null;
System\Windows\Markup\Baml2006\Baml2006KnownTypes.cs (1)
130case 36: t = () => typeof(Block); break;
System\Windows\Markup\Baml2006\WpfGeneratedKnownProperties.cs (3)
8370Type type = typeof(System.Windows.Documents.Block); 8371DependencyProperty dp = System.Windows.Documents.Block.TextAlignmentProperty; 8373this.GetXamlType(typeof(System.Windows.Documents.Block)), // DeclaringType
System\Windows\Markup\Baml2006\WpfGeneratedKnownTypes.cs (1)
2093typeof(System.Windows.Documents.Block),
System\Windows\Markup\KnownTypes.cs (1)
5584case KnownElements.Block: t = typeof(System.Windows.Documents.Block); break;