IHTMLStyle7::alignmentBaseline Property
.png)
[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 IHTMLStyle7::get_alignmentBaseline(BSTR *p); HRESULT IHTMLStyle7::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 thanauto, 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 thebaselinevalue.before-edge The alignment point of the box is aligned with the before-edgebaseline of the line box.text-before-edge The alignment point of the element being aligned is aligned with the text-before-edgebaseline of the parent.after-edge The alignment point of the box is aligned with the after-edgebaseline of the line box.text-after-edge The alignment point of the element being aligned is aligned with the text-after-edgebaseline of the parent.central The alignment point of the box is aligned with the centralbaseline of the parent.middle The alignment point of the box is aligned with the middlebaseline of the parent.ideographic The alignment point of the element being aligned is aligned with the ideographicbaseline 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, andtext-after-edgeall work relative to the -ms-writing-mode property values. For examplebefore-edgemeanstopin a horizontal writing mode andrightin a vertical writing mode.
See Also