Click or drag to resize
FloatingLayout Class
Represents a floating Layout which is used to embed document element in a page outside of the main content flow. Main content flow is usually wrapped around embedded element.
Inheritance Hierarchy

Namespace: GemBox.Document
Assembly: GemBox.Document (in GemBox.Document.dll) Version: 25.3.30.1231
Syntax
public sealed class FloatingLayout : Layout

The FloatingLayout type exposes the following members.

Constructors
  NameDescription
Public methodFloatingLayout
Initializes a new instance of the FloatingLayout class with the specified horizontal position, vertical position and size of a floating element.
Top
Properties
  NameDescription
Public propertyDistanceFromText
Gets or sets the distances between the edges of a floating element and any subsequent text within the document.
Public propertyHorizontalPosition
Gets or sets the horizontal position.
Public propertyIsFloating
Always gets a value because member's type is FloatingLayout.
(Overrides LayoutIsFloating.)
Public propertySize
Gets or sets the size.
(Inherited from Layout.)
Public propertyVerticalPosition
Gets or sets the vertical position.
Public propertyWrappingStyle
Gets or sets the setting for how text is wrapped around the floating element.
Public propertyWrapText
Gets or sets the setting for how text can wrap around the floating element's left and right sides.
Top
Remarks

Drawing elements (Picture, TextBox or Shape) can be embedded / positioned (by using DrawingElement.Layout property):

  • In line with the text (InlineLayout type) - affects the line height and layout of its line (like a character glyph of similar size).
  • Floating within the text relative to the page (FloatingLayout type) - affects the layout of its surrounding content which is either wrapped around or in-front / behind the floating element.

Besides position, embeddable element must also have size specified. Drawing element's position and size are contained in DrawingElement.Layout property.

Embedded element's layout can be specified by either instantiating appropriate Layout derived type, such as InlineLayout or FloatingLayout, or by using factory methods Layout.Inline() or Layout.Floating().

For more information, see Shapes and Layout article.

See Also