## Document class


Represents PUB document, holds all fields and relevant values.

```cpp
class Document : public Aspose::Pub::Licensing::IVentureLicenseTarget
```

## Methods

| Method | Description |
| --- | --- |
| [AddDefaultParagraphStyle](./adddefaultparagraphstyle/)(System::SharedPtr\<ParagraphStyle\>) | Adds default paragraph style. |
| [AddDefaultTextStyle](./adddefaulttextstyle/)(System::SharedPtr\<TextStyle\>) | Adds default text style. |
| [get_Colors](./get_colors/)() | Array of colors. |
| [get_DefaultParagraphStyles](./get_defaultparagraphstyles/)() | Array of default paragraph styles. |
| [get_DefaultTextStyles](./get_defaulttextstyles/)() | Array of default text styles. |
| [get_DocumentSummaryInfo](./get_documentsummaryinfo/)() const | [Document](./) Summary Info. |
| [get_FieldCount](./get_fieldcount/)() | Count of all fields. |
| [get_FontNames](./get_fontnames/)() | Array of font names. |
| [get_Height](./get_height/)() const | Height of document in PUB metrics(EMUs) |
| [get_SummaryInfo](./get_summaryinfo/)() const | Summary Info. |
| [get_Width](./get_width/)() const | Width of document in PUB metrics(EMUs) |
| [SetDocSummaryInfo](./setdocsummaryinfo/)(System::SharedPtr\<DocSummaryInfo\>) | Sets document summary info. |
| [SetSummaryInfo](./setsummaryinfo/)(System::SharedPtr\<Aspose::Pub::SummaryInfo\>) | Sets summary info. |
## See Also

* Class [IVentureLicenseTarget](../../aspose.pub.licensing/iventurelicensetarget/)
* Namespace [Aspose::Pub](../)
* Library [Aspose.PUB for C++](../../)
