Freigeben über


ISVGLength interface

Defines the length data type.

Members

The ISVGLength interface inherits from the IDispatch interface. ISVGLength also has these types of members:

  • Methods
  • Properties

Methods

The ISVGLength interface has these methods.

Method Description
ISVGLength::convertToSpecifiedUnits

Changes the stored unit identifier to the specified type.

ISVGLength::newValueSpecifiedUnits

Resets the specified value as a number with the specified unit type, replacing the values for all of the attributes on the object.

 

Properties

The ISVGLength interface has these properties.

Property Access type Description

ISVGLength::unitType

Read/write

Gets or sets a value that indicates the type of length units.

ISVGLength::valueAsString

Read/write

Gets or sets the string form of the ISVGNumber::value property, in the units that svgUnitTypes specifies.

ISVGLength::valueInSpecifiedUnits

Read/write

Gets or sets the length or angle value, as a floating point number, in the units that svgUnitTypes specifies.

ISVGNumber::value

Read/write

Gets or sets the value of the given attribute.

 

Remarks

A length represents a unit of measurement, which is used to define distance. Length values are specified as a number along with a unit of measurement.

Lengths are specified in one of two ways:

  • When lengths are used in a style sheet, the values are specified as ~"em", ~"ex", ~"px", ~"in", ~"cm", ~"mm", ~"pt", or ~"pc".
  • When lengths are used in an SVG attribute, the values are specified as "em", "ex", "px", "in", "cm", "mm", "pt", "pc", or "%".

You must specify unit identifiers by using lowercase letters.

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

IDispatch