InlineLayout Class
Represents an in-line Layout which is used to embed document element in the current line of the main content flow.
public sealed class InlineLayout : Layout
Public NotInheritable Class InlineLayout
Inherits Layout
- Inheritance:
- InlineLayout
Remarks
DrawingElement (Picture, TextBox or Shape) can be embedded / positioned (by using 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. DrawingElement's position and size are contained in 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 Inline(Double, Double, LengthUnit) or Floating(HorizontalPosition, VerticalPosition, Size).
For more information, see
Constructors
InlineLayout(Size)
Initializes a new instance of the InlineLayout class with the specified size.
Parameters
size
- Size
The size of the in-line embedded element.
Properties
IsFloating
Always gets a false value because member's type is InlineLayout, not FloatingLayout.
public override bool IsFloating { get; }
Public Overrides ReadOnly Property IsFloating As Boolean
Property Value
false value because member's type is InlineLayout, not FloatingLayout.
Overrides
Remarks
DrawingElement (Picture, TextBox or Shape) can be embedded / positioned (by using 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. DrawingElement's position and size are contained in 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 Inline(Double, Double, LengthUnit) or Floating(HorizontalPosition, VerticalPosition, Size).
For more information, see