New to Telerik UI for WinFormsStart a free 30-day trial

Definition

Namespace:Telerik.WinForms.Documents.Layout

Assembly:Telerik.WinControls.RichTextEditor.dll

Syntax:

C#
public abstract class LayoutBox : LayoutElement, IDisposable, INotifyPropertyChanged, ICustomTypeDescriptor

Inheritance: objectDisposableObjectRadObjectLayoutElementLayoutBox

Derived Classes: DocumentLayoutBoxFlowOrderedLayoutBoxInlineLayoutBoxParagraphLayoutBoxSectionLayoutBoxTableLayoutBox...

Implements: ICustomTypeDescriptorIDisposableINotifyPropertyChanged

Inherited Members LayoutElement.EnsureChildrenCreated()LayoutElement.CreateChildren()LayoutElement.OnBitStateChanged(DocumentElementStates, bool, bool)LayoutElement.SetBitState(DocumentElementStates, bool)LayoutElement.ValidateParent(LayoutElement)LayoutElement.SetParent(LayoutElement, LayoutElement)LayoutElement.SetParentCore(LayoutElement)LayoutElement.IsInValidState(bool)LayoutElement.OnInvalidateMeasure()LayoutElement.InvalidateMeasure(bool)LayoutElement.InvalidateArrange()LayoutElement.OnInvalidateArrange()LayoutElement.InvalidateArrange(bool)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.LayoutOffsetLayoutElement.IsTopContainerLayoutElement.LocalBoundingRectangleLayoutElement.ControlBoundingRectangleLayoutElement.ClippedControlBoundingRectangleLayoutElement.TotalTransformLayoutElement.ChildrenLayoutElement.BitStateLayoutElement.DesiredSizeLayoutElement.IsMeasureInProgressLayoutElement.BypassLayoutPoliciesLayoutElement.MeasureWithoutParentNotificationLayoutElement.SizeLayoutElement.IsArrangeValidLayoutElement.IsMeasureValidLayoutElement.TreeLevelLayoutElement.PreviousArrangeRectLayoutElement.AlignmentLayoutElement.AutoSizeLayoutElement.TransformLayoutElement.ParentChangingLayoutElement.ParentChangedRadObject.BindingContextPropertyRadObject.RadTypeRadObject.ReplaceDefaultDescriptors(PropertyDescriptorCollection)RadObject.DisposeManagedResources()RadObject.ClearPropertyStore()RadObject.SuspendPropertyNotifications()RadObject.ResumePropertyNotifications()RadObject.GetPropertyValue(RadProperty)RadObject.SetDefaultValueOverride(RadProperty, object)RadObject.GetValue(RadProperty)RadObject.SetValue(RadProperty, object)RadObject.ResetValue(RadProperty)RadObject.ResetLocalValue(RadProperty)RadObject.ResetValue(RadProperty, ValueResetFlags)RadObject.UpdateValue(RadProperty)RadObject.GetValueSource(RadProperty)RadObject.GetRegisteredRadProperty(string)RadObject.UpdateValueCore(RadPropertyValue)RadObject.SetValueCore(RadPropertyValue, object, object, ValueSource)RadObject.ResetValueCore(RadPropertyValue, ValueResetFlags)RadObject.GetDefaultValue(RadPropertyValue, object)RadObject.CoerceValue(RadPropertyValue, object)RadObject.ShouldSerializeProperty(RadProperty)RadObject.CanRaisePropertyChangeNotifications(RadPropertyValue)RadObject.BindProperty(RadProperty, RadObject, RadProperty, PropertyBindingOptions)RadObject.UnbindProperty(RadProperty)RadObject.AddStylePropertySetting(IPropertySetting)RadObject.GetInheritedValue(RadProperty)RadObject.OnPropertyChanging(RadPropertyChangingEventArgs)RadObject.OnPropertyChanged(RadPropertyChangedEventArgs)RadObject.OnNotifyPropertyChanged(string)RadObject.OnNotifyPropertyChanged(PropertyChangedEventArgs)RadObject.OnShouldSerializeProperty(ShouldSerializePropertyEventArgs)RadObject.IsPropertyCancelable(RadPropertyMetadata)RadObject.PropertyValuesRadObject.PropertyFilterRadObject.RadObjectTypeRadObject.BindingContextRadObject.PropertyChangedRadObject.RadPropertyChangedRadObject.RadPropertyChangingDisposableObject.GetBitState(long)DisposableObject.SetBitState(long, bool)DisposableObject.OnBitStateChanged(long, bool, bool)DisposableObject.Dispose()DisposableObject.Dispose(bool)DisposableObject.PerformDispose(bool)DisposableObject.DisposeUnmanagedResources()DisposableObject.EventsDisposableObject.IsDisposingDisposableObject.IsDisposedDisposableObject.DisposedDisposableObject.Disposing...

Constructors

C#
public LayoutBox(DocumentElement associatedDocumentElement, DocumentStructureCollection collection, bool isFragment)
Parameters:associatedDocumentElementDocumentElementcollectionDocumentStructureCollectionisFragmentbool
C#
public LayoutBox(DocumentElement associatedDocumentElement, DocumentStructureCollection collection)
Parameters:associatedDocumentElementDocumentElementcollectionDocumentStructureCollection
C#
public LayoutBox(DocumentElement associatedDocumentElement)
Parameters:associatedDocumentElementDocumentElement

Fields

C#
public static readonly RadProperty AssociatedLayoutBoxProperty
C#
protected float currentY
C#
public BoxNode Node

Properties

C#
public DocumentElement AssociatedDocumentElement { get; }
C#
public RectangleF BoundingRectangle { get; }
C#
public virtual bool BoundsChildBoxes { get; }
C#
protected virtual bool CanCreateLayoutBoxesFromContent { get; }
C#
public int ChildIndex { get; }
C#
public LayoutElementCollection ChildLayoutBoxes { get; }
C#
public virtual bool HasVisualRepresentation { get; }
C#
public virtual bool IsContainerBox { get; }
C#
public bool IsFirstBox { get; }
C#
public bool IsFirstChild { get; }
C#
public virtual bool IsFormattingSymbol { get; }
C#
public bool IsFragment { get; }
C#
public virtual bool IsLastBox { get; }
C#
public bool IsLastChild { get; }
C#
public bool IsRemoved { get; }
C#
public virtual bool IsValidPosition { get; }
C#
public LayoutBox Parent { get; }

Methods

C#
protected bool? CanGrowVertically(float desiredHeight)
Parameters:desiredHeightfloatReturns:

bool?

C#
protected virtual bool? CanGrowVerticallyOverride(float desiredHeight)
Parameters:desiredHeightfloatReturns:

bool?

C#
protected override ILinkedListCollection<LayoutElement> CreateChildrenCollection(DocumentStructureCollection collection)
Parameters:collectionDocumentStructureCollectionReturns:

ILinkedListCollection<LayoutElement>

Overrides: LayoutElement.CreateChildrenCollection(DocumentStructureCollection)

C#
public abstract LayoutElement CreateLayoutElement()
Returns:

LayoutElement

C#
public virtual void CreateNewFragment(LayoutBox currentLineStartNode)
Parameters:currentLineStartNodeLayoutBox
C#
public static LayoutBox GetAssociatedLayoutBox(UIElement element)
Parameters:elementUIElementReturns:

LayoutBox

C#
protected virtual float GetBoxDesiredGrow()
Returns:

float

C#
public virtual PositionHandler GetPositionHandler()
Returns:

PositionHandler

C#
public RadDocument GetRootDocument()
Returns:

RadDocument

C#
public void InvalidateArrangeUpToTheRoot()
C#
public void InvalidateLayoutAfterEdit()
C#
public override void InvalidateMeasure()

Overrides: LayoutElement.InvalidateMeasure()

C#
public void InvalidateMeasureUpToTheRoot()
C#
public void InvalidateMeasureUpToTheRootStable()
C#
public virtual void MergeWithNext(LayoutBox nextSpanBox)
Parameters:nextSpanBoxLayoutBox
C#
protected virtual void OnAssociateDocumentElementChanged()
C#
protected virtual void OnElementStructureChanged()
C#
protected virtual void OnElementStructureChanging()
C#
public static void SetAssociatedLayoutBox(UIElement element, LayoutBox uiElementProvider)
Parameters:elementUIElementuiElementProviderLayoutBox
C#
public override string ToString()
Returns:

string

Overrides: object.ToString()

C#
public void ValidateChild(LayoutBox child)
Parameters:childLayoutBox

Events

C#
public event EventHandler ElementStructureChanged
C#
public event EventHandler ElementStructureChanging

Extension Methods