skip navigation
  • Product Bundles

    DevCraft

    All Telerik .NET tools and Kendo UI JavaScript components in one package. Now enhanced with:

    • NEW: Design Kits for Figma
    • Online Training
    • Document Processing Library
    • Embedded Reporting for web and desktop

    Web

    Kendo UI UI for jQuery UI for Angular UI for React UI for Vue UI for Blazor UI for ASP.NET Core UI for ASP.NET MVC UI for ASP.NET AJAX

    Mobile

    UI for .NET MAUI UI for Xamarin

    Document Management

    Telerik Document Processing

    Desktop

    UI for .NET MAUI UI for WinUI UI for WinForms UI for WPF

    Reporting

    Telerik Reporting Telerik Report Server

    Testing & Mocking

    Test Studio Test Studio Dev Edition Telerik JustMock

    CMS

    Sitefinity

    UI/UX Tools

    ThemeBuilder Design System Kit Templates and Building Blocks

    Debugging

    Fiddler Fiddler Everywhere Fiddler Classic Fiddler Everywhere Reporter FiddlerCore

    Free Tools

    VB.NET to C# Converter Testing Framework
    View all products
  • Overview
  • Demos
    • What's New
    • Roadmap
    • Release History
  • Support and Learning

    • Support and Learning Hub
    • First Steps
    • Docs
    • Demos
    • Virtual Classroom
    • Forums
    • Videos
    • Blogs
    • Accessibility and Security
    • Submit a Ticket

    Productivity and Design Tools

    • Visual Studio Extensions
    • Visual Studio Templates
    • Embedded Reporting
  • Pricing
  • Shopping cart
    • Account Overview
    • Your Licenses
    • Downloads
    • Support Center
    • Forum Profile
    • Payment Methods
    • Edit Profile
    • Log out
  • Login
  • Contact Us
  • Try now

Class FloatingBlock

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

Inheritance
System.Object
DocumentElement
Inline
AnnotationMarkerBase
FloatingBlock
DrawingFloatingBlock
FloatingUIContainer
Inherited Members
AnnotationMarkerBase.AnnotationID
AnnotationMarkerBase.SkipPositionAfter
AnnotationMarkerBase.IsWordSeparator
AnnotationMarkerBase.IsCopyable
Inline.CopyFromPositionToEndOfInline(DocumentPosition, DocumentPosition)
Inline.CopyFromStartOfInlineToEndPosition(DocumentPosition)
Inline.CopyContentFrom(DocumentElement)
Inline.FieldStart
DocumentElement.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.add_StylePropertyChanged(StylePropertyChangeEventHandler)
DocumentElement.remove_StylePropertyChanged(StylePropertyChangeEventHandler)
DocumentElement.OnStylePropertyChanged(StylePropertyChangeEventArgs)
DocumentElement.OnParentChanging()
DocumentElement.OnParentChanged()
DocumentElement.add_PropertyValueChanged(StylePropertyChangeEventHandler)
DocumentElement.remove_PropertyValueChanged(StylePropertyChangeEventHandler)
DocumentElement.ChildIndex
DocumentElement.HasStyle
DocumentElement.Style
DocumentElement.StyleName
DocumentElement.Tag
DocumentElement.FirstLayoutBox
DocumentElement.LastLayoutBox
DocumentElement.IsFirstLayoutBoxInitialized
DocumentElement.DocumentElements
DocumentElement.Parent
DocumentElement.Children
DocumentElement.PreviousSibling
DocumentElement.NextSibling
DocumentElement.Cursor
DocumentElement.OriginalProperties
DocumentElement.RevisionInfo
DocumentElement.StyleChanging
DocumentElement.StyleChanged
DocumentElement.StylePropertyChanged
DocumentElement.ParentChanging
DocumentElement.ParentChanged
DocumentElement.PropertyValueChanged
Namespace: Telerik.Windows.Documents.Model
Assembly: Telerik.Windows.Controls.RichTextBox.dll

Syntax

public abstract class FloatingBlock : AnnotationMarkerBase

Constructors

FloatingBlock()

Initializes a new instance of the FloatingBlock class.

Declaration
public FloatingBlock()

Properties

AffectsLayout

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

Declaration
public bool AffectsLayout { get; }
Property Value
System.Boolean

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

AllowOverlap

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

Declaration
[XamlSerializable]
public bool AllowOverlap { get; set; }
Property Value
System.Boolean

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

BackspaceBehavior

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

Declaration
public override AnnotationMarkerDeleteBehavior BackspaceBehavior { get; }
Property Value
AnnotationMarkerDeleteBehavior

The behavior.

Overrides
AnnotationMarkerBase.BackspaceBehavior

DeleteBehavior

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

Declaration
public override AnnotationMarkerDeleteBehavior DeleteBehavior { get; }
Property Value
AnnotationMarkerDeleteBehavior

The behavior.

Overrides
AnnotationMarkerBase.DeleteBehavior

DeleteSelectedBehavior

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

Declaration
public override AnnotationMarkerDeleteBehavior DeleteSelectedBehavior { get; }
Property Value
AnnotationMarkerDeleteBehavior

The delete selected behavior.

Overrides
AnnotationMarkerBase.DeleteSelectedBehavior

HorizontalPosition

Gets or sets the horizontal position.

Declaration
[XamlCompositePropertySerializable]
public FloatingBlockHorizontalPosition HorizontalPosition { get; set; }
Property Value
FloatingBlockHorizontalPosition

The horizontal position.

Exceptions
System.ArgumentNullException

Value cannot be null.

Margin

Gets or sets the margin.

Declaration
[XamlSerializable]
public Thickness Margin { get; set; }
Property Value
System.Windows.Thickness

The margin.

Exceptions
System.ArgumentNullException

Value cannot be null.

SkipPositionBefore

Declaration
public override bool SkipPositionBefore { get; }
Property Value
System.Boolean

Overrides
AnnotationMarkerBase.SkipPositionBefore

TextWrap

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

Declaration
[XamlSerializable]
public TextWrap TextWrap { get; set; }
Property Value
TextWrap

The text wrap.

VerticalPosition

Gets or sets the vertical position.

Declaration
[XamlCompositePropertySerializable]
public FloatingBlockVerticalPosition VerticalPosition { get; set; }
Property Value
FloatingBlockVerticalPosition

The vertical position.

Exceptions
System.ArgumentNullException

Value cannot be null.

WrappingStyle

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

Declaration
[XamlSerializable]
public WrappingStyle WrappingStyle { get; set; }
Property Value
WrappingStyle

The wrapping style.

Methods

CopyContentFromOverride(DocumentElement)

Copies the content of an element into the current instance.

Declaration
protected override void CopyContentFromOverride(DocumentElement fromElement)
Parameters
DocumentElement fromElement

From element.

Overrides
Inline.CopyContentFromOverride(DocumentElement)

CopyPropertiesFromOverride(DocumentElement)

Copies the properties from another element into the current instance.

Declaration
protected override void CopyPropertiesFromOverride(DocumentElement fromElement)
Parameters
DocumentElement fromElement

From element.

Overrides
AnnotationMarkerBase.CopyPropertiesFromOverride(DocumentElement)

CreateLayoutBox(DocumentStructureCollection)

Creates a layout box for the element.

Declaration
public override LayoutBox CreateLayoutBox(DocumentStructureCollection documentCollection)
Parameters
DocumentStructureCollection documentCollection

The document collection.

Returns
LayoutBox

Overrides
AnnotationMarkerBase.CreateLayoutBox(DocumentStructureCollection)

Extension Methods

CollectionExtensions.ToEnumerable<T>(T)
EnumerableExtensions.ToEnumerable<T>(T)

See Also

AnnotationMarkerBase
Getting Started
  • Install Now
  • Demos
  • SDK Samples Browser
  • Sample Applications
Support Resources
  • Code Library
  • Knowledge Base
  • MVVM Support
  • Videos
  • GitHub SDK Repository
Community
  • Forums
  • Blogs
  • XAML Feedback Portal
  • Document Processing Feedback Portal

Copyright © 2018 Progress Software Corporation and/or its subsidiaries or affiliates.
All Rights Reserved.

Progress, Telerik, and certain product names used herein are trademarks or registered trademarks of Progress Software Corporation and/or one of its subsidiaries or affiliates in the U.S. and/or other countries. See Trademarks for appropriate markings.