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

Defines a block which can be positioned on its own line and wrapped up by the surrounding elements.

Definition

Namespace:Telerik.Windows.Documents.Model

Assembly:Telerik.Windows.Controls.RichTextBox.dll

Syntax:

C#
public abstract class FloatingBlock : AnnotationMarkerBase

Inheritance: objectDocumentElementInlineAnnotationMarkerBaseFloatingBlock

Derived Classes: DrawingFloatingBlockFloatingUIContainer

Inherited Members AnnotationMarkerBase.AnnotationIDAnnotationMarkerBase.SkipPositionAfterAnnotationMarkerBase.IsWordSeparatorAnnotationMarkerBase.IsCopyableInline.CopyFromPositionToEndOfInline(DocumentPosition, DocumentPosition)Inline.CopyFromStartOfInlineToEndPosition(DocumentPosition)Inline.CopyContentFrom(DocumentElement)Inline.FieldStartDocumentElement.CreateNewElementInstance()DocumentElement.GetStyleProperty(IStylePropertyDefinition)DocumentElement.GetStyleProperty(string)DocumentElement.EnumerateChildrenOfType<T>()DocumentElement.GetParentOfType<T>()DocumentElement.CreateLayoutBox()DocumentElement.CopyPropertiesFrom(DocumentElement)DocumentElement.CopyPropertiesFromStyle(StyleDefinition)DocumentElement.ExtractStyleFromProperties()DocumentElement.ExtractStyleFromLocalProperties()DocumentElement.InvalidateAssociatedBoxesArrange()DocumentElement.InvalidateAssociatedBoxesMeasure()DocumentElement.InvalidateAssociatedBoxesLayout()DocumentElement.GetAssociatedLayoutBoxes()DocumentElement.GetRootDocument()DocumentElement.CreateDeepCopy()DocumentElement.CreateShallowCopy()DocumentElement.GetPropertyValueSource(IStylePropertyDefinition)DocumentElement.ClearValue(IStylePropertyDefinition)DocumentElement.OnRemoved()DocumentElement.OnStyleChanging()DocumentElement.OnStyleChanged()DocumentElement.OnStylePropertyChanged(StylePropertyChangeEventArgs)DocumentElement.OnParentChanging()DocumentElement.OnParentChanged()DocumentElement.ChildIndexDocumentElement.HasStyleDocumentElement.StyleDocumentElement.StyleNameDocumentElement.TagDocumentElement.FirstLayoutBoxDocumentElement.IsFirstLayoutBoxInitializedDocumentElement.DocumentElementsDocumentElement.ParentDocumentElement.ChildrenDocumentElement.PreviousSiblingDocumentElement.NextSiblingDocumentElement.CursorDocumentElement.StyleChangingDocumentElement.StyleChangedDocumentElement.StylePropertyChangedDocumentElement.ParentChangingDocumentElement.ParentChangedDocumentElement.PropertyValueChanged...

Constructors

Initializes a new instance of the FloatingBlock class.

C#
public FloatingBlock()

Properties

Gets a value indicating whether the block affects the layout of the document.

C#
public bool AffectsLayout { get; }
Property Value:

true if the WrappingStyle is Square or TopAndBottom; false if the WrappingStyle is BehindText or InFrontOfText.

Gets or sets a value indicating whether the block can overlap with other blocks.

C#
[XamlSerializable]
public bool AllowOverlap { get; set; }
Property Value:

true if the block can overlap with other blocks; otherwise, false.

Defines the behavior when the users press the Backspace key to delete the element.

C#
public override AnnotationMarkerDeleteBehavior BackspaceBehavior { get; }
Property Value:

The behavior.

Overrides: AnnotationMarkerBase.BackspaceBehavior

Defines the behavior when the users try to delete the element using the Delete key.

C#
public override AnnotationMarkerDeleteBehavior DeleteBehavior { get; }
Property Value:

The behavior.

Overrides: AnnotationMarkerBase.DeleteBehavior

Defines the behavior when the users try to delete the element while the latter is selected.

C#
public override AnnotationMarkerDeleteBehavior DeleteSelectedBehavior { get; }
Property Value:

The delete selected behavior.

Overrides: AnnotationMarkerBase.DeleteSelectedBehavior

Gets or sets the horizontal position.

C#
[XamlCompositePropertySerializable]
public FloatingBlockHorizontalPosition HorizontalPosition { get; set; }
Property Value:

The horizontal position.

Exceptions:

ArgumentNullException

Value cannot be null.

Margin

Thickness

Gets or sets the margin.

C#
[XamlSerializable]
public Thickness Margin { get; set; }
Property Value:

The margin.

Exceptions:

ArgumentNullException

Value cannot be null.

Gets or sets the position that should be skipped before the floating block.

C#
public override bool SkipPositionBefore { get; }

Overrides: AnnotationMarkerBase.SkipPositionBefore

Gets or sets the text wrap determining how the text should be positioned around the floating block.

C#
[XamlSerializable]
public TextWrap TextWrap { get; set; }
Property Value:

The text wrap.

Gets or sets the vertical position.

C#
[XamlCompositePropertySerializable]
public FloatingBlockVerticalPosition VerticalPosition { get; set; }
Property Value:

The vertical position.

Exceptions:

ArgumentNullException

Value cannot be null.

Gets or sets a value defining how the other elements can be wrapped around the floating block.

C#
[XamlSerializable]
public WrappingStyle WrappingStyle { get; set; }
Property Value:

The wrapping style.

Methods

Copies the content of an element into the current instance.

C#
protected override void CopyContentFromOverride(DocumentElement fromElement)
Parameters:fromElementDocumentElement

From element.

Overrides: Inline.CopyContentFromOverride(DocumentElement)

Copies the properties from another element into the current instance.

C#
protected override void CopyPropertiesFromOverride(DocumentElement fromElement)
Parameters:fromElementDocumentElement

From element.

Overrides: AnnotationMarkerBase.CopyPropertiesFromOverride(DocumentElement)

Creates a layout box for the element.

C#
public override LayoutBox CreateLayoutBox(DocumentStructureCollection documentCollection)
Parameters:documentCollectionDocumentStructureCollection

The document collection.

Returns:

LayoutBox

Overrides: AnnotationMarkerBase.CreateLayoutBox(DocumentStructureCollection)