Creating a Gradient Brush

The following sample code represents the handler that creates linear gradient brush.

Please note that the given code snippet shows the initial declarations of some objects using their full namespace. In subsequent use of those and related objects, the namespace is omitted for brevity.

      Visual Basic

      C#

The following image shows the linear gradient brush:

 


Send us comments about this topic.
Copyright © GrapeCity, inc. All rights reserved.