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

Represents a layout box for a floating block in the Telerik document layout.

Definition

Namespace:Telerik.Windows.Documents.Layout

Assembly:Telerik.Windows.Controls.RichTextBox.dll

Syntax:

C#
public class FloatingBlockLayoutBox : AnnotationMarkerLayoutBox

Inheritance: objectLayoutElementLayoutBoxInlineLayoutBoxAnnotationMarkerLayoutBoxFloatingBlockLayoutBox...

Inherited Members AnnotationMarkerLayoutBox.AssociatedAnnotationMarkerAnnotationMarkerLayoutBox.TextInlineLayoutBox.Remove()InlineLayoutBox.MergeWithNext(LayoutBox)InlineLayoutBox.GetPositionHandler()InlineLayoutBox.LineInfoInlineLayoutBox.LineSegmentInfoInlineLayoutBox.IsRtlInlineLayoutBox.IsContainerBoxInlineLayoutBox.AssociatedInlineInlineLayoutBox.IsStartOfLineSegmentLayoutBox.currentYLayoutBox.AssociatedLayoutBoxPropertyLayoutBox.NodeLayoutBox.GetAssociatedLayoutBox(UIElement)LayoutBox.SetAssociatedLayoutBox(UIElement, LayoutBox)LayoutBox.OnElementStructureChanged()LayoutBox.OnAssociateDocumentElementChanged()LayoutBox.CreateChildrenCollection(DocumentStructureCollection)LayoutBox.InvalidateMeasureUpToTheRoot()LayoutBox.InvalidateMeasureUpToTheRootStable()LayoutBox.InvalidateArrangeUpToTheRoot()LayoutBox.InvalidateLayoutAfterEdit()LayoutBox.ValidateChild(LayoutBox)LayoutBox.GetRootDocument()LayoutBox.CanGrowVerticallyOverride(float)LayoutBox.CanGrowVertically(float)LayoutBox.GetBoxDesiredGrow()LayoutBox.CreateNewFragment(LayoutBox)LayoutBox.InvalidateMeasure()LayoutBox.IsRemovedLayoutBox.IsFragmentLayoutBox.AssociatedDocumentElementLayoutBox.ChildLayoutBoxesLayoutBox.IsFormattingSymbolLayoutBox.BoundsChildBoxesLayoutBox.IsFirstBoxLayoutBox.IsLastBoxLayoutBox.IsFirstChildLayoutBox.IsLastChildLayoutBox.IsValidPositionLayoutBox.ParentLayoutBox.ChildIndexLayoutBox.BoundingRectangleLayoutBox.ElementStructureChangingLayoutBox.ElementStructureChangedLayoutElement.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.Measure(SizeF)LayoutElement.MeasureCore(SizeF)LayoutElement.OnChildDesiredSizeChanged(LayoutElement)LayoutElement.OnParentChanging()LayoutElement.LayoutOffsetLayoutElement.IsTopContainerLayoutElement.LocalBoundingRectangleLayoutElement.ControlBoundingRectangleLayoutElement.ClippedControlBoundingRectangleLayoutElement.TotalTransformLayoutElement.ChildrenLayoutElement.BitStateLayoutElement.DesiredSizeLayoutElement.IsMeasureInProgressLayoutElement.BypassLayoutPoliciesLayoutElement.MeasureWithoutParentNotificationLayoutElement.SizeLayoutElement.IsArrangeValidLayoutElement.IsMeasureValidLayoutElement.TreeLevelLayoutElement.PreviousArrangeRectLayoutElement.AlignmentLayoutElement.AutoSizeLayoutElement.TransformLayoutElement.ParentChangingLayoutElement.ParentChanged...

Constructors

C#
public FloatingBlockLayoutBox(DocumentElement parentElement, DocumentStructureCollection collection)
Parameters:parentElementDocumentElementcollectionDocumentStructureCollection

Properties

Gets the associated floating block for the current layout box.

C#
public FloatingBlock AssociatedFloatingBlock { get; set; }

Gets the baseline offset of the floating block layout box.

C#
public override float BaselineOffset { get; }

Overrides: AnnotationMarkerLayoutBox.BaselineOffset

C#
protected override bool CanCreateLayoutBoxesFromContent { get; }

Overrides: LayoutBox.CanCreateLayoutBoxesFromContent

Gets a value indicating whether the floating block layout box has a visual representation.

C#
public override bool HasVisualRepresentation { get; }

Overrides: AnnotationMarkerLayoutBox.HasVisualRepresentation

Gets a value indicating whether the floating block layout box has a specified width at the end of the line.

C#
public override bool HasWidthAtTheEndOfLine { get; }

Overrides: AnnotationMarkerLayoutBox.HasWidthAtTheEndOfLine

Gets a value indicating whether the FloatingBlockLayoutBox is in a read-only state.

C#
public override bool IsReadonly { get; }

Overrides: AnnotationMarkerLayoutBox.IsReadonly

Gets a value indicating whether the floating block layout box can be split.

C#
public override bool IsSplittable { get; }

Overrides: AnnotationMarkerLayoutBox.IsSplittable

Gets the count of positions within the floating block layout box.

C#
public override int PositionsCountInBox { get; }

Overrides: AnnotationMarkerLayoutBox.PositionsCountInBox

Methods

Arranges the LayoutElement to its final location. The element must call the Arrange method of each of its children.

C#
protected override SizeF ArrangeOverride(SizeF finalSize)
Parameters:finalSizeSizeF

The size that is available for element.

Returns:

SizeF

The rectangle occupied by the element. Usually finalSize. Should you return different size, the Layout system will restart measuring and rearranging the items. That could lead to infinite recursion.

Overrides: LayoutElement.ArrangeOverride(SizeF)

Remarks:

In this method call to the Arrange method of each child must be made.

Creates a new layout element for the FloatingBlockLayoutBox.

C#
public override LayoutElement CreateLayoutElement()
Returns:

LayoutElement

A layout element that represents the floating block.

Overrides: AnnotationMarkerLayoutBox.CreateLayoutElement()

Creates a new fragment for the floating block layout box.

C#
public override LayoutBox CreateNewFragment(float availableWidth, bool isFirstBoxInLine)
Parameters:availableWidthfloat

The width of the new fragment.

isFirstBoxInLinebool

A boolean value indicating whether the new fragment should be visible.

Returns:

LayoutBox

A new instance of a fragment with the specified width and visibility.

Overrides: InlineLayoutBox.CreateNewFragment(float, bool)

Measures the space required by the LayoutElement Used by the layout system.

C#
protected override SizeF MeasureOverride(SizeF availableSize)
Parameters:availableSizeSizeF

The size that is available to the LayoutElement. The available size can be infinity (to take the full size of the element)

Returns:

SizeF

The minimum size required by the element to be completely visible. Cannot be infinity.

Overrides: AnnotationMarkerLayoutBox.MeasureOverride(SizeF)

Remarks:

In this method call to the Measure method of each child must be made.

C#
protected override void OnElementStructureChanging()

Overrides: LayoutBox.OnElementStructureChanging()

C#
protected override void OnParentChanged()

Overrides: LayoutElement.OnParentChanged()

Returns a string representation of the current instance of the FloatingBlockLayoutBox.

C#
public override string ToString()
Returns:

string

A string that represents the current FloatingBlockLayoutBox instance.

Overrides: LayoutBox.ToString()