IHTMLStyle7::dominantBaseline Property
.png)
[This documentation is preliminary and is subject to change.]
Gets or sets a value that determines or redetermines a scaled-baseline table.
Syntax
HRESULT IHTMLStyle7::get_dominantBaseline(BSTR *p); HRESULT IHTMLStyle7::put_dominantBaseline(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
auto Default. If this property occurs on a text element, sBaselineTable indicates that the computed value depends on the value of the IHTMLStyle3::writingMode property. (If the IHTMLStyle3::writingMode is horizontal, the value of the dominant baseline component is alphabetic. Otherwise, if the IHTMLStyle3::writingMode is vertical, the value of the dominant baseline component iscentral.) If this property occurs on a tSpan or textPath element, sBaselineTable indicates that the dominant baseline and the baseline table components remain the same as those of the parent text content element. (If the computed IHTMLStyle7::baselineShift value actually shifts the baseline, the baseline table font-size component is set to the value of the IHTMLStyle::fontSize property on the element on which the IHTMLStyle7::dominantBaseline property occurs. Otherwise, the baseline table font-size remains the same as that of the element. If there is no parent text content element, the scaled-baseline table value is constructed as shown previously for text elements.)use-script The dominant baseline and the baseline table components are set by determining the predominant script of the character data content. The IHTMLStyle3::writingMode, whether horizontal or vertical, is used to select the appropriate set of baseline tables and the dominant baseline is used to select the baseline table that corresponds to that baseline. The baseline table font-size component is set to the value of the IHTMLStyle::fontSize property on the element on which the IHTMLStyle7::dominantBaseline property occurs. no-change The dominant baseline, the baseline table, and the baseline table font-size remain the same as that of the parent text content element. reset-size The dominant baseline and the baseline table remain the same, but the baseline table font-size is changed to the value of the IHTMLStyle::fontSize property on this element. This rescales the baseline table for the current IHTMLStyle::fontSize. ideographic The baseline identifier for the dominant baseline is set to be 'ideographic,' the derived baseline table is constructed using the 'ideographic' baseline table in the nominal font, and the baseline table font-size is changed to the value of the IHTMLStyle::fontSize property on this element. alphabetic The baseline identifier for the dominant baseline is set to be 'alphabetic,' the derived baseline table is constructed using the 'alphabetic' baseline table in the nominal font, and the baseline table font-size is changed to the value of the IHTMLStyle::fontSize property on this element. hanging The baseline identifier for the dominant baseline is set to be 'hanging,' the derived baseline table is constructed using the 'hanging' baseline table in the nominal font, and the baseline table font-size is changed to the value of the IHTMLStyle::fontSize property on this element. mathematical The baseline identifier for the dominant baseline is set to be 'mathematical,' the derived baseline table is constructed using the 'mathematical' baseline table in the nominal font, and the baseline table font-size is changed to the value of the IHTMLStyle::fontSize property on this element. central The baseline identifier for the dominant baseline is set to be 'central.' The derived baseline table is constructed from the defined baselines in a baseline table in the nominal font. That font baseline table is chosen using the following priority order of baseline table names: 'ideographic,' 'alphabetic,' 'hanging,' 'mathematical.' The baseline table font-size is changed to the value of the IHTMLStyle::fontSize property on this element. middle The baseline identifier for the dominant baseline is set to be 'middle.. The derived baseline table is constructed from the defined baselines in a baseline table in the nominal font. That font baseline table is chosen using the following priority order of baseline table names: 'alphabetic,' 'ideographic,' 'hanging,' 'mathematica.l. The baseline table font-size is changed to the value of the IHTMLStyle::fontSize property on this element. text-after-edge The baseline identifier for the dominant baseline is set to be 'text-after-edge.' The derived baseline table is constructed from the defined baselines in a baseline table in the nominal font. The baseline table font-size is changed to the value of the IHTMLStyle::fontSize property on this element. text-before-edge The baseline identifier for the dominant baseline is set to be 'text-before-edge.' The derived baseline table is constructed from the defined baselines in a baseline table in the nominal font. The baseline table font-size is changed to the value of the IHTMLStyle::fontSize property on this element. 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
A scaled-baseline-table is a compound value that has three components: a baseline identifier for the dominant baseline, a baseline table, and a baseline table font-size. Some values of the property redetermine all three values; others only re-establish the baseline table font-size. When the default value, auto, gives an undesired result, this property can be used to explicitly set the desire scaled-baseline table.
See Also