Freigeben über


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.

 

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
Media visual
Inherited no
Initial Value baseline

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

Minimum supported server

Windows Server 2008 R2

Header

Mshtml.h

IDL

Mshtml.idl

DLL

Mshtml.dll

See also

IHTMLCSSStyleDeclaration::dominantBaseline