public class Div extends BlockElement<Div>
Div is a container object that defines a section in a document,
which will have some shared layout properties. Like all BlockElement
types, it will try to take up as much horizontal space as possible.
The concept is very similar to that of the div tag in HTML.| Modifier and Type | Field and Description |
|---|---|
protected PdfName |
role |
protected AccessibilityProperties |
tagProperties |
childElements, nextRenderer, stylesproperties| Constructor and Description |
|---|
Div() |
| Modifier and Type | Method and Description |
|---|---|
Div |
add(AreaBreak areaBreak)
Adds an area break to the div's contents.
|
Div |
add(IBlockElement element)
Adds any block element to the div's contents.
|
Div |
add(Image element)
Adds an image to the div's contents.
|
AccessibilityProperties |
getAccessibilityProperties() |
PdfName |
getRole() |
protected IRenderer |
makeNewRenderer() |
Div |
setFillAvailableArea(boolean fillArea) |
Div |
setFillAvailableAreaOnSplit(boolean fillAreaOnSplit) |
void |
setRole(PdfName role) |
getDefaultProperty, getMarginBottom, getMarginLeft, getMarginRight, getMarginTop, getPaddingBottom, getPaddingLeft, getPaddingRight, getPaddingTop, isKeepTogether, isKeepWithNext, setHeight, setKeepTogether, setKeepWithNext, setMargin, setMarginBottom, setMarginLeft, setMarginRight, setMargins, setMarginTop, setMaxHeight, setMaxWidth, setMinHeight, setMinWidth, setPadding, setPaddingBottom, setPaddingLeft, setPaddingRight, setPaddings, setPaddingTop, setRotationAngle, setRotationAngle, setSpacingRatio, setVerticalAlignmentaddStyle, createRendererSubTree, getChildren, getProperty, getRenderer, hasProperty, isEmpty, propagateArtifactRoleToChildElements, setAction, setNextRenderer, setPageNumberdeleteOwnProperty, getHeight, getOwnProperty, getSplitCharacters, getStrokeColor, getStrokeWidth, getTextRenderingMode, getWidth, hasOwnProperty, setBackgroundColor, setBackgroundColor, setBackgroundColor, setBackgroundColor, setBaseDirection, setBold, setBorder, setBorderBottom, setBorderLeft, setBorderRight, setBorderTop, setCharacterSpacing, setDestination, setFixedPosition, setFixedPosition, setFixedPosition, setFixedPosition, setFont, setFont, setFontColor, setFontColor, setFontKerning, setFontScript, setFontSize, setHeight, setHeightPercent, setHorizontalAlignment, setHyphenation, setItalic, setLineThrough, setOpacity, setProperty, setRelativePosition, setSplitCharacters, setStrokeColor, setStrokeWidth, setTextAlignment, setTextRenderingMode, setUnderline, setUnderline, setUnderline, setUnderline, setWidth, setWidth, setWidthPercent, setWordSpacingclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitcreateRendererSubTree, getRenderer, setNextRendererdeleteOwnProperty, getOwnProperty, getProperty, hasOwnProperty, hasProperty, setPropertyprotected PdfName role
protected AccessibilityProperties tagProperties
public Div add(IBlockElement element)
element - a BlockElementpublic Div add(Image element)
element - an Imagepublic Div add(AreaBreak areaBreak)
areaBreak - an AreaBreakpublic PdfName getRole()
public void setRole(PdfName role)
public AccessibilityProperties getAccessibilityProperties()
public Div setFillAvailableArea(boolean fillArea)
public Div setFillAvailableAreaOnSplit(boolean fillAreaOnSplit)
protected IRenderer makeNewRenderer()
makeNewRenderer in class AbstractElement<Div>Copyright © 1998–2017 iText Group NV. All rights reserved.