IVsUIShell2.CreateGradient(UInt32, IVsGradient) Method

Definition

Returns an IVsGradient object on which to draw a gradient of a specified type.

public:
 int CreateGradient(System::UInt32 GRADIENTTYPE, [Runtime::InteropServices::Out] Microsoft::VisualStudio::Shell::Interop::IVsGradient ^ % pGradient);
public:
 int CreateGradient(unsigned int GRADIENTTYPE, [Runtime::InteropServices::Out] Microsoft::VisualStudio::Shell::Interop::IVsGradient ^ &  pGradient);
int CreateGradient(unsigned int GRADIENTTYPE, [Runtime::InteropServices::Out] Microsoft::VisualStudio::Shell::Interop::IVsGradient const & & pGradient);
public int CreateGradient (uint GRADIENTTYPE, out Microsoft.VisualStudio.Shell.Interop.IVsGradient pGradient);
abstract member CreateGradient : uint32 * IVsGradient -> int
Public Function CreateGradient (GRADIENTTYPE As UInteger, ByRef pGradient As IVsGradient) As Integer

Parameters

GRADIENTTYPE
UInt32

[in] The type of gradient to be painted, specified by a value from the __GRADIENTTYPE enumeration.

pGradient
IVsGradient

[out] An IVsGradient object whose member functions can draw the specified gradient type.

Returns

If the method succeeds, it returns S_OK. If it fails, it returns an error code.

Remarks

COM Signature

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.

Applies to