public final class HtmlFragment extends FormattedFragment
Represents html fragment.
Constructor and Description |
---|
HtmlFragment(String text)
Initializes a new instance of the HtmlFragment class.
|
Modifier and Type | Method and Description |
---|---|
Object |
deepClone()
Clones html fragment.
|
HtmlLoadOptions |
getHtmlLoadOptions()
Gets HtmlLoadOptions that will be used for loading (and rendering) of HTML into this instance
of class.
|
Rectangle2D.Float |
getRectangle()
Gets rectangle of the HtmlFragment
|
TextState |
getTextState()
Gets or sets font
|
boolean |
isBreakWords()
Gets or sets words break
|
boolean |
isParagraphHasMargin()
Gets or sets is paragraph has default margin otherwise margin is 0
|
void |
setBreakWords(boolean value)
Gets or sets words break
|
void |
setHtmlLoadOptions(HtmlLoadOptions value)
Sets HtmlLoadOptions that will be used for loading (and rendering) of HTML into this instance
of class.
|
void |
setParagraphHasMargin(boolean value)
Gets or sets is paragraph has default margin otherwise margin is 0
|
void |
setTextState(TextState value)
Gets or sets font
|
getHorizontalAlignment, getHyperlink, getMargin, getVerticalAlignment, getZIndex, isFirstParagraphInColumn, isInLineParagraph, isInNewPage, isKeptWithNext, setFirstParagraphInColumn, setHorizontalAlignment, setHyperlink, setInLineParagraph, setInNewPage, setKeptWithNext, setMargin, setVerticalAlignment, setZIndex
public HtmlFragment(String text)
Initializes a new instance of the HtmlFragment class.
text
- The fragment textpublic final Rectangle2D.Float getRectangle()
Gets rectangle of the HtmlFragment
public final boolean isParagraphHasMargin()
Gets or sets is paragraph has default margin otherwise margin is 0
public final void setParagraphHasMargin(boolean value)
Gets or sets is paragraph has default margin otherwise margin is 0
value
- boolean valuepublic final boolean isBreakWords()
Gets or sets words break
public final void setBreakWords(boolean value)
Gets or sets words break
value
- boolean valuepublic TextState getTextState()
Gets or sets font
public void setTextState(TextState value)
Gets or sets font
value
- TextState objectpublic HtmlLoadOptions getHtmlLoadOptions()
Gets HtmlLoadOptions that will be used for loading (and rendering) of HTML into this instance of class. Please use it when it's necessary use specific setting for import of HTML for this or that instance (f.e when this or that instance should use specific BasePath for imported HTML or should use specific loader of external resources) If parameter is default (null), then standard HTML loading options will be used.
public void setHtmlLoadOptions(HtmlLoadOptions value)
Sets HtmlLoadOptions that will be used for loading (and rendering) of HTML into this instance of class. Please use it when it's necessary use specific setting for import of HTML for this or that instance (f.e when this or that instance should use specific BasePath for imported HTML or should use specific loader of external resources) If parameter is default (null), then standard HTML loading options will be used.
value
- HtmlLoadOptions valuepublic Object deepClone()
deepClone
in interface com.aspose.ms.System.ICloneable
deepClone
in class BaseParagraph