ID2D1SvgElement::SetAttributeValue(PCWSTR,D2D1_SVG_ATTRIBUTE_STRING_TYPE,PCWSTR) method (d2d1svg.h)
Sets an attribute of this element using a string.
Syntax
HRESULT SetAttributeValue(
[in] PCWSTR name,
D2D1_SVG_ATTRIBUTE_STRING_TYPE type,
[in] PCWSTR value
);
Parameters
[in] name
Type: PCWSTR
Name of the attribute to set.
type
Type: D2D1_SVG_ATTRIBUTE_STRING_TYPE
The type of the string.
[in] value
Type: PCWSTR
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 type.
Requirements
Requirement | Value |
---|---|
Target Platform | Windows |
Header | d2d1svg.h |
DLL | Direct2d.dll |
See also
Feedback
https://aka.ms/ContentUserFeedback.
Coming soon: Throughout 2024 we will be phasing out GitHub Issues as the feedback mechanism for content and replacing it with a new feedback system. For more information see:Submit and view feedback for