IVsUIShell2::CreateGradient Method (UInt32, IVsGradient^)
Visual Studio 2015
Returns an IVsGradient object on which to draw a gradient of a specified type.
Assembly: Microsoft.VisualStudio.Shell.Interop.8.0 (in Microsoft.VisualStudio.Shell.Interop.8.0.dll)
Parameters
- GRADIENTTYPE
-
Type:
System::UInt32
[in] The type of gradient to be painted, specified by a value from the __GRADIENTTYPE enumeration.
- pGradient
-
Type:
Microsoft.VisualStudio.Shell.Interop::IVsGradient^
[out] An IVsGradient object whose member functions can draw the specified gradient type.
Return Value
Type: System::Int32If the method succeeds, it returns S_OK. If it fails, it returns an error code.
From vsshell80.idl:
HRESULT IVsUIShell2::CreateGradient(
[in] GRADIENTTYPE gradientType,
[out] IVsGradient ** pGradient
);
Unmanaged VSPackages are responsible for releasing the IVsGradient Interface.
For a full discussion on best practices for choosing the correct types of gradients when designing a user interface see The Visual Studio UI Guidelines document.
Show: