Class AbstractRenderer
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
IElementthe 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
AbstractRendererrenderer 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
INF
The infinity value which is used while layouting
protected const float INF = 1000000
Field Value
OVERLAP_EPSILON
public const float OVERLAP_EPSILON = 0.0001
Field Value
childRenderers
protected IList<IRenderer> childRenderers
Field Value
flushed
protected bool flushed
Field Value
isLastRendererForModelElement
protected bool isLastRendererForModelElement
Field Value
modelElement
protected IPropertyContainer modelElement
Field Value
occupiedArea
protected LayoutArea occupiedArea
Field Value
parent
protected IRenderer parent
Field Value
positionedRenderers
protected IList<IRenderer> positionedRenderers
Field Value
properties
protected IDictionary<int, object> properties
Field Value
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
AllowLastYLineRecursiveExtraction()
protected virtual bool AllowLastYLineRecursiveExtraction()
Returns
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
Rectanglea rectangle the border box will be applied on.
reverse
boolindicates 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
Rectanglea rectangle paddings will be applied on.
borders
Border[]the borders to be applied on the given rectangle
reverse
boolindicates 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
Rectanglea rectangle margins will be applied on.
reverse
boolindicates 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
Rectanglea rectangle margins will be applied on.
margins
UnitValue[]the margins to be applied on the given rectangle
reverse
boolindicates 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
Rectanglea rectangle paddings will be applied on.
reverse
boolindicates 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
Rectanglea rectangle paddings will be applied on.
paddings
UnitValue[]the paddings to be applied on the given rectangle
reverse
boolindicates 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
DrawContextthe 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
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
floatx coordinate at which points bbox left border is to be aligned
top
floaty 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
DrawContextouterBorderBox
Rectangle
Returns
ClipBackgroundArea(DrawContext, Rectangle, bool)
protected virtual bool ClipBackgroundArea(DrawContext drawContext, Rectangle outerBorderBox, bool considerBordersBeforeClipping)
Parameters
drawContext
DrawContextouterBorderBox
RectangleconsiderBordersBeforeClipping
bool
Returns
ClipBorderArea(DrawContext, Rectangle)
protected virtual bool ClipBorderArea(DrawContext drawContext, Rectangle outerBorderBox)
Parameters
drawContext
DrawContextouterBorderBox
Rectangle
Returns
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
AbstractLinearGradientBuilderthe linear gradient builder
xObjectArea
Rectanglethe result object area
document
PdfDocumentthe 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
intthe 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
DrawContextthe 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
DrawContextthe 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
DrawContextthe context (canvas, document, etc) of this drawing operation.
EndElementOpacityApplying(DrawContext)
protected virtual void EndElementOpacityApplying(DrawContext drawContext)
Parameters
drawContext
DrawContextthe 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
Rectanglethe 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 ifProperty.BORDER_RADIUS
is also not set thennull
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 ifProperty.BORDER
is also not set thennull
is returned on position of this border
GetChildRenderers()
public virtual IList<IRenderer> GetChildRenderers()
Returns
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
GetLastYLineRecursively()
protected virtual float? GetLastYLineRecursively()
Returns
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
GetNextRenderer()
public abstract IRenderer GetNextRenderer()
Returns
GetOccupiedArea()
public virtual LayoutArea GetOccupiedArea()
Returns
GetOccupiedAreaBBox()
Gets the bounding box that contains all content written to the DrawContext by this IRenderer.
public virtual Rectangle GetOccupiedAreaBBox()
Returns
GetOwnProperties()
protected virtual IDictionary<int, object> GetOwnProperties()
Returns
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
GetPropertyAsBoolean(int)
Returns a property with a certain key, as a boolean value.
public virtual bool? GetPropertyAsBoolean(int property)
Parameters
property
intan 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
intan enum value
Returns
GetPropertyAsFloat(int)
Returns a property with a certain key, as a floating point value.
public virtual float? GetPropertyAsFloat(int property)
Parameters
property
intan 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
intan 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
intan enum value
Returns
GetPropertyAsInteger(int)
Returns a property with a certain key, as an integer value.
public virtual int? GetPropertyAsInteger(int property)
Parameters
property
intan 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
intan enum value
Returns
GetPropertyAsUnitValue(int)
Returns a property with a certain key, as a unit value.
public virtual UnitValue GetPropertyAsUnitValue(int property)
Parameters
property
intan enum value
Returns
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
intdefaultValue
T1
Returns
- T1
Type Parameters
T1
HasAbsoluteUnitValue(int)
Check if corresponding property has point value.
protected virtual bool HasAbsoluteUnitValue(int property)
Parameters
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
intthe property to be checked
Returns
HasOwnProperty(int)
public virtual bool HasOwnProperty(int property)
Parameters
property
int
Returns
HasProperty(int)
public virtual bool HasProperty(int property)
Parameters
property
int
Returns
HasRelativeUnitValue(int)
Check if corresponding property has relative value.
protected virtual bool HasRelativeUnitValue(int property)
Parameters
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
LayoutAreaa physical area on the DrawContext
Returns
- IList<Rectangle>
a list of rectangles
IsAbsolutePosition()
protected virtual bool IsAbsolutePosition()
Returns
IsBorderBoxSizing(IRenderer)
protected static bool IsBorderBoxSizing(IRenderer renderer)
Parameters
renderer
IRenderer
Returns
IsFirstOnRootArea()
public virtual bool IsFirstOnRootArea()
Returns
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
IsNotFittingHeight(LayoutArea)
protected virtual bool IsNotFittingHeight(LayoutArea layoutArea)
Parameters
layoutArea
LayoutArea
Returns
IsNotFittingLayoutArea(LayoutArea)
protected virtual bool IsNotFittingLayoutArea(LayoutArea layoutArea)
Parameters
layoutArea
LayoutArea
Returns
IsNotFittingWidth(LayoutArea)
protected virtual bool IsNotFittingWidth(LayoutArea layoutArea)
Parameters
layoutArea
LayoutArea
Returns
IsOverflowFit(OverflowPropertyValue?)
protected static bool IsOverflowFit(OverflowPropertyValue? rendererOverflowProperty)
Parameters
rendererOverflowProperty
OverflowPropertyValue?
Returns
IsOverflowProperty(OverflowPropertyValue?, int)
protected virtual bool IsOverflowProperty(OverflowPropertyValue? equalsTo, int overflowProperty)
Parameters
equalsTo
OverflowPropertyValue?overflowProperty
int
Returns
IsOverflowProperty(OverflowPropertyValue?, OverflowPropertyValue?)
protected static bool IsOverflowProperty(OverflowPropertyValue? equalsTo, OverflowPropertyValue? rendererOverflowProperty)
Parameters
equalsTo
OverflowPropertyValue?rendererOverflowProperty
OverflowPropertyValue?
Returns
IsOverflowProperty(OverflowPropertyValue?, IRenderer, int)
protected static bool IsOverflowProperty(OverflowPropertyValue? equalsTo, IRenderer renderer, int overflowProperty)
Parameters
equalsTo
OverflowPropertyValue?renderer
IRendereroverflowProperty
int
Returns
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
IsStaticLayout()
protected virtual bool IsStaticLayout()
Returns
Layout(LayoutContext)
public abstract LayoutResult Layout(LayoutContext arg1)
Parameters
arg1
LayoutContext
Returns
Move(float, float)
public virtual void Move(float dxRight, float dyUp)
Parameters
RectangleToPointsList(Rectangle)
protected virtual IList<Point> RectangleToPointsList(Rectangle rect)
Parameters
rect
Rectangle
Returns
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
floatwidth 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
floatwidth 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
Returns
RetrieveUnitValue(float, int, bool)
protected virtual float? RetrieveUnitValue(float baseValue, int property, bool pointOnly)
Parameters
Returns
RetrieveWidth(float)
Retrieves element's fixed content box width, if it's set.
protected virtual float? RetrieveWidth(float parentBoxWidth)
Parameters
parentBoxWidth
floatwidth 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
Returns
SetMinMaxWidthBasedOnFixedWidth(MinMaxWidth)
protected virtual bool SetMinMaxWidthBasedOnFixedWidth(MinMaxWidth minMaxWidth)
Parameters
minMaxWidth
MinMaxWidth
Returns
SetParent(IRenderer)
public virtual IRenderer SetParent(IRenderer parent)
Parameters
parent
IRenderer
Returns
SetProperty(int, object)
public virtual void SetProperty(int property, object value)
Parameters
ToString()
Returns a string representation of the renderer.
public override string ToString()
Returns
- See Also
-
ToString()
TransformPoints(IList<Point>, AffineTransform)
protected virtual IList<Point> TransformPoints(IList<Point> points, AffineTransform transform)
Parameters
points
IList<Point>transform
AffineTransform
Returns
UpdateHeight(UnitValue)
Updates fixed content box height value for this renderer.
protected virtual void UpdateHeight(UnitValue updatedHeight)
Parameters
updatedHeight
UnitValueelement'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
boolsplitRenderer
AbstractRendereroverflowRenderer
AbstractRenderer
UpdateMaxHeight(UnitValue)
Updates content box max-height value for this renderer.
protected virtual void UpdateMaxHeight(UnitValue updatedMaxHeight)
Parameters
updatedMaxHeight
UnitValueelement'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
UnitValueelement'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
UnitValueelement's new fixed content box width.
Remarks
Updates fixed content box width value for this renderer. Takes into account BOX_SIZING property value.