# GrapeCity.Drawing.GradientBrush

## Content

<div class="doc-site-dotnet-api-container">



  <h1 id="GrapeCity_Drawing_GradientBrush" data-uid="GrapeCity.Drawing.GradientBrush" class="text-break">GradientBrush Class
</h1>
  <div class="markdown level0 summary"><p>Represents a gradient composed of gradient stops.</p>
</div>
  <div class="markdown level0 conceptual"></div>
  <div class="inheritance">
    <h5>Inheritance</h5>
    <div class="level0"><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.object">object</a></div>
    <div class="level1"><a class="xref" href="GrapeCity.Drawing.Brush.html">Brush</a></div>
    <div class="level2"><span class="xref">GradientBrush</span></div>
  </div>
  <div class="implements">
    <h5>Implements</h5>
    <div><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.iequatable-1">IEquatable</a>&lt;<a class="xref" href="GrapeCity.Drawing.Brush.html">Brush</a>&gt;</div>
  </div>
  <h6><strong>Namespace</strong>: <a class="xref" href="GrapeCity.Drawing.html">GrapeCity.Drawing</a></h6>
  <h6><strong>Assembly</strong>: GrapeCity.Spreadsheet.dll</h6>
  <h5 id="GrapeCity_Drawing_GradientBrush_syntax">Syntax</h5>
  <div class="codewrapper">
    <pre><code class="lang-csharp hljs">public sealed class GradientBrush : Brush, IEquatable&lt;Brush&gt;</code></pre>
  </div>
  <div class="codewrapper">
    <pre><code class="lang-vbnet hljs">Public NotInheritable Class GradientBrush
    Inherits Brush
    Implements IEquatable(Of Brush)</code></pre>
  </div>
  <h3 id="properties">Properties
</h3>
  <table class="table table-bordered table-condensed">
    <thead>
      <tr>
        <th>Name</th>
        <th>Description</th>
      </tr>
    </thead>
    <tbody>
      <tr>
        <td id="GrapeCity_Drawing_GradientBrush_Angle" data-uid="GrapeCity.Drawing.GradientBrush.Angle">
          <a class="xref" href="GrapeCity.Drawing.GradientBrush.Angle.html#GrapeCity_Drawing_GradientBrush_Angle">Angle</a>
        </td>
        <td class="markdown level1 summary"><p>Gets the angle of this <a class="xref" href="GrapeCity.Drawing.GradientBrush.html">GradientBrush</a>.</p>
</td>
      </tr>
      <tr>
        <td id="GrapeCity_Drawing_GradientBrush_FillToRect" data-uid="GrapeCity.Drawing.GradientBrush.FillToRect">
          <a class="xref" href="GrapeCity.Drawing.GradientBrush.FillToRect.html#GrapeCity_Drawing_GradientBrush_FillToRect">FillToRect</a>
        </td>
        <td class="markdown level1 summary"><p>Returns a rectangle that guides gradient brush through drawing.</p>
</td>
      </tr>
      <tr>
        <td id="GrapeCity_Drawing_GradientBrush_GradientColorType" data-uid="GrapeCity.Drawing.GradientBrush.GradientColorType">
          <a class="xref" href="GrapeCity.Drawing.GradientBrush.GradientColorType.html#GrapeCity_Drawing_GradientBrush_GradientColorType">GradientColorType</a>
        </td>
        <td class="markdown level1 summary"><p>Returns specifies the type of gradient used in a shape's fill.</p>
</td>
      </tr>
      <tr>
        <td id="GrapeCity_Drawing_GradientBrush_GradientStops" data-uid="GrapeCity.Drawing.GradientBrush.GradientStops">
          <a class="xref" href="GrapeCity.Drawing.GradientBrush.GradientStops.html#GrapeCity_Drawing_GradientBrush_GradientStops">GradientStops</a>
        </td>
        <td class="markdown level1 summary"><p>Get the an array of gradient stops.</p>
</td>
      </tr>
      <tr>
        <td id="GrapeCity_Drawing_GradientBrush_GradientStyle" data-uid="GrapeCity.Drawing.GradientBrush.GradientStyle">
          <a class="xref" href="GrapeCity.Drawing.GradientBrush.GradientStyle.html#GrapeCity_Drawing_GradientBrush_GradientStyle">GradientStyle</a>
        </td>
        <td class="markdown level1 summary"><p>Get gradient style from this brush.</p>
</td>
      </tr>
      <tr>
        <td id="GrapeCity_Drawing_GradientBrush_PathShadeType" data-uid="GrapeCity.Drawing.GradientBrush.PathShadeType">
          <a class="xref" href="GrapeCity.Drawing.GradientBrush.PathShadeType.html#GrapeCity_Drawing_GradientBrush_PathShadeType">PathShadeType</a>
        </td>
        <td class="markdown level1 summary"><p>Defines the PathShadeTypeValues enumeration.</p>
</td>
      </tr>
      <tr>
        <td id="GrapeCity_Drawing_GradientBrush_PresetGradientType" data-uid="GrapeCity.Drawing.GradientBrush.PresetGradientType">
          <a class="xref" href="GrapeCity.Drawing.GradientBrush.PresetGradientType.html#GrapeCity_Drawing_GradientBrush_PresetGradientType">PresetGradientType</a>
        </td>
        <td class="markdown level1 summary"><p>Returns specifies the PresetGradientType type of gradient used in a shape's fill.</p>
</td>
      </tr>
      <tr>
        <td id="GrapeCity_Drawing_GradientBrush_Scaled" data-uid="GrapeCity.Drawing.GradientBrush.Scaled">
          <a class="xref" href="GrapeCity.Drawing.GradientBrush.Scaled.html#GrapeCity_Drawing_GradientBrush_Scaled">Scaled</a>
        </td>
        <td class="markdown level1 summary"><p>Gets a value indicating whether this <a class="xref" href="GrapeCity.Drawing.GradientBrush.html">GradientBrush</a> is scaled.</p>
</td>
      </tr>
      <tr>
        <td id="GrapeCity_Drawing_GradientBrush_TileFlipMode" data-uid="GrapeCity.Drawing.GradientBrush.TileFlipMode">
          <a class="xref" href="GrapeCity.Drawing.GradientBrush.TileFlipMode.html#GrapeCity_Drawing_GradientBrush_TileFlipMode">TileFlipMode</a>
        </td>
        <td class="markdown level1 summary"><p>Returns the Tile Flip Mode of gradient brush.</p>
</td>
      </tr>
      <tr>
        <td id="GrapeCity_Drawing_GradientBrush_TileRect" data-uid="GrapeCity.Drawing.GradientBrush.TileRect">
          <a class="xref" href="GrapeCity.Drawing.GradientBrush.TileRect.html#GrapeCity_Drawing_GradientBrush_TileRect">TileRect</a>
        </td>
        <td class="markdown level1 summary"><p>Returns the Tile Rectangle of gradient brush.</p>
</td>
      </tr>
      <tr>
        <td id="GrapeCity_Drawing_GradientBrush_Transparency" data-uid="GrapeCity.Drawing.GradientBrush.Transparency">
          <a class="xref" href="GrapeCity.Drawing.GradientBrush.Transparency.html#GrapeCity_Drawing_GradientBrush_Transparency">Transparency</a>
        </td>
        <td class="markdown level1 summary"><p>Returns or sets the degree of transparency of the specified brush as a value from 0.0 (opaque) through 1.0 (clear).</p>
</td>
      </tr>
      <tr>
        <td id="GrapeCity_Drawing_GradientBrush_Variant" data-uid="GrapeCity.Drawing.GradientBrush.Variant">
          <a class="xref" href="GrapeCity.Drawing.GradientBrush.Variant.html#GrapeCity_Drawing_GradientBrush_Variant">Variant</a>
        </td>
        <td class="markdown level1 summary"><p>Get gradient variant from this brush.</p>
</td>
      </tr>
    </tbody>
  </table>
  <h3 id="methods">Methods
</h3>
  <table class="table table-bordered table-condensed">
    <thead>
      <tr>
        <th>Name</th>
        <th>Description</th>
      </tr>
    </thead>
    <tbody>
      <tr>
        <td id="GrapeCity_Drawing_GradientBrush_ApplyColorTransform_GrapeCity_Core_ColorTransform_" data-uid="GrapeCity.Drawing.GradientBrush.ApplyColorTransform(GrapeCity.Core.ColorTransform)">
          <a class="xref" href="GrapeCity.Drawing.GradientBrush.ApplyColorTransform.html#GrapeCity_Drawing_GradientBrush_ApplyColorTransform_GrapeCity_Core_ColorTransform_">ApplyColorTransform(ColorTransform)</a>
        </td>
        <td class="markdown level1 summary"><p>Creates new brush from the current brush with the specified <a class="xref" href="GrapeCity.Core.ColorTransform.html">ColorTransform</a> effect.</p>
</td>
      </tr>
      <tr>
        <td id="GrapeCity_Drawing_GradientBrush_ApplyTransparent_System_Double_System_Double_" data-uid="GrapeCity.Drawing.GradientBrush.ApplyTransparent(System.Double,System.Double)">
          <a class="xref" href="GrapeCity.Drawing.GradientBrush.ApplyTransparent.html#GrapeCity_Drawing_GradientBrush_ApplyTransparent_System_Double_System_Double_">ApplyTransparent(double, double)</a>
        </td>
        <td class="markdown level1 summary"><p>Applies transparent for gradient stops.</p>
</td>
      </tr>
      <tr>
        <td id="GrapeCity_Drawing_GradientBrush_Clone" data-uid="GrapeCity.Drawing.GradientBrush.Clone">
          <a class="xref" href="GrapeCity.Drawing.GradientBrush.Clone.html#GrapeCity_Drawing_GradientBrush_Clone">Clone()</a>
        </td>
        <td class="markdown level1 summary"><p>Creates a new <a class="xref" href="GrapeCity.Drawing.Brush.html">Brush</a> instance with the same value as an existing brush.</p>
</td>
      </tr>
      <tr>
        <td id="GrapeCity_Drawing_GradientBrush_Equals_GrapeCity_Drawing_Brush_" data-uid="GrapeCity.Drawing.GradientBrush.Equals(GrapeCity.Drawing.Brush)">
          <a class="xref" href="GrapeCity.Drawing.GradientBrush.Equals.html#GrapeCity_Drawing_GradientBrush_Equals_GrapeCity_Drawing_Brush_">Equals(Brush)</a>
        </td>
        <td class="markdown level1 summary"><p>Indicates whether the current object is equal to another object of the same type.</p>
</td>
      </tr>
      <tr>
        <td id="GrapeCity_Drawing_GradientBrush_GetColor" data-uid="GrapeCity.Drawing.GradientBrush.GetColor">
          <a class="xref" href="GrapeCity.Drawing.GradientBrush.GetColor.html#GrapeCity_Drawing_GradientBrush_GetColor">GetColor()</a>
        </td>
        <td class="markdown level1 summary"><p>Gets the solid color from this brush.</p>
</td>
      </tr>
    </tbody>
  </table>

</div>
