SetGradientData Method (IHatchPattern)

SetGradientData Method (IHatchPattern) | Send Feedback
See Also

Color1
  Color; valid for both one- or two-color fills

Color2
  Color; only valid for two-color fills

IsCentered
  True if color fill is symmetric within the boundaries, false if not

GradientAngle
  Angle of color gradation between 0 and 360°; specify using 15° increments

Sets the specified color fill gradient.

# Syntax

Visual Basic |
--- | ---
    Sub SetGradientData( _
       ByVal Color1 As Color, _
       ByVal Color2 As Color, _
       ByVal IsCentered As System.Boolean, _
       ByVal GradientAngle As System.Double _
    )

C# |
--- | ---
    void SetGradientData(
       Color Color1,
       Color Color2,
       System.bool IsCentered,
       System.double GradientAngle
    )

JavaScript |
--- | ---
    SetGradientData(
       Color1 : dsColor,
       Color2 : dsColor,
       IsCentered : Boolean,
       GradientAngle : Number
    )

COM native C++ |
--- | ---
    HRESULT SetGradientData(
       IColor* Color1,
       IColor* Color2,
       VARIANT_BOOL IsCentered,
       DOUBLE GradientAngle
    )

C++ |
--- | ---
    DSRESULT SetGradientData(
       dsColor* Color1,
       dsColor* Color2,
       bool IsCentered,
       double GradientAngle
    )

#### Parameters

Color1
  Color; valid for both one- or two-color fills
Color2
  Color; only valid for two-color fills
IsCentered
  True if color fill is symmetric within the boundaries, false if not
GradientAngle
  Angle of color gradation between 0 and 360°; specify using 15° increments

# Remarks

This method is valid only when IHatchPattern:GetFillType is dsHatchFillType_e.dsHatchFillType_Gradient.

# See Also

####

IHatchPattern Interface
IHatchPattern Members
IHatchPattern::GetGradientData Method
IHatchPattern::GetGradientStyle Method ()
IHatchPattern::SetGradientStyle Method ()

# Availability

DraftSight V1R1.3