ID2D1SvgElement::SetAttributeValue(PCWSTR,D2D1_SVG_ATTRIBUTE_POD_TYPE,constvoid*,UINT32) method (d2d1svg.h)

Sets an attribute of this element using a POD type.

Syntax

HRESULT SetAttributeValue(
  [in] PCWSTR                      name,
       D2D1_SVG_ATTRIBUTE_POD_TYPE type,
  [in] const void                  *value,
       UINT32                      valueSizeInBytes
);

Parameters

[in] name

Type: PCWSTR

Name of the attribute to set.

type

Type: D2D1_SVG_ATTRIBUTE_POD_TYPE

The POD type of the attribute.

[in] value

Type: const void*

The new value of the attribute.

valueSizeInBytes

Type: UINT32

The size of the new value in bytes.

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 type.

Requirements

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

See also

ID2D1SvgElement