Skip to content

GradientHorizontal Property

Description

The GradientHorizontal property is used to specify the direction of the color gradient in the Shortcut Caption.

Property Type

Read-write property

Syntax (Visual Basic)

Public Property GradientHorizontal() As Boolean

Remarks

Top to Bottom Color Gradient

Top to Bottom Color Gradient

Left to Right Color Gradient

Left to Right Color Gradient

Example

This sample illustrates how to change the gradient direction and color of a Shortcut Caption control.

' Set the Dark color in the Shortcut Caption to Blue  
captionTitle.GradientColorDark = vbBlue  

' Set the Light color in the Shortcut Caption to Black  
captionTitle.GradientColorLight = vbBlack  

' Shortcut Caption will be filled with a color gradient from GradientColorLight  
' to GradientColorDark.  
' If GradientHorizontal is TRUE, the gradient is from Top to Bottom; if FALSE,  
' then the gradient is from Left to Right.  
captionTitle.GradientHorizontal = True

See Also


Copyright (c) 1998-2024 Codejock Technologies. All rights reserved.