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 DefaultAccessibilityProperties |
tagProperties |
childElements, nextRenderer, styles
properties
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()
Gets the accessibility properties .
|
protected IRenderer |
makeNewRenderer() |
Div |
setFillAvailableArea(boolean fillArea) |
Div |
setFillAvailableAreaOnSplit(boolean fillAreaOnSplit) |
getDefaultProperty, getHeight, getMarginBottom, getMarginLeft, getMarginRight, getMarginTop, getPaddingBottom, getPaddingLeft, getPaddingRight, getPaddingTop, getWidth, isKeepTogether, isKeepWithNext, setHeight, setHeight, setKeepTogether, setKeepWithNext, setMargin, setMarginBottom, setMarginLeft, setMarginRight, setMargins, setMarginTop, setMaxHeight, setMaxHeight, setMaxWidth, setMaxWidth, setMinHeight, setMinHeight, setMinWidth, setMinWidth, setPadding, setPaddingBottom, setPaddingLeft, setPaddingRight, setPaddings, setPaddingTop, setRotationAngle, setRotationAngle, setSpacingRatio, setVerticalAlignment, setWidth, setWidth
addStyle, createRendererSubTree, getChildren, getProperty, getRenderer, hasProperty, isEmpty, setAction, setNextRenderer, setPageNumber
deleteOwnProperty, getOwnProperty, getSplitCharacters, getStrokeColor, getStrokeWidth, getTextRenderingMode, hasOwnProperty, setBackgroundColor, setBackgroundColor, setBackgroundColor, setBackgroundColor, setBaseDirection, setBold, setBorder, setBorderBottom, setBorderBottomLeftRadius, setBorderBottomRightRadius, setBorderLeft, setBorderRadius, setBorderRight, setBorderTop, setBorderTopLeftRadius, setBorderTopRightRadius, setCharacterSpacing, setDestination, setFixedPosition, setFixedPosition, setFixedPosition, setFixedPosition, setFont, setFont, setFontColor, setFontColor, setFontFamily, setFontFamily, setFontKerning, setFontScript, setFontSize, setHorizontalAlignment, setHyphenation, setItalic, setLineThrough, setOpacity, setProperty, setRelativePosition, setSplitCharacters, setStrokeColor, setStrokeWidth, setTextAlignment, setTextRenderingMode, setUnderline, setUnderline, setUnderline, setUnderline, setWordSpacing
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
createRendererSubTree, getRenderer, setNextRenderer
deleteOwnProperty, getOwnProperty, getProperty, hasOwnProperty, hasProperty, setProperty
protected DefaultAccessibilityProperties tagProperties
public Div add(IBlockElement element)
element
- a BlockElement
public Div add(Image element)
element
- an Image
public Div add(AreaBreak areaBreak)
areaBreak
- an AreaBreak
public AccessibilityProperties getAccessibilityProperties()
IAccessibleElement
accessibility properties
. See also IAccessibleElement
.
public Div setFillAvailableArea(boolean fillArea)
public Div setFillAvailableAreaOnSplit(boolean fillAreaOnSplit)
protected IRenderer makeNewRenderer()
makeNewRenderer
in class AbstractElement<Div>
Copyright © 1998–2020 iText Group NV. All rights reserved.