Class
FloatingBlockLayoutBox

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:

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

FloatingBlockLayoutBox(DocumentElement, DocumentStructureCollection)

Declaration

cs-api-definition
public FloatingBlockLayoutBox(DocumentElement parentElement, DocumentStructureCollection collection)

Parameters

parentElement

DocumentElement

collection

DocumentStructureCollection

Properties

AssociatedFloatingBlock

Gets the associated floating block for the current layout box.

Declaration

cs-api-definition
public FloatingBlock AssociatedFloatingBlock { get; set; }

Property Value

FloatingBlock

BaselineOffset

Gets the baseline offset of the floating block layout box.

Declaration

cs-api-definition
public override float BaselineOffset { get; }

Property Value

float

Overrides AnnotationMarkerLayoutBox.BaselineOffset

CanCreateLayoutBoxesFromContent

Declaration

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

Property Value

bool

Overrides LayoutBox.CanCreateLayoutBoxesFromContent

HasVisualRepresentation

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

Declaration

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

Property Value

bool

Overrides AnnotationMarkerLayoutBox.HasVisualRepresentation

HasWidthAtTheEndOfLine

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

Declaration

cs-api-definition
public override bool HasWidthAtTheEndOfLine { get; }

Property Value

bool

Overrides AnnotationMarkerLayoutBox.HasWidthAtTheEndOfLine

IsReadonly

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

Declaration

cs-api-definition
public override bool IsReadonly { get; }

Property Value

bool

Overrides AnnotationMarkerLayoutBox.IsReadonly

IsSplittable

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

Declaration

cs-api-definition
public override bool IsSplittable { get; }

Property Value

bool

Overrides AnnotationMarkerLayoutBox.IsSplittable

PositionsCountInBox

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

Declaration

cs-api-definition
public override int PositionsCountInBox { get; }

Property Value

int

Overrides AnnotationMarkerLayoutBox.PositionsCountInBox

Methods

ArrangeOverride(SizeF)

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

Declaration

cs-api-definition
protected override SizeF ArrangeOverride(SizeF finalSize)

Parameters

finalSize

SizeF

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.

CreateLayoutElement()

Creates a new layout element for the FloatingBlockLayoutBox.

Declaration

cs-api-definition
public override LayoutElement CreateLayoutElement()

Returns

LayoutElement

A layout element that represents the floating block.

Overrides AnnotationMarkerLayoutBox.CreateLayoutElement()

CreateNewFragment(float, bool)

Creates a new fragment for the floating block layout box.

Declaration

cs-api-definition
public override LayoutBox CreateNewFragment(float availableWidth, bool isFirstBoxInLine)

Parameters

availableWidth

float

The width of the new fragment.

isFirstBoxInLine

bool

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)

MeasureOverride(SizeF)

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

Declaration

cs-api-definition
protected override SizeF MeasureOverride(SizeF availableSize)

Parameters

availableSize

SizeF

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.

OnElementStructureChanging()

Declaration

cs-api-definition
protected override void OnElementStructureChanging()

Overrides LayoutBox.OnElementStructureChanging()

OnParentChanged()

Declaration

cs-api-definition
protected override void OnParentChanged()

Overrides LayoutElement.OnParentChanged()

ToString()

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

Declaration

cs-api-definition
public override string ToString()

Returns

string

A string that represents the current FloatingBlockLayoutBox instance.

Overrides LayoutBox.ToString()