# C1.Document.C1GradientBrush

## Content

<div class="doc-site-dotnet-api-container">



  <h1 id="C1_Document_C1GradientBrush" data-uid="C1.Document.C1GradientBrush" class="text-break">C1GradientBrush Class
</h1>
  <div class="markdown level0 summary"><p>Abstract base class for various gradient brushes.</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="C1.Document.VisualPrimitive.html">VisualPrimitive</a></div>
    <div class="level2"><a class="xref" href="C1.Document.C1Brush.html">C1Brush</a></div>
    <div class="level3"><span class="xref">C1GradientBrush</span></div>
      <div class="level4"><a class="xref" href="C1.Document.C1LinearBrush.html">C1LinearBrush</a></div>
      <div class="level4"><a class="xref" href="C1.Document.C1RadialBrush.html">C1RadialBrush</a></div>
  </div>
  <div class="implements">
    <h5>Implements</h5>
    <div><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.componentmodel.inotifypropertychanged">INotifyPropertyChanged</a></div>
    <div><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.icloneable">ICloneable</a></div>
  </div>
  <h6><strong>Namespace</strong>: <a class="xref" href="C1.Document.html">C1.Document</a></h6>
  <h6><strong>Assembly</strong>: C1.Document.dll</h6>
  <h5 id="C1_Document_C1GradientBrush_syntax">Syntax</h5>
  <div class="codewrapper">
    <pre><code class="lang-csharp hljs">public abstract class C1GradientBrush : C1Brush, INotifyPropertyChanged, ICloneable</code></pre>
  </div>
  <div class="codewrapper">
    <pre><code class="lang-vbnet hljs">Public MustInherit Class C1GradientBrush
    Inherits C1Brush
    Implements INotifyPropertyChanged, ICloneable</code></pre>
  </div>
  <h3 id="constructors">Constructors
</h3>
  <table class="table table-bordered table-condensed">
    <thead>
      <tr>
        <th>Name</th>
        <th>Description</th>
      </tr>
    </thead>
    <tbody>
      <tr>
        <td id="C1_Document_C1GradientBrush__ctor" data-uid="C1.Document.C1GradientBrush.#ctor">
          <a class="xref" href="C1.Document.C1GradientBrush.-ctor.html#C1_Document_C1GradientBrush__ctor">C1GradientBrush()</a>
        </td>
        <td class="markdown level1 summary"><p>Creates a new instance of the <a class="xref" href="C1.Document.C1GradientBrush.html">C1GradientBrush</a> class.</p>
</td>
      </tr>
    </tbody>
  </table>
  <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="C1_Document_C1GradientBrush_Color1" data-uid="C1.Document.C1GradientBrush.Color1">
          <a class="xref" href="C1.Document.C1GradientBrush.Color1.html#C1_Document_C1GradientBrush_Color1">Color1</a>
        </td>
        <td class="markdown level1 summary"><p>Gets the first color of the gradient.
Note that setting this property automatically changes the <a class="xref" href="C1.Document.C1GradientBrush.GradientStops.html#C1_Document_C1GradientBrush_GradientStops">GradientStops</a> collection
(the color of the first gradient stop will be changed).</p>
</td>
      </tr>
      <tr>
        <td id="C1_Document_C1GradientBrush_Color2" data-uid="C1.Document.C1GradientBrush.Color2">
          <a class="xref" href="C1.Document.C1GradientBrush.Color2.html#C1_Document_C1GradientBrush_Color2">Color2</a>
        </td>
        <td class="markdown level1 summary"><p>Gets the last color of the gradient.
Note that settings this property automatically changes the <a class="xref" href="C1.Document.C1GradientBrush.GradientStops.html#C1_Document_C1GradientBrush_GradientStops">GradientStops</a> collection
(the color of the last gradient stop will be changed).</p>
</td>
      </tr>
      <tr>
        <td id="C1_Document_C1GradientBrush_GradientStops" data-uid="C1.Document.C1GradientBrush.GradientStops">
          <a class="xref" href="C1.Document.C1GradientBrush.GradientStops.html#C1_Document_C1GradientBrush_GradientStops">GradientStops</a>
        </td>
        <td class="markdown level1 summary"><p>Gets the brush's gradient stops.</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="C1_Document_C1GradientBrush_AssignFrom_C1_Document_VisualPrimitive_" data-uid="C1.Document.C1GradientBrush.AssignFrom(C1.Document.VisualPrimitive)">
          <a class="xref" href="C1.Document.C1GradientBrush.AssignFrom.html#C1_Document_C1GradientBrush_AssignFrom_C1_Document_VisualPrimitive_">AssignFrom(VisualPrimitive)</a>
        </td>
        <td class="markdown level1 summary"><p>Assigns (copies) properties from another <a class="xref" href="C1.Document.VisualPrimitive.html">VisualPrimitive</a> to the current object.</p>
</td>
      </tr>
      <tr>
        <td id="C1_Document_C1GradientBrush_Compare_C1_Document_VisualPrimitive_" data-uid="C1.Document.C1GradientBrush.Compare(C1.Document.VisualPrimitive)">
          <a class="xref" href="C1.Document.C1GradientBrush.Compare.html#C1_Document_C1GradientBrush_Compare_C1_Document_VisualPrimitive_">Compare(VisualPrimitive)</a>
        </td>
        <td class="markdown level1 summary"><p>Compares this <a class="xref" href="C1.Document.VisualPrimitive.html">VisualPrimitive</a> object with another <a class="xref" href="C1.Document.VisualPrimitive.html">VisualPrimitive</a> object
returns <b>true</b> if objects represent same object.</p>
</td>
      </tr>
      <tr>
        <td id="C1_Document_C1GradientBrush_GetHashCodeInt" data-uid="C1.Document.C1GradientBrush.GetHashCodeInt">
          <a class="xref" href="C1.Document.C1GradientBrush.GetHashCodeInt.html#C1_Document_C1GradientBrush_GetHashCodeInt">GetHashCodeInt()</a>
        </td>
        <td class="markdown level1 summary"><p>For internal use.</p>
</td>
      </tr>
    </tbody>
  </table>

</div>
