CssBoxProperties
Base class for css box to handle the css properties. Has field and property for every css property that can be set, the properties add additional parsing like setting the correct border depending what border value was set (single, two , all four). Has additional fields to control the location and size of the box and 'actual' css values for some properties that require additional calculations and parsing.
Propiedades
ActualBackgroundColor : RColor
Gets the actual background color of the box
ActualBackgroundGradient : RColor
Gets the second color that creates a gradient for the background
ActualBackgroundGradientAngle : double
Gets the actual angle specified for the background gradient
ActualBorderBottomColor : RColor
Gets the actual Bottom border Color
ActualBorderBottomWidth : double
Gets the actual Bottom border width
ActualBorderLeftColor : RColor
Gets the actual Left border Color
ActualBorderLeftWidth : double
Gets the actual Left border width
ActualBorderRightColor : RColor
Gets the actual Right border Color
ActualBorderRightWidth : double
Gets the actual Right border width
ActualBorderSpacingHorizontal : double
Gets the actual horizontal border spacing for tables
ActualBorderSpacingVertical : double
Gets the actual vertical border spacing for tables
ActualBorderTopColor : RColor
Gets the actual top border Color
ActualBorderTopWidth : double
Gets the actual top border width
ActualBottom : double
Gets or sets the bottom of the box. (When setting, alters only the Size.Height of the box)
ActualColor : RColor
Gets the actual color for the text.
ActualCornerNe : double
Gets the actual length of the north east corner
ActualCornerNw : double
Gets the actual length of the north west corner
ActualCornerSe : double
Gets the actual length of the south east corner
ActualCornerSw : double
Gets the actual length of the south west corner
ActualFont : RFont
Gets the font that should be actually used to paint the text of the box
ActualHeight : double
Gets the actual height
ActualLineHeight : double
Gets the line height
ActualMarginBottom : double
Gets the actual Margin of the bottom
ActualMarginLeft : double
Gets the actual Margin on the left
ActualMarginRight : double
Gets the actual Margin on the right
ActualMarginTop : double
Gets the actual top's Margin
ActualPaddingBottom : double
Gets the actual Padding of the bottom
ActualPaddingLeft : double
Gets the actual padding on the left
ActualPaddingRight : double
Gets the actual padding on the right
ActualPaddingTop : double
Gets the actual top's padding
ActualParentFont : RFont
Gets the actual font of the parent
ActualRight : double
Gets the right of the box. When setting, it will affect only the width of the box.
ActualTextIndent : double
Gets the text indentation (on first line only)
ActualWidth : double
Gets the actual height
ActualWordSpacing : double
Gets the actual width of whitespace between words.
AvailableWidth : double
Gets the width available on the box, counting padding and margin.
ClientBottom : double
Gets the bottom of the client rectangle
ClientLeft : double
Gets the left of the client rectangle (Where content starts rendering)
ClientRectangle : RRect
Gets the client rectangle
ClientRight : double
Gets the right of the client rectangle
CollapsedMarginTop : double
The margin top value if was effected by margin collapse.
Métodos
GetEmHeight() : double
Gets the height of the font in the specified units
GetParent() : CssBoxProperties
Get the parent of this css properties instance.
InheritStyle(CssBox, bool)
Inherits inheritable values from specified box.
- everything
- Set to true to inherit all CSS properties instead of only the ineritables
- p
- Box to inherit the properties
MeasureWordSpacing(RGraphics)
Measures the width of whitespace between words (set ActualWordSpacing).
SetAllBorders(string, string, string)
Set the style/width/color for all 4 borders on the box. if null is given for a value it will not be set.
- style
- optional: the style to set
- width
- optional: the width to set
- color
- optional: the color to set
Campos
_actualLineHeight : double
the width of whitespace between words