ID2D1SvgElement::GetAttributeValueLength method (d2d1svg.h)

Gets the string length of an attribute of this element.

Syntax

HRESULT GetAttributeValueLength(
  [in]  PCWSTR                         name,
        D2D1_SVG_ATTRIBUTE_STRING_TYPE type,
  [out] UINT32                         *valueLength
);

Parameters

[in] name

Type: PCWSTR

The name of the attribute.

type

Type: D2D1_SVG_ATTRIBUTE_STRING_TYPE

The string type of the attribute.

[out] valueLength

Type: UINT32*

The length of the attribute. The returned string length does not include room for the null terminator.

Return value

Type: HRESULT

This method returns an HRESULT success or error code. Returns an error if the attribute is not specified. Returns an error if the attribute name is not valid on this element. Returns an error if the attribute cannot be expressed as the specified string type.

Requirements

Requirement Value
Target Platform Windows
Header d2d1svg.h
DLL Direct2d.dll

See also

ID2D1SvgElement