FloatingBlock
Defines a block which can be positioned on its own line and wrapped up by the surrounding elements.
Definition
Namespace:Telerik.WinForms.Documents.Model
Assembly:Telerik.WinControls.RichTextEditor.dll
Syntax:
public abstract class FloatingBlock : AnnotationMarkerBase, IDisposable, INotifyPropertyChanged, ICustomTypeDescriptor
Inheritance: objectDisposableObjectRadObjectDocumentElementInlineAnnotationMarkerBaseFloatingBlock...
Derived Classes:
Implements:
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.
Gets or sets the margin.
[XamlSerializable]
public Thickness Margin { get; set; }
The margin.
Exceptions:Value cannot be null.
Determines if the CaretPosition will be put before or after the annotation marker.
If the value of this property is true for an AnnotationRangeStart, then if you move the caret to the annotation start and start typing,
the newly inserted text will be considered as part of the annotation. Vice versa, if it is set to false, the typed text will be inserted before the annotation.
The behavior of AnnotationRangeEnd is also controlled in the same manner.
public override bool SkipPositionBefore { get; }
true if the position before the marker will be skipped; otherwise, false.
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: