ID2D1Properties::SetValue(U, const T&) method

Sets the corresponding property by index. This is a template overload. See Remarks.

Syntax


HRESULT SetValue(
                  U index,
  [in, ref] const T &value
);

Parameters

index

The index of the property to set.

value [in, ref]

The data to set.

Return value

The method returns an HRESULT. Possible values include, but are not limited to, those in the following table.

HRESULTDescription
S_OKNo error occurred.
D2DERR_INVALID_PROPERTYThe specified property does not exist.
E_OUTOFMEMORYFailed to allocate necessary memory.
D3DERR_OUT_OF_VIDEO_MEMORYFailed to allocate required video memory.
E_INVALIDARGOne or more arguments are invalid.
E_FAILUnspecified failure.

 

Remarks


    template<typename T, typename U>
    HRESULT SetValue(
        U index,
        _In_ const T &value
        );

Requirements

Minimum supported client

Windows 8 and Platform Update for Windows 7 [desktop apps | UWP apps]

Minimum supported server

Windows Server 2012 and Platform Update for Windows Server 2008 R2 [desktop apps | UWP apps]

Minimum supported phone

Windows Phone 8.1 [Windows Phone Silverlight 8.1 and Windows Runtime apps]

Header

D2d1_1.h

Library

D2d1.lib

DLL

D2d1.dll

See also

ID2D1Properties
ID2D1DeviceContext::CreateEffect
D2D1_PROPERTY
D2D1_SUBPROPERTY

 

 

Show: