ID2D1SvgElement::SetAttributeValue(PCWSTR,ID2D1SvgAttribute*) method (d2d1svg.h)

Sets an attribute of this element using an interface.

A given attribute object may only be set on one element in one attribute location at a time.

Syntax

HRESULT SetAttributeValue(
  [in] PCWSTR            name,
  [in] ID2D1SvgAttribute *value
);

Parameters

[in] name

Type: PCWSTR

Name of the attribute to set.

[in] value

Type: ID2D1SvgAttribute*

The new value of the attribute.

Return value

Type: HRESULT

This method returns an HRESULT success or error code. 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 interface type. Returns an error if the attribute object is already set on an element.

Requirements

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

See also

ID2D1SvgElement