# C1.Win.Themes.ThemeGradientBackground

## Content

<div class="doc-site-dotnet-api-container">



  <h1 id="C1_Win_Themes_ThemeGradientBackground" data-uid="C1.Win.Themes.ThemeGradientBackground" class="text-break">ThemeGradientBackground Class
</h1>
  <div class="markdown level0 summary"><p>Represents the theme background with a gradient.</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.Win.Themes.ThemeBackground.html">ThemeBackground</a></div>
    <div class="level2"><span class="xref">ThemeGradientBackground</span></div>
  </div>
  <h6><strong>Namespace</strong>: <a class="xref" href="C1.Win.Themes.html">C1.Win.Themes</a></h6>
  <h6><strong>Assembly</strong>: C1.Win.Themes.4.8.dll</h6>
  <h5 id="C1_Win_Themes_ThemeGradientBackground_syntax">Syntax</h5>
  <div class="codewrapper">
    <pre><code class="lang-csharp hljs">public class ThemeGradientBackground : ThemeBackground</code></pre>
  </div>
  <div class="codewrapper">
    <pre><code class="lang-vbnet hljs">Public Class ThemeGradientBackground
    Inherits ThemeBackground</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_Win_Themes_ThemeGradientBackground__ctor" data-uid="C1.Win.Themes.ThemeGradientBackground.#ctor">
          <a class="xref" href="C1.Win.Themes.ThemeGradientBackground.-ctor.html#C1_Win_Themes_ThemeGradientBackground__ctor">ThemeGradientBackground()</a>
        </td>
        <td class="markdown level1 summary"><p>Initializes a new instance of the ThemeGradientBackground class.</p>
</td>
      </tr>
      <tr>
        <td id="C1_Win_Themes_ThemeGradientBackground__ctor_C1_Win_Themes_ThemeColorValue_C1_Win_Themes_GradientColors_C1_Win_Themes_GradientModeBase_" data-uid="C1.Win.Themes.ThemeGradientBackground.#ctor(C1.Win.Themes.ThemeColorValue,C1.Win.Themes.GradientColors,C1.Win.Themes.GradientModeBase)">
          <a class="xref" href="C1.Win.Themes.ThemeGradientBackground.-ctor.html#C1_Win_Themes_ThemeGradientBackground__ctor_C1_Win_Themes_ThemeColorValue_C1_Win_Themes_GradientColors_C1_Win_Themes_GradientModeBase_">ThemeGradientBackground(ThemeColorValue, GradientColors, GradientModeBase)</a>
        </td>
        <td class="markdown level1 summary"><p>Initializes a new instance of the ThemeGradientBackground class.</p>
</td>
      </tr>
      <tr>
        <td id="C1_Win_Themes_ThemeGradientBackground__ctor_System_Drawing_Color_C1_Win_Themes_GradientColors_C1_Win_Themes_GradientModeBase_" data-uid="C1.Win.Themes.ThemeGradientBackground.#ctor(System.Drawing.Color,C1.Win.Themes.GradientColors,C1.Win.Themes.GradientModeBase)">
          <a class="xref" href="C1.Win.Themes.ThemeGradientBackground.-ctor.html#C1_Win_Themes_ThemeGradientBackground__ctor_System_Drawing_Color_C1_Win_Themes_GradientColors_C1_Win_Themes_GradientModeBase_">ThemeGradientBackground(Color, GradientColors, GradientModeBase)</a>
        </td>
        <td class="markdown level1 summary"><p>Initializes a new instance of the ThemeGradientBackground 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_Win_Themes_ThemeGradientBackground_BackgroundType" data-uid="C1.Win.Themes.ThemeGradientBackground.BackgroundType">
          <a class="xref" href="C1.Win.Themes.ThemeGradientBackground.BackgroundType.html#C1_Win_Themes_ThemeGradientBackground_BackgroundType">BackgroundType</a>
        </td>
        <td class="markdown level1 summary"><p>Gets background type.</p>
</td>
      </tr>
      <tr>
        <td id="C1_Win_Themes_ThemeGradientBackground_Colors" data-uid="C1.Win.Themes.ThemeGradientBackground.Colors">
          <a class="xref" href="C1.Win.Themes.ThemeGradientBackground.Colors.html#C1_Win_Themes_ThemeGradientBackground_Colors">Colors</a>
        </td>
        <td class="markdown level1 summary"><p>Gets background gradient colors.</p>
</td>
      </tr>
      <tr>
        <td id="C1_Win_Themes_ThemeGradientBackground_Mode" data-uid="C1.Win.Themes.ThemeGradientBackground.Mode">
          <a class="xref" href="C1.Win.Themes.ThemeGradientBackground.Mode.html#C1_Win_Themes_ThemeGradientBackground_Mode">Mode</a>
        </td>
        <td class="markdown level1 summary"><p>Gets background gradient mode.</p>
</td>
      </tr>
      <tr>
        <td id="C1_Win_Themes_ThemeGradientBackground_SolidColor" data-uid="C1.Win.Themes.ThemeGradientBackground.SolidColor">
          <a class="xref" href="C1.Win.Themes.ThemeGradientBackground.SolidColor.html#C1_Win_Themes_ThemeGradientBackground_SolidColor">SolidColor</a>
        </td>
        <td class="markdown level1 summary"><p>Returns color that can be used instead of background.</p>
</td>
      </tr>
      <tr>
        <td id="C1_Win_Themes_ThemeGradientBackground_Valid" data-uid="C1.Win.Themes.ThemeGradientBackground.Valid">
          <a class="xref" href="C1.Win.Themes.ThemeGradientBackground.Valid.html#C1_Win_Themes_ThemeGradientBackground_Valid">Valid</a>
        </td>
        <td class="markdown level1 summary"><p>Gets whether the background is valid.</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_Win_Themes_ThemeGradientBackground_ContainsReference_C1_Win_Themes_ThemeItem_" data-uid="C1.Win.Themes.ThemeGradientBackground.ContainsReference(C1.Win.Themes.ThemeItem)">
          <a class="xref" href="C1.Win.Themes.ThemeGradientBackground.ContainsReference.html#C1_Win_Themes_ThemeGradientBackground_ContainsReference_C1_Win_Themes_ThemeItem_">ContainsReference(ThemeItem)</a>
        </td>
        <td class="markdown level1 summary"><p>For internal use.</p>
</td>
      </tr>
      <tr>
        <td id="C1_Win_Themes_ThemeGradientBackground_Equals_System_Object_" data-uid="C1.Win.Themes.ThemeGradientBackground.Equals(System.Object)">
          <a class="xref" href="C1.Win.Themes.ThemeGradientBackground.Equals.html#C1_Win_Themes_ThemeGradientBackground_Equals_System_Object_">Equals(object)</a>
        </td>
        <td class="markdown level1 summary"></td>
      </tr>
      <tr>
        <td id="C1_Win_Themes_ThemeGradientBackground_GetBrush" data-uid="C1.Win.Themes.ThemeGradientBackground.GetBrush">
          <a class="xref" href="C1.Win.Themes.ThemeGradientBackground.GetBrush.html#C1_Win_Themes_ThemeGradientBackground_GetBrush">GetBrush()</a>
        </td>
        <td class="markdown level1 summary"><p>Returns the brush for this background.</p>
</td>
      </tr>
      <tr>
        <td id="C1_Win_Themes_ThemeGradientBackground_GetDefSolidColor" data-uid="C1.Win.Themes.ThemeGradientBackground.GetDefSolidColor">
          <a class="xref" href="C1.Win.Themes.ThemeGradientBackground.GetDefSolidColor.html#C1_Win_Themes_ThemeGradientBackground_GetDefSolidColor">GetDefSolidColor()</a>
        </td>
        <td class="markdown level1 summary"><p>Returns color that can be used instead of gradient colors.</p>
</td>
      </tr>
      <tr>
        <td id="C1_Win_Themes_ThemeGradientBackground_GetHashCode" data-uid="C1.Win.Themes.ThemeGradientBackground.GetHashCode">
          <a class="xref" href="C1.Win.Themes.ThemeGradientBackground.GetHashCode.html#C1_Win_Themes_ThemeGradientBackground_GetHashCode">GetHashCode()</a>
        </td>
        <td class="markdown level1 summary"></td>
      </tr>
      <tr>
        <td id="C1_Win_Themes_ThemeGradientBackground_GetReferences_System_Collections_Generic_List_C1_Win_Themes_ThemeItem__" data-uid="C1.Win.Themes.ThemeGradientBackground.GetReferences(System.Collections.Generic.List{C1.Win.Themes.ThemeItem})">
          <a class="xref" href="C1.Win.Themes.ThemeGradientBackground.GetReferences.html#C1_Win_Themes_ThemeGradientBackground_GetReferences_System_Collections_Generic_List_C1_Win_Themes_ThemeItem__">GetReferences(List&lt;ThemeItem&gt;)</a>
        </td>
        <td class="markdown level1 summary"><p>For internal use.</p>
</td>
      </tr>
      <tr>
        <td id="C1_Win_Themes_ThemeGradientBackground_GetSolidColor" data-uid="C1.Win.Themes.ThemeGradientBackground.GetSolidColor">
          <a class="xref" href="C1.Win.Themes.ThemeGradientBackground.GetSolidColor.html#C1_Win_Themes_ThemeGradientBackground_GetSolidColor">GetSolidColor()</a>
        </td>
        <td class="markdown level1 summary"><p>Returns Color that can be used instead of background when
element does not support special background.</p>
</td>
      </tr>
      <tr>
        <td id="C1_Win_Themes_ThemeGradientBackground_IsStateEqual_System_Object_" data-uid="C1.Win.Themes.ThemeGradientBackground.IsStateEqual(System.Object)">
          <a class="xref" href="C1.Win.Themes.ThemeGradientBackground.IsStateEqual.html#C1_Win_Themes_ThemeGradientBackground_IsStateEqual_System_Object_">IsStateEqual(object)</a>
        </td>
        <td class="markdown level1 summary"><p>For internal use.</p>
</td>
      </tr>
      <tr>
        <td id="C1_Win_Themes_ThemeGradientBackground_ReplaceReference_C1_Win_Themes_ThemeItem_C1_Win_Themes_ThemeItem_" data-uid="C1.Win.Themes.ThemeGradientBackground.ReplaceReference(C1.Win.Themes.ThemeItem,C1.Win.Themes.ThemeItem)">
          <a class="xref" href="C1.Win.Themes.ThemeGradientBackground.ReplaceReference.html#C1_Win_Themes_ThemeGradientBackground_ReplaceReference_C1_Win_Themes_ThemeItem_C1_Win_Themes_ThemeItem_">ReplaceReference(ThemeItem, ThemeItem)</a>
        </td>
        <td class="markdown level1 summary"><p>For internal use.</p>
</td>
      </tr>
      <tr>
        <td id="C1_Win_Themes_ThemeGradientBackground_SerializeReadProp_C1_Win_Themes_Serialization_Serializer_System_String_System_Type_System_String_" data-uid="C1.Win.Themes.ThemeGradientBackground.SerializeReadProp(C1.Win.Themes.Serialization.Serializer,System.String,System.Type,System.String)">
          <a class="xref" href="C1.Win.Themes.ThemeGradientBackground.SerializeReadProp.html#C1_Win_Themes_ThemeGradientBackground_SerializeReadProp_C1_Win_Themes_Serialization_Serializer_System_String_System_Type_System_String_">SerializeReadProp(Serializer, string, Type, string)</a>
        </td>
        <td class="markdown level1 summary"></td>
      </tr>
      <tr>
        <td id="C1_Win_Themes_ThemeGradientBackground_SerializeReset" data-uid="C1.Win.Themes.ThemeGradientBackground.SerializeReset">
          <a class="xref" href="C1.Win.Themes.ThemeGradientBackground.SerializeReset.html#C1_Win_Themes_ThemeGradientBackground_SerializeReset">SerializeReset()</a>
        </td>
        <td class="markdown level1 summary"></td>
      </tr>
      <tr>
        <td id="C1_Win_Themes_ThemeGradientBackground_SerializeWrite_C1_Win_Themes_Serialization_Serializer_" data-uid="C1.Win.Themes.ThemeGradientBackground.SerializeWrite(C1.Win.Themes.Serialization.Serializer)">
          <a class="xref" href="C1.Win.Themes.ThemeGradientBackground.SerializeWrite.html#C1_Win_Themes_ThemeGradientBackground_SerializeWrite_C1_Win_Themes_Serialization_Serializer_">SerializeWrite(Serializer)</a>
        </td>
        <td class="markdown level1 summary"></td>
      </tr>
    </tbody>
  </table>

</div>
