top
Expand Minimize

baselineShift property

Sets or retrieves a value that indicates how the dominant baseline should be repositioned relative to the dominant baseline of the parent text content element.

Scalable Vector Graphics: Text, Section 10.9.2Internet Explorer 9

 

Syntax

HRESULT value = object.put_baselineShift( v);HRESULT value = object.get_baselineShift(* p);

Property values

Type: VARIANT

One of the values in the Property Values section.

String format

baseline | sub | super | <percentage> | <length>

CSS information

Applies To‘tspan’, ‘tref’, ‘altGlyph’, ‘textPath’ elements
Mediavisual
Inheritedno
Initial Valuebaseline

Standards information

Remarks

The IHTMLCSSStyleDeclaration::baselineShift property allows repositioning of the dominant baseline relative to the dominant baseline of the parent text content element. The shifted object might be a subscript or superscript. Within the shifted object, the whole baseline table is offset; not just a single baseline. The amount of the shift is determined by one of the following:

  • the parent text content element
  • the subscript or superscript offset from the nominal font of the parent text content element
  • the percent of the line-height of the parent text content element
  • an absolute value.

Requirements

Minimum supported client

Windows Vista with SP1, Windows 7 [desktop apps only]

Minimum supported server

Windows Server 2008 R2 [desktop apps only]

Header

Mshtml.h

IDL

Mshtml.idl

DLL

Mshtml.dll

See also

IHTMLCSSStyleDeclaration::dominantBaseline

 

 

Community Additions

ADD
Show:
© 2014 Microsoft