Class
LayoutBox

Definition

Namespace:Telerik.WinForms.Documents.Layout

Assembly:Telerik.WinControls.RichTextEditor.dll

Syntax:

cs-api-definition
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

LayoutBox(DocumentElement)

Declaration

cs-api-definition
public LayoutBox(DocumentElement associatedDocumentElement)

Parameters

associatedDocumentElement

DocumentElement

LayoutBox(DocumentElement, DocumentStructureCollection)

Declaration

cs-api-definition
public LayoutBox(DocumentElement associatedDocumentElement, DocumentStructureCollection collection)

Parameters

associatedDocumentElement

DocumentElement

collection

DocumentStructureCollection

LayoutBox(DocumentElement, DocumentStructureCollection, bool)

Declaration

cs-api-definition
public LayoutBox(DocumentElement associatedDocumentElement, DocumentStructureCollection collection, bool isFragment)

Parameters

associatedDocumentElement

DocumentElement

collection

DocumentStructureCollection

isFragment

bool

Fields

AssociatedLayoutBoxProperty

Declaration

cs-api-definition
public static readonly RadProperty AssociatedLayoutBoxProperty

Field Value

RadProperty

Node

Declaration

cs-api-definition
public BoxNode Node

Field Value

BoxNode

currentY

Declaration

cs-api-definition
protected float currentY

Field Value

float

Properties

AssociatedDocumentElement

Declaration

cs-api-definition
public DocumentElement AssociatedDocumentElement { get; }

Property Value

DocumentElement

BoundingRectangle

Declaration

cs-api-definition
public RectangleF BoundingRectangle { get; }

Property Value

RectangleF

BoundsChildBoxes

Declaration

cs-api-definition
public virtual bool BoundsChildBoxes { get; }

Property Value

bool

CanCreateLayoutBoxesFromContent

Declaration

cs-api-definition
protected virtual bool CanCreateLayoutBoxesFromContent { get; }

Property Value

bool

ChildIndex

Declaration

cs-api-definition
public int ChildIndex { get; }

Property Value

int

ChildLayoutBoxes

Declaration

cs-api-definition
public LayoutElementCollection ChildLayoutBoxes { get; }

Property Value

LayoutElementCollection

HasVisualRepresentation

Declaration

cs-api-definition
public virtual bool HasVisualRepresentation { get; }

Property Value

bool

IsContainerBox

Declaration

cs-api-definition
public virtual bool IsContainerBox { get; }

Property Value

bool

IsFirstBox

Declaration

cs-api-definition
public bool IsFirstBox { get; }

Property Value

bool

IsFirstChild

Declaration

cs-api-definition
public bool IsFirstChild { get; }

Property Value

bool

IsFormattingSymbol

Declaration

cs-api-definition
public virtual bool IsFormattingSymbol { get; }

Property Value

bool

IsFragment

Declaration

cs-api-definition
public bool IsFragment { get; }

Property Value

bool

IsLastBox

Declaration

cs-api-definition
public virtual bool IsLastBox { get; }

Property Value

bool

IsLastChild

Declaration

cs-api-definition
public bool IsLastChild { get; }

Property Value

bool

IsRemoved

Declaration

cs-api-definition
public bool IsRemoved { get; }

Property Value

bool

IsValidPosition

Declaration

cs-api-definition
public virtual bool IsValidPosition { get; }

Property Value

bool

Parent

Declaration

cs-api-definition
public LayoutBox Parent { get; }

Property Value

LayoutBox

Methods

CanGrowVertically(float)

Declaration

cs-api-definition
protected bool? CanGrowVertically(float desiredHeight)

Parameters

desiredHeight

float

Returns

bool?

CanGrowVerticallyOverride(float)

Declaration

cs-api-definition
protected virtual bool? CanGrowVerticallyOverride(float desiredHeight)

Parameters

desiredHeight

float

Returns

bool?

CreateChildrenCollection(DocumentStructureCollection)

Declaration

cs-api-definition
protected override ILinkedListCollection<LayoutElement> CreateChildrenCollection(DocumentStructureCollection collection)

Parameters

collection

DocumentStructureCollection

Returns

ILinkedListCollection<LayoutElement>

Overrides LayoutElement.CreateChildrenCollection(DocumentStructureCollection)

CreateLayoutElement()

Declaration

cs-api-definition
public abstract LayoutElement CreateLayoutElement()

Returns

LayoutElement

CreateNewFragment(LayoutBox)

Declaration

cs-api-definition
public virtual void CreateNewFragment(LayoutBox currentLineStartNode)

Parameters

currentLineStartNode

LayoutBox

GetAssociatedLayoutBox(UIElement)

Declaration

cs-api-definition
public static LayoutBox GetAssociatedLayoutBox(UIElement element)

Parameters

element

UIElement

Returns

LayoutBox

GetBoxDesiredGrow()

Declaration

cs-api-definition
protected virtual float GetBoxDesiredGrow()

Returns

float

GetPositionHandler()

Declaration

cs-api-definition
public virtual PositionHandler GetPositionHandler()

Returns

PositionHandler

GetRootDocument()

Declaration

cs-api-definition
public RadDocument GetRootDocument()

Returns

RadDocument

InvalidateArrangeUpToTheRoot()

Declaration

cs-api-definition
public void InvalidateArrangeUpToTheRoot()

InvalidateLayoutAfterEdit()

Declaration

cs-api-definition
public void InvalidateLayoutAfterEdit()

InvalidateMeasure()

Declaration

cs-api-definition
public override void InvalidateMeasure()

Overrides LayoutElement.InvalidateMeasure()

InvalidateMeasureUpToTheRoot()

Declaration

cs-api-definition
public void InvalidateMeasureUpToTheRoot()

InvalidateMeasureUpToTheRootStable()

Declaration

cs-api-definition
public void InvalidateMeasureUpToTheRootStable()

MergeWithNext(LayoutBox)

Declaration

cs-api-definition
public virtual void MergeWithNext(LayoutBox nextSpanBox)

Parameters

nextSpanBox

LayoutBox

OnAssociateDocumentElementChanged()

Declaration

cs-api-definition
protected virtual void OnAssociateDocumentElementChanged()

OnElementStructureChanged()

Declaration

cs-api-definition
protected virtual void OnElementStructureChanged()

OnElementStructureChanging()

Declaration

cs-api-definition
protected virtual void OnElementStructureChanging()

SetAssociatedLayoutBox(UIElement, LayoutBox)

Declaration

cs-api-definition
public static void SetAssociatedLayoutBox(UIElement element, LayoutBox uiElementProvider)

Parameters

element

UIElement

uiElementProvider

LayoutBox

ToString()

Declaration

cs-api-definition
public override string ToString()

Returns

string

Overrides object.ToString()

ValidateChild(LayoutBox)

Declaration

cs-api-definition
public void ValidateChild(LayoutBox child)

Parameters

child

LayoutBox

Events

ElementStructureChanged

Declaration

cs-api-definition
public event EventHandler ElementStructureChanged

Event Value

EventHandler

ElementStructureChanging

Declaration

cs-api-definition
public event EventHandler ElementStructureChanging

Event Value

EventHandler

Extension Methods