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:
- System.ObjectInlineLayout
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
- System.Boolean
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
Inherited Properties
EffectPadding | Gets or sets the additional padding added to each edge of the element (top, bottom, left, right) in order to compensate for any drawing effects applied to the element. (Inherited from Layout) |
LockAspectRatio | Gets or sets the value indicating whether the aspect ratio is locked. (Inherited from Layout) |
Size | Gets or sets the size. (Inherited from Layout) |
Transform | Gets or sets the transformation. (Inherited from Layout) |
Inherited Methods
Floating(HorizontalPosition, VerticalPosition, Size) | Creates a layout used when element should be floating in a document page and rest of the page content should wrap around it. (Inherited from Layout) |
Inline(System.Double, System.Double, LengthUnit) | Creates a layout used when element should be embedded in-line with the rest of the content. (Inherited from Layout) |
Inline(Size) | Creates a layout used when element should be embedded in-line with the rest of the content. (Inherited from Layout) |