• Product Bundles

    DevCraft

    All Telerik .NET tools and Kendo UI JavaScript components in one package. Now enhanced with:

    • NEW: Design Kits for Figma
    • Online Training
    • Document Processing Library
    • Embedded Reporting for web and desktop
    Web
    Kendo UI UI for jQuery UI for Angular UI for React UI for Vue UI for ASP.NET AJAX UI for ASP.NET MVC UI for ASP.NET Core UI for Blazor UI for Silverlight UI for PHP UI for JSP
    Mobile
    UI for .NET MAUI UI for Xamarin
    Document Management
    Telerik Document Processing
    Desktop
    UI for .NET MAUI UI for WinUI UI for WinForms UI for WPF UI for UWP
    Reporting & Mocking
    Telerik Reporting Telerik Report Server Telerik JustMock
    Automated Testing
    Test Studio Test Studio Dev Edition
    CMS
    Sitefinity
    UI/UX Design
    Unite UX
    Debugging
    Fiddler Fiddler Everywhere Fiddler Classic Fiddler Jam FiddlerCap FiddlerCore
    Extended Reality
    UI for Unity XR
    Free Tools
    JustAssembly JustDecompile VB.NET to C# Converter Testing Framework
    View all products
  • Overview
  • Demos
    • What's New
    • Roadmap
    • Release History
  • Docs & Support
  • Pricing
  • Search
  • Shopping cart
    • Account Overview
    • Your Licenses
    • Support Center
    • Forum Profile
    • Payment Methods
    • Edit Profile
    • Log out
  • Login
  • Contact Us
  • Try now

Class LayoutBox

Inheritance
System.Object
LayoutElement
LayoutBox
DocumentLayoutBox
FlowOrderedLayoutBox
InlineLayoutBox
ParagraphLayoutBox
SectionLayoutBox
TableLayoutBox
Inherited Members
LayoutElement.EnsureChildrenCreated()
LayoutElement.CreateChildren()
LayoutElement.OnBitStateChanged(DocumentElementStates, Boolean, Boolean)
LayoutElement.SetBitState(DocumentElementStates, Boolean)
LayoutElement.ValidateParent(LayoutElement)
LayoutElement.SetParent(LayoutElement, LayoutElement)
LayoutElement.SetParentCore(LayoutElement)
LayoutElement.IsInValidState(Boolean)
LayoutElement.OnInvalidateMeasure()
LayoutElement.InvalidateMeasure(Boolean)
LayoutElement.InvalidateArrange()
LayoutElement.OnInvalidateArrange()
LayoutElement.InvalidateArrange(Boolean)
LayoutElement.Arrange(RectangleF)
LayoutElement.ArrangeCore(RectangleF)
LayoutElement.ArrangeOverride(SizeF)
LayoutElement.Measure(SizeF)
LayoutElement.MeasureCore(SizeF)
LayoutElement.MeasureOverride(SizeF)
LayoutElement.OnChildDesiredSizeChanged(LayoutElement)
LayoutElement.OnParentChanging()
LayoutElement.OnParentChanged()
LayoutElement.LayoutOffset
LayoutElement.IsTopContainer
LayoutElement.LocalBoundingRectangle
LayoutElement.ControlBoundingRectangle
LayoutElement.ClippedControlBoundingRectangle
LayoutElement.TotalTransform
LayoutElement.Children
LayoutElement.BitState
LayoutElement.DesiredSize
LayoutElement.IsMeasureInProgress
LayoutElement.BypassLayoutPolicies
LayoutElement.MeasureWithoutParentNotification
LayoutElement.Size
LayoutElement.IsArrangeValid
LayoutElement.IsMeasureValid
LayoutElement.TreeLevel
LayoutElement.PreviousArrangeRect
LayoutElement.Alignment
LayoutElement.AutoSize
LayoutElement.Transform
LayoutElement.ParentChanging
LayoutElement.ParentChanged
System.Object.Equals(System.Object)
System.Object.Equals(System.Object, System.Object)
System.Object.ReferenceEquals(System.Object, System.Object)
System.Object.GetHashCode()
System.Object.GetType()
System.Object.MemberwiseClone()
Namespace: Telerik.Windows.Documents.Layout
Assembly: Telerik.Windows.Documents.dll

Syntax

public abstract class LayoutBox : LayoutElement

Constructors

LayoutBox(DocumentElement)

Declaration
public LayoutBox(DocumentElement associatedDocumentElement)
Parameters
DocumentElement associatedDocumentElement

LayoutBox(DocumentElement, DocumentStructureCollection)

Declaration
public LayoutBox(DocumentElement associatedDocumentElement, DocumentStructureCollection collection)
Parameters
DocumentElement associatedDocumentElement

DocumentStructureCollection collection

LayoutBox(DocumentElement, DocumentStructureCollection, Boolean)

Declaration
public LayoutBox(DocumentElement associatedDocumentElement, DocumentStructureCollection collection, bool isFragment)
Parameters
DocumentElement associatedDocumentElement

DocumentStructureCollection collection

System.Boolean isFragment

Fields

AssociatedLayoutBoxProperty

Declaration
public static readonly DependencyProperty AssociatedLayoutBoxProperty
Field Value
System.Windows.DependencyProperty

currentY

Declaration
protected float currentY
Field Value
System.Single

Properties

AssociatedDocumentElement

Declaration
public DocumentElement AssociatedDocumentElement { get; }
Property Value
DocumentElement

BoundingRectangle

Declaration
public RectangleF BoundingRectangle { get; }
Property Value
RectangleF

BoundsChildBoxes

Declaration
public virtual bool BoundsChildBoxes { get; }
Property Value
System.Boolean

CanCreateLayoutBoxesFromContent

Declaration
protected virtual bool CanCreateLayoutBoxesFromContent { get; }
Property Value
System.Boolean

ChildIndex

Declaration
public int ChildIndex { get; }
Property Value
System.Int32

ChildLayoutBoxes

Declaration
public LayoutElementCollection ChildLayoutBoxes { get; }
Property Value
LayoutElementCollection

HasVisualRepresentation

Declaration
public virtual bool HasVisualRepresentation { get; }
Property Value
System.Boolean

IsContainerBox

Declaration
public virtual bool IsContainerBox { get; }
Property Value
System.Boolean

IsFirstBox

Declaration
public bool IsFirstBox { get; }
Property Value
System.Boolean

IsFirstChild

Declaration
public bool IsFirstChild { get; }
Property Value
System.Boolean

IsFormattingSymbol

Declaration
public virtual bool IsFormattingSymbol { get; }
Property Value
System.Boolean

IsFragment

Declaration
public bool IsFragment { get; }
Property Value
System.Boolean

IsLastBox

Declaration
public virtual bool IsLastBox { get; }
Property Value
System.Boolean

IsLastChild

Declaration
public bool IsLastChild { get; }
Property Value
System.Boolean

IsRemoved

Declaration
public bool IsRemoved { get; }
Property Value
System.Boolean

IsValidPosition

Declaration
public virtual bool IsValidPosition { get; }
Property Value
System.Boolean

Node

Declaration
public BoxNode Node { get; set; }
Property Value
BoxNode

Parent

Declaration
public LayoutBox Parent { get; }
Property Value
LayoutBox

Methods

CanGrowVertically(Single)

Declaration
protected bool? CanGrowVertically(float desiredHeight)
Parameters
System.Single desiredHeight

Returns
System.Nullable<System.Boolean>

CanGrowVerticallyOverride(Single)

Declaration
protected virtual bool? CanGrowVerticallyOverride(float desiredHeight)
Parameters
System.Single desiredHeight

Returns
System.Nullable<System.Boolean>

CreateChildrenCollection(DocumentStructureCollection)

Declaration
protected override ILinkedListCollection<LayoutElement> CreateChildrenCollection(DocumentStructureCollection collection)
Parameters
DocumentStructureCollection collection

Returns
ILinkedListCollection<LayoutElement>

Overrides
LayoutElement.CreateChildrenCollection(DocumentStructureCollection)

CreateLayoutElement()

Declaration
public abstract LayoutElement CreateLayoutElement()
Returns
LayoutElement

CreateNewFragment(LayoutBox)

Declaration
public virtual void CreateNewFragment(LayoutBox currentLineStartNode)
Parameters
LayoutBox currentLineStartNode

GetAssociatedLayoutBox(UIElement)

Declaration
public static LayoutBox GetAssociatedLayoutBox(UIElement element)
Parameters
System.Windows.UIElement element

Returns
LayoutBox

GetBoxDesiredGrow()

Declaration
protected virtual float GetBoxDesiredGrow()
Returns
System.Single

GetPositionHandler()

Declaration
public virtual PositionHandler GetPositionHandler()
Returns
PositionHandler

GetRootDocument()

Declaration
public RadDocument GetRootDocument()
Returns
RadDocument

InvalidateArrangeUpToTheRoot()

Declaration
public void InvalidateArrangeUpToTheRoot()

InvalidateLayoutAfterEdit()

Declaration
public void InvalidateLayoutAfterEdit()

InvalidateMeasure()

Declaration
public override void InvalidateMeasure()
Overrides
LayoutElement.InvalidateMeasure()

InvalidateMeasureUpToTheRoot()

Declaration
public void InvalidateMeasureUpToTheRoot()

InvalidateMeasureUpToTheRootStable()

Declaration
public void InvalidateMeasureUpToTheRootStable()

MergeWithNext(LayoutBox)

Declaration
public virtual void MergeWithNext(LayoutBox nextSpanBox)
Parameters
LayoutBox nextSpanBox

OnAssociateDocumentElementChanged()

Declaration
protected virtual void OnAssociateDocumentElementChanged()

OnElementStructureChanged()

Declaration
protected virtual void OnElementStructureChanged()

OnElementStructureChanging()

Declaration
protected virtual void OnElementStructureChanging()

SetAssociatedLayoutBox(UIElement, LayoutBox)

Declaration
public static void SetAssociatedLayoutBox(UIElement element, LayoutBox uiElementProvider)
Parameters
System.Windows.UIElement element

LayoutBox uiElementProvider

ToString()

Declaration
public override string ToString()
Returns
System.String

Overrides
System.Object.ToString()

ValidateChild(LayoutBox)

Declaration
public void ValidateChild(LayoutBox child)
Parameters
LayoutBox child

Events

ElementStructureChanged

Declaration
public event EventHandler ElementStructureChanged
Event Type
System.EventHandler

ElementStructureChanging

Declaration
public event EventHandler ElementStructureChanging
Event Type
System.EventHandler

Extension Methods

CollectionExtensions.ToEnumerable<T>(T)
ExtensionMethods.GetCurrentSectionBox(LayoutBox)
EnumerableExtensions.ToEnumerable<T>(T)

Was this article helpful?

Tell us how we can improve this article

Skip
Getting Started
  • Install Now
  • Demos
  • SDK Samples Browser
  • Sample Applications
Support Resources
  • Code Library
  • Knowledge Base
  • MVVM Support
  • Videos
  • GitHub SDK Repository
Community
  • Forums
  • Blogs
  • XAML Feedback Portal
  • Document Processing Feedback Portal

Copyright © 2018 Progress Software Corporation and/or its subsidiaries or affiliates.
All Rights Reserved.

Progress, Telerik, and certain product names used herein are trademarks or registered trademarks of Progress Software Corporation and/or one of its subsidiaries or affiliates in the U.S. and/or other countries. See Trademarks for appropriate markings.