HtmlFragment

Vue de l’ensemble

HtmlFragment est une classe dans Aspose.PDF FOSS pour .NET. Inhérité de: BaseParagraph.

Il représente un fragment de contenu HTML qui peut être ajouté à des pages PDF via HeaderFooter.Paragrafs ou Page.Papragraphs.

Cette classe fournit 2 méthodes pour travailler avec des objets HtmlFragment dans les programmes .NET. Les méthodologies disponibles comprennent: Clone, HtmLFrage. Tous les membres publics sont accessibles à n’importe quelle application .Net après l’installation de l’Aspose.PDF FOSS pour le package .net. Propriétés : OrizontalAlignment , HTMLContent ; Hyperlink; HyperlinkText et 10 autres.

Propriétés

NameTypeAccessDescription
IsBreakWordsboolRead/WriteWhether the HTML loader is allowed to break words at line ends.
IsParagraphHasMarginboolRead/WriteWhether the resulting paragraph carries the fragment’s own margin.
HtmlContentstring?Read/WriteThe raw HTML content.
HtmlLoadOptionsHtmlLoadOptions?Read/WriteOptions for HTML loading (font embedding, encoding, etc.).
MarginMarginInfoRead/WriteMargins for the fragment.
IsInNewPageboolRead/WriteWhether this fragment should start on a new page.
IsKeptWithNextboolRead/WriteKeep this fragment together with the next paragraph on the same page.
TextStateAspose.Pdf.Text.TextState?Read/WriteDefault text state applied to the converted HTML output.
RectangleSystem.Drawing.RectangleFReadBounding rectangle of the rendered fragment on the page.
HorizontalAlignmentHorizontalAlignmentRead/WriteHorizontal alignment applied to this paragraph.
VerticalAlignmentVerticalAlignmentRead/WriteVertical alignment applied to this paragraph.
IsFirstParagraphInColumnboolRead/WriteForce the paragraph to start a new column.
IsInLineParagraphboolRead/WriteInline paragraph flag (does not start a new line).
HyperlinkTextstring?Read/WriteLegacy string-typed hyperlink target.
HyperlinkHyperlink?Read/WriteTyped hyperlink decoration applied to the paragraph.
ZIndexintRead/WriteZ-order index used by the DOM renderer.

méthodes

SignatureDescription
HtmlFragment(text: string)Create an HtmlFragment from an HTML string.
Clone()Shallow clone — the HTML string and reference-typed properties are shared.

Voir aussi

  • Aspose.PDF pour .NET — API d’entreprise
 Français