MultiPageLayout.Grid
MultiPageLayout Grid method. Creates a layout in which pages are rendered lefttoright toptobottom in a grid with the specified number of columns.
MultiPageLayout.Grid method
Creates a layout in which pages are rendered left-to-right, top-to-bottom, in a grid with the specified number of columns.
public static MultiPageLayout Grid(int columns, float horizontalGap, float verticalGap)
Parameter | Type | Description |
---|---|---|
columns | Int32 | The number of columns in the layout. Must be greater than zero. |
horizontalGap | Single | The horizontal gap between columns in points. |
verticalGap | Single | The vertical gap between rows in points. |
Exceptions
exception | condition |
---|---|
ArgumentOutOfRangeException | Thrown if columns is less than or equal to zero. |
Examples
Shows how to merge several documents using fluent API and save the result as a single image.
ImageSaveOptions imageSaveOptions = new ImageSaveOptions(SaveFormat.Png);
imageSaveOptions.PageLayout = MultiPageLayout.Grid(2, 10, 10);
imageSaveOptions.PaperColor = Color.White;
imageSaveOptions.PageLayout.BackColor = Color.Gray;
imageSaveOptions.PageLayout.BorderColor = Color.Black;
imageSaveOptions.PageLayout.BorderWidth = 2;
Merger.Create()
.From(MyDir + "Merger.docx")
.From(MyDir + "Merger.doc")
.From(MyDir + "Merger.rtf")
.To(ArtifactsDir + "Merger.Grid.png", imageSaveOptions)
.Execute();
See Also
- class MultiPageLayout
- namespace Wordize.Saving
- assembly Wordize