Table of Contents

Class AbstractRenderer

Namespace
iText.Layout.Renderer
Assembly
itext.layout.dll

Defines the most common properties and behavior that are shared by most IRenderer implementations.

public abstract class AbstractRenderer : IRenderer, IPropertyContainer
Inheritance
AbstractRenderer
Implements
Derived
Inherited Members

Remarks

Defines the most common properties and behavior that are shared by most IRenderer implementations. All default Renderers are subclasses of this default implementation.

Constructors

AbstractRenderer()

Creates a renderer.

protected AbstractRenderer()

AbstractRenderer(IElement)

Creates a renderer for the specified layout element.

protected AbstractRenderer(IElement modelElement)

Parameters

modelElement IElement

the layout element that will be drawn by this renderer

AbstractRenderer(AbstractRenderer)

Creates a new renderer based on an instance of another renderer.

protected AbstractRenderer(AbstractRenderer other)

Parameters

other AbstractRenderer

renderer from which to copy essential properties

Fields

EPS

The maximum difference between Rectangle coordinates to consider rectangles equal

protected const float EPS = 0.0001

Field Value

float

INF

The infinity value which is used while layouting

protected const float INF = 1000000

Field Value

float

OVERLAP_EPSILON

public const float OVERLAP_EPSILON = 0.0001

Field Value

float

childRenderers

protected IList<IRenderer> childRenderers

Field Value

IList<IRenderer>

flushed

protected bool flushed

Field Value

bool

isLastRendererForModelElement

protected bool isLastRendererForModelElement

Field Value

bool

modelElement

protected IPropertyContainer modelElement

Field Value

IPropertyContainer

occupiedArea

protected LayoutArea occupiedArea

Field Value

LayoutArea

parent

protected IRenderer parent

Field Value

IRenderer

positionedRenderers

protected IList<IRenderer> positionedRenderers

Field Value

IList<IRenderer>

properties

protected IDictionary<int, object> properties

Field Value

IDictionary<int, object>

Methods

AddAllProperties(IDictionary<int, object>)

protected virtual void AddAllProperties(IDictionary<int, object> properties)

Parameters

properties IDictionary<int, object>

AddChild(IRenderer)

public virtual void AddChild(IRenderer renderer)

Parameters

renderer IRenderer

AlignChildHorizontally(IRenderer, Rectangle)

protected virtual void AlignChildHorizontally(IRenderer childRenderer, Rectangle currentArea)

Parameters

childRenderer IRenderer
currentArea Rectangle

AllowLastYLineRecursiveExtraction()

protected virtual bool AllowLastYLineRecursiveExtraction()

Returns

bool

ApplyAbsolutePosition(Rectangle)

protected virtual void ApplyAbsolutePosition(Rectangle parentRect)

Parameters

parentRect Rectangle

ApplyAction(PdfDocument)

protected virtual void ApplyAction(PdfDocument document)

Parameters

document PdfDocument

ApplyBorderBox(Rectangle, bool)

Applies the border box of the renderer on the given rectangle If the border of a certain side is null, the side will remain as it was.

public virtual Rectangle ApplyBorderBox(Rectangle rect, bool reverse)

Parameters

rect Rectangle

a rectangle the border box will be applied on.

reverse bool

indicates whether the border box will be applied inside (in case of false) or outside (in case of true) the rectangle.

Returns

Rectangle

a border box of the renderer

See Also

ApplyBorderBox(Rectangle, Border[], bool)

Applies the given border box (borders) on the given rectangle

protected virtual Rectangle ApplyBorderBox(Rectangle rect, Border[] borders, bool reverse)

Parameters

rect Rectangle

a rectangle paddings will be applied on.

borders Border[]

the borders to be applied on the given rectangle

reverse bool

indicates whether the border box will be applied inside (in case of false) or outside (in case of false) the rectangle.

Returns

Rectangle

a border box of the renderer

ApplyDestination(PdfDocument)

protected virtual void ApplyDestination(PdfDocument document)

Parameters

document PdfDocument

ApplyDestinationsAndAnnotation(DrawContext)

protected virtual void ApplyDestinationsAndAnnotation(DrawContext drawContext)

Parameters

drawContext DrawContext

ApplyLinkAnnotation(PdfDocument)

protected virtual void ApplyLinkAnnotation(PdfDocument document)

Parameters

document PdfDocument

ApplyMargins(Rectangle, bool)

Applies margins of the renderer on the given rectangle

public virtual Rectangle ApplyMargins(Rectangle rect, bool reverse)

Parameters

rect Rectangle

a rectangle margins will be applied on.

reverse bool

indicates whether margins will be applied inside (in case of false) or outside (in case of true) the rectangle.

Returns

Rectangle

a border box of the renderer

See Also

ApplyMargins(Rectangle, UnitValue[], bool)

Applies given margins on the given rectangle

protected virtual Rectangle ApplyMargins(Rectangle rect, UnitValue[] margins, bool reverse)

Parameters

rect Rectangle

a rectangle margins will be applied on.

margins UnitValue[]

the margins to be applied on the given rectangle

reverse bool

indicates whether margins will be applied inside (in case of false) or outside (in case of true) the rectangle.

Returns

Rectangle

a border box of the renderer

ApplyPaddings(Rectangle, bool)

Applies paddings of the renderer on the given rectangle

public virtual Rectangle ApplyPaddings(Rectangle rect, bool reverse)

Parameters

rect Rectangle

a rectangle paddings will be applied on.

reverse bool

indicates whether paddings will be applied inside (in case of false) or outside (in case of true) the rectangle.

Returns

Rectangle

a border box of the renderer

See Also

ApplyPaddings(Rectangle, UnitValue[], bool)

Applies given paddings to the given rectangle.

protected virtual Rectangle ApplyPaddings(Rectangle rect, UnitValue[] paddings, bool reverse)

Parameters

rect Rectangle

a rectangle paddings will be applied on.

paddings UnitValue[]

the paddings to be applied on the given rectangle

reverse bool

indicates whether paddings will be applied inside (in case of false) or outside (in case of true) the rectangle.

Returns

Rectangle

a border box of the renderer

ApplyRelativePositioningTranslation(bool)

protected virtual void ApplyRelativePositioningTranslation(bool reverse)

Parameters

reverse bool

BeginElementOpacityApplying(DrawContext)

Apply Property.OPACITY property if specified by setting corresponding values in graphic state dictionary opacity will be applied to all elements drawn after calling this method and before calling EndElementOpacityApplying(DrawContext) ()}.

protected virtual void BeginElementOpacityApplying(DrawContext drawContext)

Parameters

drawContext DrawContext

the context (canvas, document, etc) of this drawing operation.

BeginTransformationIfApplied(PdfCanvas)

protected virtual void BeginTransformationIfApplied(PdfCanvas canvas)

Parameters

canvas PdfCanvas

CalculateAbsolutePdfBBox()

Calculates the bounding box of the content in the coordinate system of the pdf entity on which content is placed, e.g. document page or form xObject.

protected virtual Rectangle CalculateAbsolutePdfBBox()

Returns

Rectangle

a Rectangle which is a bbox of the content not relative to the parent's layout area but rather to the some pdf entity coordinate system.

Remarks

Calculates the bounding box of the content in the coordinate system of the pdf entity on which content is placed, e.g. document page or form xObject. This is particularly useful for the cases when element is nested in the rotated element.

CalculateBBox(IList<Point>)

Calculates bounding box around points.

protected virtual Rectangle CalculateBBox(IList<Point> points)

Parameters

points IList<Point>

list of the points calculated bbox will enclose.

Returns

Rectangle

array of float values which denote left, bottom, right, top lines of bbox in this specific order

CalculateShiftToPositionBBoxOfPointsAt(float, float, IList<Point>)

This method calculates the shift needed to be applied to the points in order to position upper and left borders of their bounding box at the given lines.

protected virtual float[] CalculateShiftToPositionBBoxOfPointsAt(float left, float top, IList<Point> points)

Parameters

left float

x coordinate at which points bbox left border is to be aligned

top float

y coordinate at which points bbox upper border is to be aligned

points IList<Point>

the points, which bbox will be aligned at the given position

Returns

float[]

array of two floats, where first element denotes x-coordinate shift and the second element denotes y-coordinate shift which are needed to align points bbox at the given lines.

ClipBackgroundArea(DrawContext, Rectangle)

protected virtual bool ClipBackgroundArea(DrawContext drawContext, Rectangle outerBorderBox)

Parameters

drawContext DrawContext
outerBorderBox Rectangle

Returns

bool

ClipBackgroundArea(DrawContext, Rectangle, bool)

protected virtual bool ClipBackgroundArea(DrawContext drawContext, Rectangle outerBorderBox, bool considerBordersBeforeClipping)

Parameters

drawContext DrawContext
outerBorderBox Rectangle
considerBordersBeforeClipping bool

Returns

bool

ClipBorderArea(DrawContext, Rectangle)

protected virtual bool ClipBorderArea(DrawContext drawContext, Rectangle outerBorderBox)

Parameters

drawContext DrawContext
outerBorderBox Rectangle

Returns

bool

CreateXObject(AbstractLinearGradientBuilder, Rectangle, PdfDocument)

Create a PdfFormXObject with the given area and containing a linear gradient inside.

public static PdfFormXObject CreateXObject(AbstractLinearGradientBuilder linearGradientBuilder, Rectangle xObjectArea, PdfDocument document)

Parameters

linearGradientBuilder AbstractLinearGradientBuilder

the linear gradient builder

xObjectArea Rectangle

the result object area

document PdfDocument

the pdf document

Returns

PdfFormXObject

the xObject with a specified area and a linear gradient

DeleteOwnProperty(int)

public virtual void DeleteOwnProperty(int property)

Parameters

property int

DeleteProperty(int)

Deletes property from this very renderer, or in case the property is specified on its model element, the property of the model element is deleted

public virtual void DeleteProperty(int property)

Parameters

property int

the property key to be deleted

Draw(DrawContext)

public virtual void Draw(DrawContext drawContext)

Parameters

drawContext DrawContext

DrawBackground(DrawContext)

Draws a background layer if it is defined by a key BACKGROUND in either the layout element or this IRenderer itself.

public virtual void DrawBackground(DrawContext drawContext)

Parameters

drawContext DrawContext

the context (canvas, document, etc) of this drawing operation.

DrawBorder(DrawContext)

Performs the drawing operation for the border of this renderer, if defined by any of the BORDER values in either the layout element or this IRenderer itself.

public virtual void DrawBorder(DrawContext drawContext)

Parameters

drawContext DrawContext

the context (canvas, document, etc) of this drawing operation.

DrawChildren(DrawContext)

Performs the drawing operation for all children of this renderer.

public virtual void DrawChildren(DrawContext drawContext)

Parameters

drawContext DrawContext

the context (canvas, document, etc) of this drawing operation.

EndElementOpacityApplying(DrawContext)

protected virtual void EndElementOpacityApplying(DrawContext drawContext)

Parameters

drawContext DrawContext

the context (canvas, document, etc) of this drawing operation.

EndTransformationIfApplied(PdfCanvas)

protected virtual void EndTransformationIfApplied(PdfCanvas canvas)

Parameters

canvas PdfCanvas

GetBackgroundArea(Rectangle)

Evaluate the actual background

protected virtual Rectangle GetBackgroundArea(Rectangle occupiedAreaWithMargins)

Parameters

occupiedAreaWithMargins Rectangle

the current occupied area with applied margins

Returns

Rectangle

the actual background area

GetBorderAreaBBox()

Gets the border box of a renderer.

public virtual Rectangle GetBorderAreaBBox()

Returns

Rectangle

border box of a renderer

Remarks

Gets the border box of a renderer. This is a box used to draw borders.

GetBorderRadii()

Gets border radii of the element in the specified order: top-left, top-right, bottom-right, bottom-left.

protected virtual BorderRadius[] GetBorderRadii()

Returns

BorderRadius[]

an array of BorderRadius objects. In case when certain border radius isn't set Property.BORDER_RADIUS is used, and if Property.BORDER_RADIUS is also not set then null is returned on position of this border radius

GetBorders()

Gets borders of the element in the specified order: top, right, bottom, left.

protected virtual Border[] GetBorders()

Returns

Border[]

an array of BorderDrawer objects. In case when certain border isn't set Property.BORDER is used, and if Property.BORDER is also not set then null is returned on position of this border

GetChildRenderers()

public virtual IList<IRenderer> GetChildRenderers()

Returns

IList<IRenderer>

GetDefaultProperty<T1>(int)

public virtual T1 GetDefaultProperty<T1>(int property)

Parameters

property int

Returns

T1

Type Parameters

T1

GetFirstYLineRecursively()

Gets the first yLine of the nested children recursively.

protected virtual float? GetFirstYLineRecursively()

Returns

float?

the first yline of the nested children, null if there is no text found

Remarks

Gets the first yLine of the nested children recursively. E.g. for a list, this will be the yLine of the first item (if the first item is indeed a paragraph). NOTE: this method will no go further than the first child.

GetInnerAreaBBox()

public virtual Rectangle GetInnerAreaBBox()

Returns

Rectangle

GetLastYLineRecursively()

protected virtual float? GetLastYLineRecursively()

Returns

float?

GetMargins()

Returns margins of the renderer [0] - top; [1] - right; [2] - bottom; [3] - left

protected virtual UnitValue[] GetMargins()

Returns

UnitValue[]

a float[] margins of the renderer

GetMinMaxWidth()

Calculates min and max width values for current renderer.

public virtual MinMaxWidth GetMinMaxWidth()

Returns

MinMaxWidth

instance of MinMaxWidth

GetModelElement()

public virtual IPropertyContainer GetModelElement()

Returns

IPropertyContainer

GetNextRenderer()

public abstract IRenderer GetNextRenderer()

Returns

IRenderer

GetOccupiedArea()

public virtual LayoutArea GetOccupiedArea()

Returns

LayoutArea

GetOccupiedAreaBBox()

Gets the bounding box that contains all content written to the DrawContext by this IRenderer.

public virtual Rectangle GetOccupiedAreaBBox()

Returns

Rectangle

the smallest Rectangle that surrounds the content

GetOwnProperties()

protected virtual IDictionary<int, object> GetOwnProperties()

Returns

IDictionary<int, object>

GetOwnProperty<T1>(int)

public virtual T1 GetOwnProperty<T1>(int property)

Parameters

property int

Returns

T1

Type Parameters

T1

GetPaddings()

Returns paddings of the renderer [0] - top; [1] - right; [2] - bottom; [3] - left

protected virtual UnitValue[] GetPaddings()

Returns

UnitValue[]

a float[] paddings of the renderer

GetParent()

public virtual IRenderer GetParent()

Returns

IRenderer

GetPropertyAsBoolean(int)

Returns a property with a certain key, as a boolean value.

public virtual bool? GetPropertyAsBoolean(int property)

Parameters

property int

an enum value

Returns

bool?

a

GetPropertyAsColor(int)

Returns a property with a certain key, as a color.

public virtual Color GetPropertyAsColor(int property)

Parameters

property int

an enum value

Returns

Color

a Color

GetPropertyAsFloat(int)

Returns a property with a certain key, as a floating point value.

public virtual float? GetPropertyAsFloat(int property)

Parameters

property int

an enum value

Returns

float?

a

GetPropertyAsFloat(int, float?)

Returns a property with a certain key, as a floating point value.

public virtual float? GetPropertyAsFloat(int property, float? defaultValue)

Parameters

property int

an enum value

defaultValue float?

default value to be returned if property is not found

Returns

float?

a

GetPropertyAsFont(int)

Returns a property with a certain key, as a font object.

public virtual PdfFont GetPropertyAsFont(int property)

Parameters

property int

an enum value

Returns

PdfFont

a PdfFont

GetPropertyAsInteger(int)

Returns a property with a certain key, as an integer value.

public virtual int? GetPropertyAsInteger(int property)

Parameters

property int

an enum value

Returns

int?

a

GetPropertyAsTransparentColor(int)

Returns a property with a certain key, as a TransparentColor.

public virtual TransparentColor GetPropertyAsTransparentColor(int property)

Parameters

property int

an enum value

Returns

TransparentColor

a TransparentColor

GetPropertyAsUnitValue(int)

Returns a property with a certain key, as a unit value.

public virtual UnitValue GetPropertyAsUnitValue(int property)

Parameters

property int

an enum value

Returns

UnitValue

a UnitValue

GetProperty<T1>(int)

public virtual T1 GetProperty<T1>(int key)

Parameters

key int

Returns

T1

Type Parameters

T1

GetProperty<T1>(int, T1)

public virtual T1 GetProperty<T1>(int property, T1 defaultValue)

Parameters

property int
defaultValue T1

Returns

T1

Type Parameters

T1

HasAbsoluteUnitValue(int)

Check if corresponding property has point value.

protected virtual bool HasAbsoluteUnitValue(int property)

Parameters

property int

Property

Returns

bool

false if property value either null, or percent, otherwise true.

HasOwnOrModelProperty(int)

Checks if this renderer or its model element have the specified property, i.e. if it was set to this very element or its very model element earlier.

public virtual bool HasOwnOrModelProperty(int property)

Parameters

property int

the property to be checked

Returns

bool

true if this instance or its model element have given own property, false otherwise

HasOwnProperty(int)

public virtual bool HasOwnProperty(int property)

Parameters

property int

Returns

bool

HasProperty(int)

public virtual bool HasProperty(int property)

Parameters

property int

Returns

bool

HasRelativeUnitValue(int)

Check if corresponding property has relative value.

protected virtual bool HasRelativeUnitValue(int property)

Parameters

property int

Property

Returns

bool

false if property value either null, or point, otherwise true.

InitElementAreas(LayoutArea)

Gets all rectangles that this IRenderer can draw upon in the given area.

public virtual IList<Rectangle> InitElementAreas(LayoutArea area)

Parameters

area LayoutArea

a physical area on the DrawContext

Returns

IList<Rectangle>

a list of rectangles

IsAbsolutePosition()

protected virtual bool IsAbsolutePosition()

Returns

bool

IsBorderBoxSizing(IRenderer)

protected static bool IsBorderBoxSizing(IRenderer renderer)

Parameters

renderer IRenderer

Returns

bool

IsFirstOnRootArea()

public virtual bool IsFirstOnRootArea()

Returns

bool

IsFixedLayout()

Indicates whether the renderer's position is fixed or not.

protected virtual bool IsFixedLayout()

Returns

bool

a boolean

IsFlushed()

Indicates whether this renderer is flushed or not, i.e. if Draw(DrawContext) has already been called.

public virtual bool IsFlushed()

Returns

bool

whether the renderer has been flushed

See Also

IsKeepTogether()

protected virtual bool IsKeepTogether()

Returns

bool

IsNotFittingHeight(LayoutArea)

protected virtual bool IsNotFittingHeight(LayoutArea layoutArea)

Parameters

layoutArea LayoutArea

Returns

bool

IsNotFittingLayoutArea(LayoutArea)

protected virtual bool IsNotFittingLayoutArea(LayoutArea layoutArea)

Parameters

layoutArea LayoutArea

Returns

bool

IsNotFittingWidth(LayoutArea)

protected virtual bool IsNotFittingWidth(LayoutArea layoutArea)

Parameters

layoutArea LayoutArea

Returns

bool

IsOverflowFit(OverflowPropertyValue?)

protected static bool IsOverflowFit(OverflowPropertyValue? rendererOverflowProperty)

Parameters

rendererOverflowProperty OverflowPropertyValue?

Returns

bool

IsOverflowProperty(OverflowPropertyValue?, int)

protected virtual bool IsOverflowProperty(OverflowPropertyValue? equalsTo, int overflowProperty)

Parameters

equalsTo OverflowPropertyValue?
overflowProperty int

Returns

bool

IsOverflowProperty(OverflowPropertyValue?, OverflowPropertyValue?)

protected static bool IsOverflowProperty(OverflowPropertyValue? equalsTo, OverflowPropertyValue? rendererOverflowProperty)

Parameters

equalsTo OverflowPropertyValue?
rendererOverflowProperty OverflowPropertyValue?

Returns

bool

IsOverflowProperty(OverflowPropertyValue?, IRenderer, int)

protected static bool IsOverflowProperty(OverflowPropertyValue? equalsTo, IRenderer renderer, int overflowProperty)

Parameters

equalsTo OverflowPropertyValue?
renderer IRenderer
overflowProperty int

Returns

bool

IsPositioned()

Indicates whether the renderer's position is fixed or not.

protected virtual bool IsPositioned()

Returns

bool

a boolean

IsRelativePosition()

protected virtual bool IsRelativePosition()

Returns

bool

IsStaticLayout()

protected virtual bool IsStaticLayout()

Returns

bool

Layout(LayoutContext)

public abstract LayoutResult Layout(LayoutContext arg1)

Parameters

arg1 LayoutContext

Returns

LayoutResult

Move(float, float)

public virtual void Move(float dxRight, float dyUp)

Parameters

dxRight float
dyUp float

RectangleToPointsList(Rectangle)

protected virtual IList<Point> RectangleToPointsList(Rectangle rect)

Parameters

rect Rectangle

Returns

IList<Point>

RetrieveHeight()

Retrieves the element's fixed content box height, if it's set.

protected virtual float? RetrieveHeight()

Returns

float?

element's fixed content box height or null if it's not set.

Remarks

Retrieves the element's fixed content box height, if it's set. Takes into account BOX_SIZING , MIN_HEIGHT , and MAX_HEIGHT properties.

RetrieveMaxHeight()

Retrieve element's content box max-ehight, if it's set.

protected virtual float? RetrieveMaxHeight()

Returns

float?

element's content box max-height or null if it's not set.

Remarks

Retrieve element's content box max-ehight, if it's set. Takes into account BOX_SIZING property value.

RetrieveMaxWidth(float)

Retrieves element's fixed content box max width, if it's set.

protected virtual float? RetrieveMaxWidth(float parentBoxWidth)

Parameters

parentBoxWidth float

width of the parent element content box. If element has relative width, it will be calculated relatively to this parameter.

Returns

float?

element's fixed content box max width or null if it's not set.

Remarks

Retrieves element's fixed content box max width, if it's set. Takes into account BOX_SIZING and MIN_WIDTH properties.

See Also

RetrieveMinHeight()

Retrieves element's content box min-height, if it's set.

protected virtual float? RetrieveMinHeight()

Returns

float?

element's content box min-height or null if it's not set.

Remarks

Retrieves element's content box min-height, if it's set. Takes into account BOX_SIZING property value.

RetrieveMinWidth(float)

Retrieves element's fixed content box max width, if it's set.

protected virtual float? RetrieveMinWidth(float parentBoxWidth)

Parameters

parentBoxWidth float

width of the parent element content box. If element has relative width, it will be calculated relatively to this parameter.

Returns

float?

element's fixed content box max width or null if it's not set.

Remarks

Retrieves element's fixed content box max width, if it's set. Takes into account BOX_SIZING property value.

See Also

RetrieveUnitValue(float, int)

protected virtual float? RetrieveUnitValue(float baseValue, int property)

Parameters

baseValue float
property int

Returns

float?

RetrieveUnitValue(float, int, bool)

protected virtual float? RetrieveUnitValue(float baseValue, int property, bool pointOnly)

Parameters

baseValue float
property int
pointOnly bool

Returns

float?

RetrieveWidth(float)

Retrieves element's fixed content box width, if it's set.

protected virtual float? RetrieveWidth(float parentBoxWidth)

Parameters

parentBoxWidth float

width of the parent element content box. If element has relative width, it will be calculated relatively to this parameter.

Returns

float?

element's fixed content box width or null if it's not set.

Remarks

Retrieves element's fixed content box width, if it's set. Takes into account BOX_SIZING , MIN_WIDTH , and MAX_WIDTH properties.

See Also

SetBorders(Border, int)

protected virtual AbstractRenderer SetBorders(Border border, int borderNumber)

Parameters

border Border
borderNumber int

Returns

AbstractRenderer

SetMinMaxWidthBasedOnFixedWidth(MinMaxWidth)

protected virtual bool SetMinMaxWidthBasedOnFixedWidth(MinMaxWidth minMaxWidth)

Parameters

minMaxWidth MinMaxWidth

Returns

bool

SetParent(IRenderer)

public virtual IRenderer SetParent(IRenderer parent)

Parameters

parent IRenderer

Returns

IRenderer

SetProperty(int, object)

public virtual void SetProperty(int property, object value)

Parameters

property int
value object

ToString()

Returns a string representation of the renderer.

public override string ToString()

Returns

string

a string

See Also

TransformPoints(IList<Point>, AffineTransform)

protected virtual IList<Point> TransformPoints(IList<Point> points, AffineTransform transform)

Parameters

points IList<Point>
transform AffineTransform

Returns

IList<Point>

UpdateHeight(UnitValue)

Updates fixed content box height value for this renderer.

protected virtual void UpdateHeight(UnitValue updatedHeight)

Parameters

updatedHeight UnitValue

element's new fixed content box height, shall be not null.

Remarks

Updates fixed content box height value for this renderer. Takes into account BOX_SIZING property value.

UpdateHeightsOnSplit(bool, AbstractRenderer, AbstractRenderer)

protected virtual void UpdateHeightsOnSplit(bool wasHeightClipped, AbstractRenderer splitRenderer, AbstractRenderer overflowRenderer)

Parameters

wasHeightClipped bool
splitRenderer AbstractRenderer
overflowRenderer AbstractRenderer

UpdateMaxHeight(UnitValue)

Updates content box max-height value for this renderer.

protected virtual void UpdateMaxHeight(UnitValue updatedMaxHeight)

Parameters

updatedMaxHeight UnitValue

element's new content box max-height, shall be not null.

Remarks

Updates content box max-height value for this renderer. Takes into account BOX_SIZING property value.

UpdateMinHeight(UnitValue)

Updates content box min-height value for this renderer.

protected virtual void UpdateMinHeight(UnitValue updatedMinHeight)

Parameters

updatedMinHeight UnitValue

element's new content box min-height, shall be not null.

Remarks

Updates content box min-height value for this renderer. Takes into account BOX_SIZING property value.

UpdateWidth(UnitValue)

Updates fixed content box width value for this renderer.

protected virtual void UpdateWidth(UnitValue updatedWidthValue)

Parameters

updatedWidthValue UnitValue

element's new fixed content box width.

Remarks

Updates fixed content box width value for this renderer. Takes into account BOX_SIZING property value.