IVsUIShell2.CreateGradient Method

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

Namespace:  Microsoft.VisualStudio.Shell.Interop
Assembly:  Microsoft.VisualStudio.Shell.Interop.8.0 (in Microsoft.VisualStudio.Shell.Interop.8.0.dll)

Syntax

‘선언
Function CreateGradient ( _
    GRADIENTTYPE As UInteger, _
    <OutAttribute> ByRef pGradient As IVsGradient _
) As Integer
‘사용 방법
Dim instance As IVsUIShell2
Dim GRADIENTTYPE As UInteger
Dim pGradient As IVsGradient
Dim returnValue As Integer

returnValue = instance.CreateGradient(GRADIENTTYPE, _
    pGradient)
int CreateGradient(
    uint GRADIENTTYPE,
    out IVsGradient pGradient
)
int CreateGradient(
    [InAttribute] unsigned int GRADIENTTYPE, 
    [OutAttribute] IVsGradient^% pGradient
)
abstract CreateGradient : 
        GRADIENTTYPE:uint32 * 
        pGradient:IVsGradient byref -> int 
function CreateGradient(
    GRADIENTTYPE : uint, 
    pGradient : IVsGradient
) : int

Parameters

Return Value

Type: System.Int32
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.

.NET Framework Security

See Also

Reference

IVsUIShell2 Interface

IVsUIShell2 Members

Microsoft.VisualStudio.Shell.Interop Namespace