GetContent
Contents
[
Hide
]
GetContent<TStream>(TStream, Encoding)
Returns overall content of the HTML document as a byte stream by writing this content into specified stream with specified text encoding
public TStream GetContent<TStream>(TStream storage, Encoding encoding)
where TStream : Stream
Parameter | Description |
---|---|
TStream | Any implementation of the Stream |
storage | Non-null byte stream, which supports writing |
encoding | Non-null text encoding, which should be apllied while writing text content into specified storage |
Return Value
Instance of specified storage
Exceptions
exception | condition |
---|---|
ArgumentNullException | Any of input arguments are null |
ArgumentException | Specified stream is not writable |
See Also
- class EditableDocument
- namespace GroupDocs.Editor
- assembly GroupDocs.Editor
GetContent()
Returns overall content of the HTML document as a string.
public string GetContent()
Return Value
String, which contains the content of the HTML document
See Also
- class EditableDocument
- namespace GroupDocs.Editor
- assembly GroupDocs.Editor
GetContent(string, string)
Returns overall content of the HTML document as a string, where links to the external resources contain specified template with placeholders.
public string GetContent(string externalImagesTemplate, string externalCssTemplate)
Parameter | Type | Description |
---|---|---|
externalImagesTemplate | String | Through this parameter used can specify a string template with one placeholder, which will be applied to the links to all external images in IMG elements, which will be present in the resultant HTML string. If NULL or empty, template will not be added, and pure filenames will be present in the resultant HTML markup. Is template is invalid, it will be treated as a prefix, so filenames will be concatenated to the its end. |
externalCssTemplate | String | Through this parameter used can specify a string template with one placeholder, which will be added to the links to all external stylesheets in LINK elements, which will be present in the resultant HTML string. If NULL or empty, template will not be added, and pure filenames will be present in the resultant HTML markup. Is template is invalid, it will be treated as a prefix, so filenames will be concatenated to the its end. |
Return Value
String, which contains the content of the HTML document with links, adjusted to the external resources
See Also
- class EditableDocument
- namespace GroupDocs.Editor
- assembly GroupDocs.Editor