Represents style information container, if one of the style properties is not set then it doesn't affect the element matched. The value for the setting will be inferred from other matching style or from directly set value (can be set via the element's property).
If there are no matching values for the setting and it's not set directly on the element instance then it will have the default value that depends on the element type.
Some of the style properties can be inherited while others affect only the directly matched element, each property has the description of this behavior.
Assembly: Apitron.PDF.Kit (in Apitron.PDF.Kit.dll) Version: 220.127.116.11 (18.104.22.168)
Thetype exposes the following members.
Initializes a new instance of theclass.
Style - is a set of properties that define ContentElement’s appearance, very similar to CSS they help to tune the look of the element by employing internal styling system based on selectors.
Selector – is a rule that defines which elements should be styled with the given set of properties, it consists of a rule itself that looks very similar to CSS notation and a property set. See StyleManager help for more information on supported selectors.
All content elements have the same set of properties forming style, that can be set either directly or by using style selectors. A direct setting affects implicit style for the element and while selectors can affect multiple elements at once making it feasible to lessen the work needed to design a document.
Gets or sets the horizontal alignment of the element’s content, it can be Left, Right, Center aligned or Justified. Only acceptable for block elements, this property will be ignored if the element used is not a block. Left, Right, Center values are supported by all elements. In case of Justify is used – only text elements will be affected. All elements inherit value from their block containers, only block elements can override parent’s Align setting.
Gets or sets the background color. Not inheritable.
Gets or sets the background image for the element. The background of an element is the total size of the element, including padding (but not the margin and border). By default, a background-image is placed at the top-left corner of an element, and repeated both vertically and horizontally. Not inheritable.
Gets or sets the background position value for the element. The background position property sets the starting position of a background image. Not inheritable.
Gets or sets the background repeat value for the element. The background repeat property sets if/how a background image will be repeated. By default, a background image is repeated both vertically and horizontally. Not inheritable.
Gets or sets the border around the element. Not inheritable.
Gets or sets the bottom border. Not inheritable.
Gets or sets the color of the border. Not inheritable.
Gets or sets the left border. Not inheritable.
Gets or sets the right border. Not inheritable.
Gets or sets the top border. Not inheritable.
Gets or sets the cell padding, affects only Grid elements. Not inheritable.
Gets or sets the character spacing. Inheritable.
Gets or sets the clear flag for the element indicating whether it should ignore floating elements (if any) and start a new line. Not inheritable.
Gets or sets the foreground color for the element. Inheritable.
Gets or sets the display setting for the element. Not inheritable.
Gets or sets the value indicating that element can float. Not inheritable.
Gets or sets the font for the element. Inheritable.
Gets or sets the height of the element. Not inheritable.
Gets or sets the inner border, affects only Grid elements. Not inheritable.
Gets or sets the color of the inner border affects only Grid elements. Not inheritable.
Gets or sets the height of the line. On a block container element whose content is composed of inline-level elements, 'line-height' specifies the minimal height of line boxes within the element. On a non-inline element, 'line-height' specifies the height that is used in the calculation of the line box height. Inheritable.
Gets or sets the list counter. Not inheritable.
Gets or sets the list marker appearance. Inheritable.
Gets or sets the list marker padding. Inheritable.
Gets or sets the list style. Not inheritable.
Gets or sets the margin around the element. Not inheritable.
Gets or sets the padding. Not inheritable.
Gets or sets the value used to create subscripting or superscripting effect. It defines the level of effect, zero can be used for normal scripting, positive values are for superscripting, negative for subscripting. Affects textual elements. Not inheritable.
Gets or sets the type of the logical structure.
Gets or sets the text decoration. Inheritable.
Gets or sets the text indent. Inheritable.
Gets or sets the text rendering mode used to draw textual elements. By default all text is being drawn using Fill setting. Inheritable.
Gets or sets the vertical align. Not inheritable.
Gets or sets the width of the element. Not inheritable.
Gets or sets the word spacing. Inheritable.