Class LayoutContainer
- Namespace
- BitMiracle.Docotic.Pdf.Layout
- Assembly
- BitMiracle.Docotic.Pdf.Layout.dll
Class for a layout container.
public class LayoutContainer
- Inheritance
-
LayoutContainer
- Inherited Members
Remarks
Containers are the most basic layout elements. Containers are used to contain, pad, and center the content within them. Containers can be nested.
Containers may render the content on multiple pages.
These articles provide detailed information on containers:
- Containers and their content
- Size, position, and rendering of containers
- Compound containers
- Table container
The Getting Started with Layout API article provides essential information on how to generate PDFs with the API.
Check out the other articles and code samples on the C# PDF generation library page.
Methods
- AlignBottom()
Vertically aligns the content to the bottom.
- AlignCenter()
Horizontally aligns the content to the center.
- AlignLeft()
Horizontally aligns the content to the left.
- AlignMiddle()
Vertically aligns the content to the center.
- AlignRight()
Horizontally aligns the content to the right.
- AlignTop()
Vertically aligns the content to the top.
- AspectRatio(double, AspectRatioMode)
Applies aspect ratio restrictions to the content.
- Background(PdfColor, int)
Sets the background color and opacity for the content.
- Border(Action<Border>)
Sets border.
- Column(Action<Column>)
Adds vertical column.
- Component(ILayoutComponent)
Adds custom component.
- Component(Action<LayoutContainer>)
Adds custom content.
- Container(Func<LayoutContainer, LayoutContainer>)
Adds nested container.
- ContentFromLeftToRight()
Sets the direction of the content from left to right.
- ContentFromRightToLeft()
Sets the direction of the content from right to left.
- Element(LayoutElement)
Adds the layout element.
- EnsureSpace(double)
Marks the container to show the content if there is enough vertical space on the page.
- Extend()
Extends the content to take all available space.
- ExtendHorizontal()
Extends the content to take all available horizontal space.
- ExtendVertical()
Extends the content to take all available vertical space.
- Height(double)
Sets the height of the content.
- Hyperlink(Uri)
Adds the hyperlink.
- Image(Image, ImageContentMode)
Adds the image.
- Inlined(Action<InlineContainer>)
Adds inline elements.
- Layers(Action<LayerContainer>)
Adds the layered content.
- LineHorizontal(double)
Adds the horizontal line.
- LineVertical(double)
Adds the vertical line.
- MaxHeight(double)
Sets the maximum height of the content.
- MaxWidth(double)
Sets the maximum width of the content.
- MinHeight(double)
Sets the minimum height of the content.
- MinWidth(double)
Sets the minimum width of the content.
- MinimalBox()
Marks the container to use only minimal necessary space for the content.
- Padding(double)
Adds indents around the content.
- PaddingBottom(double)
Adds vertical indent below the content.
- PaddingHorizontal(double)
Adds horizontal indents around the content.
- PaddingLeft(double)
Adds horizontal indent before the content.
- PaddingRight(double)
Adds horizontal indent after the content.
- PaddingTop(double)
Adds vertical indent above the content.
- PaddingVertical(double)
Adds vertical indents around the content.
- PageBreak()
Marks the container to render the content starting from the next page.
- Rotate(double)
Rotates the content by the given angle.
- RotateLeft()
Rotates the content by 90 degrees counterclockwise.
- RotateRight()
Rotates the content by 90 degrees clockwise.
- Row(Action<Row>)
Adds horizontal row.
- Scale(double)
Scales the content horizontally and vertically.
- ScaleHorizontal(double)
Scales the content horizontally.
- ScaleToFit()
Scales down the content to fit into the available space.
- ScaleVertical(double)
Scales the content vertically.
- Section(string)
Adds the start of the section.
- SectionLink(string)
Adds the link to the section.
- ShowEntire()
Marks the container to show the content on a single page without wrapping.
- ShowIf(bool)
Marks the container to show or hide the content depending on a condition.
- ShowOnce()
Marks the container to show the content on the current page and skip on the next pages.
- SkipOnce()
Marks the container to show the content starting from the next page.
- StopPaging()
Marks the container to show the content on a single page with truncating if necessary.
- Table(Action<Table>)
Adds the table.
- Text(Action<TextContainer>)
Adds text.
- Text(string)
Adds text.
- TextStyle(TextStyle)
Applies the text style.
- TextStyle(Func<Typography, TextStyle>)
Applies the text style.
- Translate(double, double)
Shifts the content horizontally and vertically.
- TranslateX(double)
Shifts the content horizontally.
- TranslateY(double)
Shifts the content vertically.
- Unconstrained()
Marks the container to ignore any size constraints.
- Width(double)
Sets the width of the content.