Compartilhar via


ISVGTextContentElement interface

Provides attributes for text-related interfaces.

Members

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

  • Methods
  • Properties

Methods

The ISVGTextContentElement interface has these methods.

Method Description
ISVGTextContentElement::getCharNumAtPosition

Gets the index of the character that the glyph cell bounding box contains at the specified point.

ISVGTextContentElement::getComputedTextLength

Returns the total sum of all advance values from rendering all characters within the given text element.

ISVGTextContentElement::getEndPositionOfChar

Gets the current text position of the specified character after the character is rendered in the user coordinate system where the glyphs that correspond to the specified character are rendered.

ISVGTextContentElement::getExtentOfChar

Gets a rectangle that defines the minimum and maximum x-coordinate and y-coordinate values in the user coordinate system where the glyphs that correspond to the specified character are rendered.

ISVGTextContentElement::getNumberOfChars

Gets the total number of characters that are available for rendering within the current element.

ISVGTextContentElement::getRotationOfChar

Gets the rotation value of the specified character, relative to the current user coordinate system where the glyphs that corresponding to the specified character are rendered.

ISVGTextContentElement::getStartPositionOfChar

Gets the current text position of the specified character before the character is rendered in the user coordinate system where the glyphs that correspond to the specified character are rendered.

ISVGTextContentElement::getSubStringLength

Calculates the total sum of all advance values from rendering the specified substring of the characters.

ISVGTextContentElement::selectSubString

Selects the specified substring, just as if a user selected the substring interactively.

 

Properties

The ISVGTextContentElement interface has these properties.

Property Access type Description

ISVGTextContentElement::lengthAdjust

Read/write

Gets or sets the ISVGTextContentElement::lengthAdjust attribute on the given element.

ISVGTextContentElement::textLength

Read/write

Gets or sets the ISVGTextContentElement::textLength attribute on the given element.

 

Remarks

The ISVGTextContentElement interface is inherited by various text-related interfaces, such as SVGTextElement, ISVGTSpanElement, and ISVGTextPathElement.

For the ISVGTextContentElement methods that refer to an index to a character or a number of characters, you can interpret these references as an index to a UTF-16 code unit or a number of UTF-16 code units, respectively. This interpretation is for consistency with the DOM Level 2 Core specification, where methods in the CharacterData interface use UTF-16 code units as indexes and counts within the character data. For example, if the text content of a text element is a single non-BMP character, such as U+10000, a call to ISVGTextContentElement::getNumberOfChars on that element returns 2 because there are two UTF-16 code units (the surrogate pair) that represent that one character.

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