FloatingBox

Overview

FloatingBox is a class in Aspose.PDF FOSS for .NET. Inherits from: BaseParagraph.

Represents a floating box that can be positioned absolutely or flowed on a page.

This class provides 5 methods for working with FloatingBox objects in .NET programs. Available methods include: Build, Clone, FloatingBox. All public members are accessible to any .NET application after installing the Aspose.PDF FOSS for .NET package. Properties: BackgroundColor, BackgroundImage, Border, ColumnInfo, Height, HorizontalAlignment, and 16 more.

Properties

NameTypeAccessDescription
WidthdoubleRead/WriteWidth of the box in points.
HeightdoubleRead/WriteHeight of the box in points.
LeftdoubleRead/WriteLeft position in points (absolute).
TopdoubleRead/WriteTop position in points (absolute, measured from top of page).
BorderBorderInfo?Read/WriteBorder around the box.
BackgroundColorColor?Read/WriteBackground fill color.
IsNeedRepeatingboolRead/WriteWhether the box should repeat on every page.
PaddingMarginInfo?Read/WriteInner padding of the box.
MarginMarginInfoRead/WriteOuter margin of the box.
VerticalAlignmentVerticalAlignmentRead/WriteVertical alignment of content inside the box.
HorizontalAlignmentHorizontalAlignmentRead/WriteHorizontal alignment of the box within its parent.
ZIndexintRead/WriteZ-index for layering; higher draws on top.
ColumnInfoColumnInfoRead/WriteGets or sets the column info.
ParagraphsParagraphsRead/WriteContent paragraphs (TextFragment, Table, or other content objects).
BackgroundImageImage?Read/WriteOptional background image rendered behind the box content.
PositioningModeParagraphPositioningModeRead/WriteHow Left / Top are interpreted — Default participates in document flow, Absolute pins to page coordinates.
IsFirstParagraphInColumnboolRead/WriteForce the paragraph to start a new column.
IsKeptWithNextboolRead/WriteKeep this paragraph on the same page as the next one.
IsInNewPageboolRead/WriteForce the paragraph to start on a new page.
IsInLineParagraphboolRead/WriteInline paragraph flag (does not start a new line).
HyperlinkTextstring?Read/WriteLegacy string-typed hyperlink target.
HyperlinkHyperlink?Read/WriteTyped hyperlink decoration applied to the paragraph.

Methods

SignatureDescription
FloatingBox()Create a floating box with default (zero) dimensions.
FloatingBox(width: double, height: double)Create a floating box with specified dimensions.
FloatingBox(width: float, height: float)Create a floating box with Single-typed dimensions.
Clone()Calls Clone on this FloatingBox instance.
Build(page: Page)Build the content stream bytes for this floating box on the given page.

See Also