IHTMLRuleStyle7::alignmentBaseline Property

New for Internet Explorer 9

[This documentation is preliminary and is subject to change.]

Gets or sets how an inline-level element is aligned with respect to its parent.

Syntax

HRESULT IHTMLRuleStyle7::get_alignmentBaseline(BSTR *p);
HRESULT IHTMLRuleStyle7::put_alignmentBaseline(BSTR v);

Parameters

  • p
    Pointer to a variable of type BSTR that receives one of the values listed in Possible Values.
  • v
    BSTR that specifies one of the values listed in Possible Values.

Possible Values

baseline Default. The alignment point of the element being aligned is aligned with the dominant baseline of the parent.
use-script If the element script property value is auto, the alignment point of each glyph is aligned with the baseline identifier of the script to which the glyph belongs. If the element script property value is a value other than auto, the alignment point of each glyph is aligned with the baseline identifier specified by the script property. The baseline identifier position is determined by using the relevant information related to the parent element dominant baseline set. The alignment point of the element itself is aligned as for the baseline value.
before-edge The alignment point of the box is aligned with the before-edge baseline of the line box.
text-before-edge The alignment point of the element being aligned is aligned with the text-before-edge baseline of the parent.
after-edge The alignment point of the box is aligned with the after-edge baseline of the line box.
text-after-edge The alignment point of the element being aligned is aligned with the text-after-edge baseline of the parent.
central The alignment point of the box is aligned with the central baseline of the parent.
middle The alignment point of the box is aligned with the middle baseline of the parent.
ideographic The alignment point of the element being aligned is aligned with the ideographic baseline of the parent.
alphabetic The alignment point of the element being aligned is aligned with the lower baseline of the parent.
hanging The alignment point of the element being aligned is aligned with the hanging baseline of the parent.
mathematical The alignment point of the element being aligned is aligned with the mathematical baseline of the parent.
inherit The property takes the same computed value as the property for the element's parent.

Return Value

Returns S_OK if successful, or an error value otherwise.

Remarks

The alignment-baseline property specifies how an inline-level element is aligned with respect to its parent. That is, to which of the parent's baselines that the alignment point of this element is aligned. Unlike the dominant-baseline property the alignment-baseline property has no effect on its children dominant baselines .

The values: before-edge, text-before-edge, after-edge, and text-after-edge all work relative to the -ms-writing-mode property values. For example before-edge means top in a horizontal writing mode and right in a vertical writing mode.

See Also

IHTMLRuleStyle7::dominantBaseline, IHTMLRuleStyle7::baselineShift