New to Telerik UI for WinForms? Start a free 30-day trial

Represents an inline anchor for a floating block. The anchor occupies one document position, while its content is measured and arranged separately from the text line.

Definition

Namespace:Telerik.WinForms.Documents.Layout

Assembly:Telerik.WinControls.RichTextEditor.dll

Syntax:

C#
public class FloatingBlockLayoutBox : AnnotationMarkerLayoutBox, IDisposable, INotifyPropertyChanged, ICustomTypeDescriptor

Inheritance: objectDisposableObjectRadObjectLayoutElementLayoutBoxInlineLayoutBoxAnnotationMarkerLayoutBoxFloatingBlockLayoutBox...

Implements: ICustomTypeDescriptorIDisposableINotifyPropertyChanged

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.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

Creates a floating-block layout box for a document element.

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

The floating block represented by the box.

collectionDocumentStructureCollection

The document structure collection that owns the box.

Properties

Gets or sets the floating-block model element anchored by this box.

C#
public FloatingBlock AssociatedFloatingBlock { get; set; }

Gets the measured content height used as the floating anchor's baseline offset.

C#
public override float BaselineOffset { get; }

Overrides: AnnotationMarkerLayoutBox.BaselineOffset

Gets whether child layout boxes can be generated from the floating block. The content box is supplied by the associated floating-block model element.

C#
protected override bool CanCreateLayoutBoxesFromContent { get; }

Overrides: LayoutBox.CanCreateLayoutBoxesFromContent

Gets whether this box reports a visual representation. It returns true even when there is no content box to measure.

C#
public override bool HasVisualRepresentation { get; }

Overrides: AnnotationMarkerLayoutBox.HasVisualRepresentation

Gets whether the anchor contributes width at the end of a line. Floating content is positioned by the containing block layout instead.

C#
public override bool HasWidthAtTheEndOfLine { get; }

Overrides: AnnotationMarkerLayoutBox.HasWidthAtTheEndOfLine

Gets whether the floating-block anchor is read-only as inline text.

C#
public override bool IsReadonly { get; }

Overrides: AnnotationMarkerLayoutBox.IsReadonly

Gets whether the floating-block anchor can be split into line fragments; floating blocks are indivisible anchors.

C#
public override bool IsSplittable { get; }

Overrides: AnnotationMarkerLayoutBox.IsSplittable

Gets the single document position occupied by the floating-block anchor.

C#
public override int PositionsCountInBox { get; }

Overrides: AnnotationMarkerLayoutBox.PositionsCountInBox

Methods

Arranges the floating block's content at the origin of the assigned box.

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

The size assigned to the floating block.

Returns:

SizeF

The result returned by the base annotation-box arrangement.

Overrides: LayoutElement.ArrangeOverride(SizeF)

A floating-block box cannot be duplicated as a layout element.

C#
public override LayoutElement CreateLayoutElement()
Returns:

LayoutElement

This method does not return.

Exceptions: NotSupportedException

A layout element is requested from a floating-block box.

Overrides: AnnotationMarkerLayoutBox.CreateLayoutElement()

A floating block is positioned by its container and cannot be split into an inline fragment.

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

The width available for the attempted fragment.

isFirstBoxInLinebool

true when this anchor is first in its line.

Returns:

LayoutBox

This method does not return.

Exceptions: InvalidOperationException

A floating block cannot be split.

Overrides: InlineLayoutBox.CreateNewFragment(float, bool)

Measures the floating block's content and sets the anchor baseline to the measured content height. If the floating block has no content box, returns an empty size.

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

The size available to the floating block's content.

Returns:

SizeF

The measured size of the content box, or an empty size when no content box exists.

Overrides: AnnotationMarkerLayoutBox.MeasureOverride(SizeF)

Invalidates the containing layout's measurement when the floating block's document structure is about to change.

C#
protected override void OnElementStructureChanging()

Overrides: LayoutBox.OnElementStructureChanging()

Reparents the model's content layout box when this floating box changes parent, except for cloned boxes.

C#
protected override void OnParentChanged()

Overrides: LayoutElement.OnParentChanged()

Returns the associated floating block's string representation in quotation marks for diagnostics.

C#
public override string ToString()
Returns:

string

Overrides: LayoutBox.ToString()