Show / Hide Table of Contents

# Class FlowDocument

##### Inheritance

object
FlowDocument

##### Implements

IDisposable

##### Inherited Members

object.Equals(object)
object.Equals(object, object)
object.GetHashCode()
object.GetType()
object.MemberwiseClone()
object.ReferenceEquals(object, object)
object.ToString()

###### Namespace: pdftron.Layout

###### Assembly: PDFTronDotNet.dll

##### Syntax

    public class FlowDocument : IDisposable

### Constructors

#### FlowDocument()

##### Declaration

    public FlowDocument()

### Methods

#### AddList()

##### Declaration

    public List AddList()

##### Returns

Type | Description
--- | ---
List |

#### AddParagraph()

##### Declaration

    public Paragraph AddParagraph()

##### Returns

Type | Description
--- | ---
Paragraph |

#### AddParagraph(string)

##### Declaration

    public Paragraph AddParagraph(string text)

##### Parameters

Type | Name | Description
--- | --- | ---
string | text |

##### Returns

Type | Description
--- | ---
Paragraph |

#### AddTable()

##### Declaration

    public Table AddTable()

##### Returns

Type | Description
--- | ---
Table |

#### Destroy()

##### Declaration

    public void Destroy()

#### Dispose()

Performs application-defined tasks associated with freeing, releasing, or resetting unmanaged resources.

##### Declaration

    public void Dispose()

#### Dispose(bool)

##### Declaration

    protected virtual void Dispose(bool disposing)

##### Parameters

Type | Name | Description
--- | --- | ---
bool | disposing |

#### GetBody()

##### Declaration

    public ContentNode GetBody()

##### Returns

Type | Description
--- | ---
ContentNode |

#### PaginateToPDF()

##### Declaration

    public PDFDoc PaginateToPDF()

##### Returns

Type | Description
--- | ---
PDFDoc |

#### SetDefaultMargins(double, double, double, double)

##### Declaration

    public void SetDefaultMargins(double left_points, double top_points, double right_points, double bottom_points)

##### Parameters

Type | Name | Description
--- | --- | ---
double | left_points |
double | top_points |
double | right_points |
double | bottom_points |

#### SetDefaultPageSize(double, double)

##### Declaration

    public void SetDefaultPageSize(double width_points, double height_points)

##### Parameters

Type | Name | Description
--- | --- | ---
double | width_points |
double | height_points |

### Implements

IDisposable