FloatingBlock
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:
public abstract class FloatingBlock : AnnotationMarkerBase
Inheritance: objectDocumentElementInlineAnnotationMarkerBaseFloatingBlock
Derived Classes:
Inherited Members
Constructors
Initializes a new instance of the FloatingBlock class.
public FloatingBlock()
Properties
Gets a value indicating whether the block affects the layout of the document.
public bool AffectsLayout { get; }
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.
[XamlSerializable]
public bool AllowOverlap { get; set; }
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.
public override AnnotationMarkerDeleteBehavior BackspaceBehavior { get; }
The behavior.
Overrides:
Defines the behavior when the users try to delete the element using the Delete key.
public override AnnotationMarkerDeleteBehavior DeleteBehavior { get; }
The behavior.
Overrides:
Defines the behavior when the users try to delete the element while the latter is selected.
public override AnnotationMarkerDeleteBehavior DeleteSelectedBehavior { get; }
The delete selected behavior.
Overrides:
Gets or sets the horizontal position.
[XamlCompositePropertySerializable]
public FloatingBlockHorizontalPosition HorizontalPosition { get; set; }
The horizontal position.
Exceptions:Value cannot be null.
Margin
Thickness
Gets or sets the margin.
[XamlSerializable]
public Thickness Margin { get; set; }
The margin.
Exceptions:Value cannot be null.
Gets or sets the position that should be skipped before the floating block.
public override bool SkipPositionBefore { get; }
Overrides:
Gets or sets the text wrap determining how the text should be positioned around the floating block.
[XamlSerializable]
public TextWrap TextWrap { get; set; }
The text wrap.
Gets or sets the vertical position.
[XamlCompositePropertySerializable]
public FloatingBlockVerticalPosition VerticalPosition { get; set; }
The vertical position.
Exceptions:Value cannot be null.
Gets or sets a value defining how the other elements can be wrapped around the floating block.
[XamlSerializable]
public WrappingStyle WrappingStyle { get; set; }
The wrapping style.
Methods
Copies the content of an element into the current instance.
protected override void CopyContentFromOverride(DocumentElement fromElement)
From element.
Overrides:
Copies the properties from another element into the current instance.
protected override void CopyPropertiesFromOverride(DocumentElement fromElement)
From element.
Overrides:
Creates a layout box for the element.
public override LayoutBox CreateLayoutBox(DocumentStructureCollection documentCollection)
The document collection.
Returns:Overrides: