CreateGradientBackground Method (IViewManager)

CreateGradientBackground Method (IViewManager) | Send Feedback
See Also Example

GradientBackground[out]
  Gradient background

TopColor
  Color for the top of the gradient background

MiddleColor
  Color for the middle of the gradient background

BottomColor
  Color for the bottom of the gradient background

UseTwoColors
  True to use TopColor and BottomColor and ignore MiddleColor, false to use TopColor, MiddleColor, and BottomColor

Angle
  Angle by which to rotate the gradient background

Creates a gradient background.

# Syntax

Visual Basic |
--- | ---
    Function CreateGradientBackground( _
       ByVal TopColor As Color, _
       ByVal MiddleColor As Color, _
       ByVal BottomColor As Color, _
       ByVal UseTwoColors As System.Boolean, _
       ByVal Angle As System.Double _
    ) As GradientBackground

C# |
--- | ---
    GradientBackground CreateGradientBackground(
       Color TopColor,
       Color MiddleColor,
       Color BottomColor,
       System.bool UseTwoColors,
       System.double Angle
    )

JavaScript |
--- | ---
    CreateGradientBackground(
       TopColor : dsColor,
       MiddleColor : dsColor,
       BottomColor : dsColor,
       UseTwoColors : Boolean,
       Angle : Number
    ) : dsGradientBackground

COM native C++ |
--- | ---
    HRESULT CreateGradientBackground(
       IColor* TopColor,
       IColor* MiddleColor,
       IColor* BottomColor,
       VARIANT_BOOL UseTwoColors,
       DOUBLE Angle,
       IGradientBackground** GradientBackground
    )

C++ |
--- | ---
    DSRESULT CreateGradientBackground(
       dsColor* TopColor,
       dsColor* MiddleColor,
       dsColor* BottomColor,
       bool UseTwoColors,
       double Angle,
       dsGradientBackground** GradientBackground
    )

#### Parameters

TopColor
  Color for the top of the gradient background
MiddleColor
  Color for the middle of the gradient background
BottomColor
  Color for the bottom of the gradient background
UseTwoColors
  True to use TopColor and BottomColor and ignore MiddleColor, false to use TopColor, MiddleColor, and BottomColor
Angle
  Angle by which to rotate the gradient background
GradientBackground[out] or Return Value
  Gradient background

# Example

Create Model and Sheet Views (C#)
Create Model and Sheet Views (VB.NET)
Create Model and Sheet Views (VBA)

# See Also

####

IViewManager Interface
IViewManager Members
IModelNamedView::GetGradientBackground Method ()
IModelNamedView::SetGradientBackground Method ()

# Availability

DraftSight V1R5.0