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, styles
properties
Constructor and Description |
---|
Div() |
Modifier and Type | Method and Description |
---|---|
|
add(BlockElement
Adds any block element to the div's contents.
|
Div |
add(Image element)
Adds an image to the div's contents.
|
AccessibilityProperties |
getAccessibilityProperties()
Gets the accessibility properties .
|
PdfName |
getRole()
Gets the element's role.
|
protected IRenderer |
makeNewRenderer() |
void |
setRole(PdfName role)
Sets the element's role.
|
getMarginBottom, getMarginLeft, getMarginRight, getMarginTop, getPaddingBottom, getPaddingLeft, getPaddingRight, getPaddingTop, isKeepTogether, isKeepWithNext, setKeepTogether, setKeepWithNext, setMargin, setMarginBottom, setMarginLeft, setMarginRight, setMargins, setMarginTop, setPadding, setPaddingBottom, setPaddingLeft, setPaddingRight, setPaddings, setPaddingTop, setRotationAngle, setRotationAngle, setSpacingRatio, setVerticalAlignment
addStyle, createRendererSubTree, getProperty, getRenderer, hasProperty, isEmpty, propagateArtifactRoleToChildElements, setAction, setNextRenderer, setPageNumber
deleteOwnProperty, getDefaultProperty, getHeight, getOwnProperty, getSplitCharacters, getStrokeColor, getStrokeWidth, getTextRenderingMode, getWidth, hasOwnProperty, setBackgroundColor, setBackgroundColor, setBaseDirection, setBold, setBorder, setBorderBottom, setBorderLeft, setBorderRight, setBorderTop, setCharacterSpacing, setDestination, setFixedPosition, setFixedPosition, setFixedPosition, setFixedPosition, setFont, setFontColor, setFontKerning, setFontScript, setFontSize, setHeight, setHorizontalAlignment, setHyphenation, setItalic, setLineThrough, setProperty, setRelativePosition, setSplitCharacters, setStrokeColor, setStrokeWidth, setTextAlignment, setTextRenderingMode, setUnderline, setUnderline, setUnderline, setWidth, setWidth, setWidthPercent, setWordSpacing
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
deleteOwnProperty, getDefaultProperty, getOwnProperty, hasOwnProperty, setProperty
protected PdfName role
protected AccessibilityProperties tagProperties
publicIElement> Div add(BlockElement element)
element
- a BlockElement
public Div add(Image element)
element
- an Image
public PdfName getRole()
IAccessibleElement
PdfName
containing the name of the role
public void setRole(PdfName role)
IAccessibleElement
role
- the new role which the IAccessibleElement
should take
public AccessibilityProperties getAccessibilityProperties()
IAccessibleElement
accessibility properties
.
protected IRenderer makeNewRenderer()
makeNewRenderer
in class AbstractElement<Div>
Copyright © 1998–2016 iText Group NV. All rights reserved.