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)
26public 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)
503Invariant.Assert(Element is Block || Element is ListItem); 504fskclearIn = PTS.WrapDirectionToFskclear((WrapDirection)Element.GetValue(Block.ClearFloatersProperty)); 663Invariant.Assert(Element is Block || Element is ListItem); 664fskclearIn = PTS.WrapDirectionToFskclear((WrapDirection)Element.GetValue(Block.ClearFloatersProperty)); 793Invariant.Assert(Element is Block || Element is ListItem); 794fskclearIn = PTS.WrapDirectionToFskclear((WrapDirection)Element.GetValue(Block.ClearFloatersProperty)); 1073else if (element is Block || element is ListItem)
MS\Internal\PtsHost\FigureHelper.cs (2)
236FontFamily pageFontFamily = (FontFamily)structuralCache.PropertyOwner.GetValue(Block.FontFamilyProperty); 238double pageFontSize = (double)structuralCache.PropertyOwner.GetValue(Block.FontSizeProperty);
MS\Internal\PtsHost\FloaterParagraph.cs (1)
125fsfloaterprops.fskclear = PTS.WrapDirectionToFskclear((WrapDirection)Element.GetValue(Block.ClearFloatersProperty));
MS\Internal\PtsHost\Line.cs (1)
58_textAlignment = (TextAlignment)TextParagraph.Element.GetValue(Block.TextAlignmentProperty);
MS\Internal\PtsHost\LineBase.cs (1)
142Invariant.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)
160fskclearIn = PTS.WrapDirectionToFskclear((WrapDirection)Element.GetValue(Block.ClearFloatersProperty)); 204double pageFontSize = (double)_structuralCache.PropertyOwner.GetValue(Block.FontSizeProperty); 205FontFamily pageFontFamily = (FontFamily)_structuralCache.PropertyOwner.GetValue(Block.FontFamilyProperty); 345fskclearIn = PTS.WrapDirectionToFskclear((WrapDirection)Element.GetValue(Block.ClearFloatersProperty)); 378double pageFontSize = (double)_structuralCache.PropertyOwner.GetValue(Block.FontSizeProperty); 379FontFamily pageFontFamily = (FontFamily)_structuralCache.PropertyOwner.GetValue(Block.FontFamilyProperty); 505fskclearIn = PTS.WrapDirectionToFskclear((WrapDirection)Element.GetValue(Block.ClearFloatersProperty)); 538double pageFontSize = (double)_structuralCache.PropertyOwner.GetValue(Block.FontSizeProperty); 539FontFamily pageFontFamily = (FontFamily)_structuralCache.PropertyOwner.GetValue(Block.FontFamilyProperty);
MS\Internal\PtsHost\TextParagraph.cs (2)
212isParagraphJustified = ((TextAlignment)Element.GetValue(Block.TextAlignmentProperty)) == TextAlignment.Justify; 1520bool isHyphenationEnabled = (bool) Element.GetValue(Block.IsHyphenationEnabledProperty);
MS\Internal\PtsHost\UIElementParagraph.cs (1)
149fsfloaterprops.fskclear = 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)
465Block firstBlock = _document.Blocks.FirstBlock;
System\Windows\Controls\TextBlock.cs (5)
922Block.LineHeightProperty.AddOwner(typeof(TextBlock)); 962Block.LineStackingStrategyProperty.AddOwner(typeof(TextBlock)); 1000Block.PaddingProperty.AddOwner( 1019Block.TextAlignmentProperty.AddOwner(typeof(TextBlock)); 1105Block.IsHyphenationEnabledProperty.AddOwner(typeof(TextBlock));
System\Windows\Controls\TextBox.cs (1)
742public 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) 100Block.MarginProperty.AddOwner( 119Block.PaddingProperty.AddOwner( 138Block.BorderThicknessProperty.AddOwner( 157Block.BorderBrushProperty.AddOwner( 176Block.TextAlignmentProperty.AddOwner(typeof(AnchoredBlock)); 191Block.LineHeightProperty.AddOwner(typeof(AnchoredBlock)); 207Block.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); 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)
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)
741Block paragraphOrBlockUIContainerToDelete = position.ParagraphOrBlockUIContainer; 788Block 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; 622internal static bool ParagraphsAreMergeable(Block firstParagraphOrBlockUIContainer, Block secondParagraphOrBlockUIContainer)
System\Windows\Documents\TextRangeEditTables.cs (1)
878Invariant.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)) 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,
System\windows\Documents\TextSelection.cs (3)
1988FlowDirection renderScopeFlowDirection = (FlowDirection)this.TextView.RenderScope.GetValue(Block.FlowDirectionProperty); 1989FlowDirection paragraphFlowDirection = (FlowDirection)cursorPosition.GetValue(Block.FlowDirectionProperty); 2393Block 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)
7750Type type = typeof(System.Windows.Documents.Block); 7751DependencyProperty dp = System.Windows.Documents.Block.TextAlignmentProperty; 7753this.GetXamlType(typeof(System.Windows.Documents.Block)), // DeclaringType
System\Windows\Markup\Baml2006\WpfGeneratedKnownTypes.cs (1)
2045typeof(System.Windows.Documents.Block),
System\Windows\Markup\KnownTypes.cs (1)
5590case KnownElements.Block: t = typeof(System.Windows.Documents.Block); break;