Class LayoutElement
Inheritance
Namespace: Telerik.Windows.Documents.Layout
Assembly: Telerik.Windows.Controls.RichTextBox.dll
Syntax
public abstract class LayoutElement : Object
Constructors
LayoutElement(DocumentStructureCollection)
Declaration
public LayoutElement(DocumentStructureCollection collection)
Parameters
Document
|
Properties
Alignment
AutoSize
Gets or sets a value indicating whether the element size will be calculated automatically by the layout system. Value of false indicates that the element's size will not be changed when calculating the layout.
Declaration
public virtual bool AutoSize { get; }
Property Value
System.
|
BitState
Gets the RadBitVector64 structure that holds all the bit states of the object.
Declaration
protected DocumentElementStateBitVector BitState { get; }
Property Value
BypassLayoutPolicies
Declaration
public bool BypassLayoutPolicies { get; set; }
Property Value
System.
|
Children
Declaration
public ILinkedListCollection<LayoutElement> Children { get; }
Property Value
ClippedControlBoundingRectangle
Declaration
public virtual RectangleF ClippedControlBoundingRectangle { get; }
Property Value
ControlBoundingRectangle
DesiredSize
IsArrangeValid
Declaration
public bool IsArrangeValid { get; }
Property Value
System.
|
IsMeasureInProgress
Declaration
public bool IsMeasureInProgress { get; }
Property Value
System.
|
IsMeasureValid
Declaration
public bool IsMeasureValid { get; }
Property Value
System.
|
IsTopContainer
Declaration
public virtual bool IsTopContainer { get; }
Property Value
System.
|
LayoutOffset
LocalBoundingRectangle
MeasureWithoutParentNotification
Declaration
public bool MeasureWithoutParentNotification { get; set; }
Property Value
System.
|
Parent
PreviousArrangeRect
Size
Gets or sets the size of the element which is the height and width of the visual
rectangle that would contain the element. Size corresponds to
element's Bounds.Size. When the Auto
Declaration
public SizeF Size { get; set; }
Property Value
TotalTransform
Transform
TreeLevel
Gets the level of this element in the LayoutElement tree it currently resides.
Declaration
public byte TreeLevel { get; protected set; }
Property Value
System.
|
Methods
Arrange(RectangleF)
ArrangeCore(RectangleF)
Declaration
protected virtual void ArrangeCore(RectangleF finalRect)
Parameters
Rectangle
|
ArrangeOverride(SizeF)
Arranges the Layout
Declaration
protected virtual SizeF ArrangeOverride(SizeF finalSize)
Parameters
Size The size that is available for element. |
Returns
Size The rectangle occupied by the element. Usually |
Remarks
In this method call to the Arrange method of each child must be made.
CreateChildren()
Declaration
protected virtual ILinkedListCollection<LayoutElement> CreateChildren()
Returns
CreateChildrenCollection(DocumentStructureCollection)
Declaration
protected virtual ILinkedListCollection<LayoutElement> CreateChildrenCollection(DocumentStructureCollection collection)
Parameters
Document
|
Returns
EnsureChildrenCreated()
Declaration
protected void EnsureChildrenCreated()
InvalidateArrange()
Declaration
public void InvalidateArrange()
InvalidateArrange(Boolean)
Declaration
public void InvalidateArrange(bool recursive)
Parameters
System.
|
InvalidateMeasure()
Declaration
public virtual void InvalidateMeasure()
InvalidateMeasure(Boolean)
Declaration
public void InvalidateMeasure(bool recursive)
Parameters
System.
|
IsInValidState(Boolean)
Determines whether the element is currently in valid state. That is having a valid RadElementTree reference and being in either Constructed or Loaded state.
Declaration
protected bool IsInValidState(bool checkElementTree)
Parameters
System.
|
Returns
System.
|
Measure(SizeF)
MeasureCore(SizeF)
Declaration
protected virtual SizeF MeasureCore(SizeF availableSize)
Parameters
Size
|
Returns
MeasureOverride(SizeF)
Measures the space required by the Layout
Declaration
protected virtual SizeF MeasureOverride(SizeF availableSize)
Parameters
Size The size that is available to the Layout |
Returns
Size The minimum size required by the element to be completely visible. Cannot be infinity. |
Remarks
In this method call to the Measure method of each child must be made.
OnBitStateChanged(DocumentElementStates, Boolean, Boolean)
Notifies the object for a change in its bit state.
Declaration
protected virtual void OnBitStateChanged(DocumentElementStates key, bool oldValue, bool newValue)
Parameters
Document
|
System.
|
System.
|
OnChildDesiredSizeChanged(LayoutElement)
Declaration
protected virtual void OnChildDesiredSizeChanged(LayoutElement child)
Parameters
Layout
|
OnInvalidateArrange()
Declaration
protected virtual void OnInvalidateArrange()
OnInvalidateMeasure()
Declaration
protected virtual void OnInvalidateMeasure()
OnParentChanged()
Declaration
protected virtual void OnParentChanged()
OnParentChanging()
Declaration
protected virtual void OnParentChanging()
SetBitState(DocumentElementStates, Boolean)
Applies the specified boolean value to the BitVector of the object.
Declaration
protected virtual void SetBitState(DocumentElementStates key, bool value)
Parameters
Document
|
System.
|
SetParent(LayoutElement, LayoutElement)
Declaration
protected virtual void SetParent(LayoutElement oldParent, LayoutElement newParent)
Parameters
Layout
|
Layout
|
SetParentCore(LayoutElement)
Declaration
protected void SetParentCore(LayoutElement newParent)
Parameters
Layout
|
ValidateParent(LayoutElement)
Declaration
protected virtual void ValidateParent(LayoutElement newParent)
Parameters
Layout
|
Events
ParentChanged
Declaration
public event EventHandler ParentChanged
Event Type
System.
|
ParentChanging
Declaration
public event EventHandler ParentChanging
Event Type
System.
|