# C1.Win.Schedule.UI.Palette.CreateOffice2007Palette

## Content

<div class="doc-site-dotnet-api-container">



<h1 id="C1_Win_Schedule_UI_Palette_CreateOffice2007Palette_" data-uid="C1.Win.Schedule.UI.Palette.CreateOffice2007Palette*">CreateOffice2007Palette Method
</h1>
<div class="markdown level0 summary"></div>
<div class="markdown level0 conceptual"></div>



<a id="C1_Win_Schedule_UI_Palette_CreateOffice2007Palette_" data-uid="C1.Win.Schedule.UI.Palette.CreateOffice2007Palette*"></a>
<h4 id="C1_Win_Schedule_UI_Palette_CreateOffice2007Palette_System_Drawing_Color_System_Drawing_Color_System_Drawing_Color_System_Drawing_Color_System_Drawing_Color_System_Drawing_Color_System_Drawing_Color_System_Drawing_Color_System_Drawing_Color_System_Drawing_Color_" data-uid="C1.Win.Schedule.UI.Palette.CreateOffice2007Palette(System.Drawing.Color,System.Drawing.Color,System.Drawing.Color,System.Drawing.Color,System.Drawing.Color,System.Drawing.Color,System.Drawing.Color,System.Drawing.Color,System.Drawing.Color,System.Drawing.Color)">CreateOffice2007Palette(Color, Color, Color, Color, Color, Color, Color, Color, Color, Color)</h4>
<div class="markdown level1 summary"><p>Creates a new instance of the <a class="xref" href="C1.Win.Schedule.UI.Palette.html">Palette</a> object of
<a class="xref" href="C1.Win.Schedule.UI.PaletteType.html#C1_Win_Schedule_UI_PaletteType_Office2007">Office2007</a> type.</p>
</div>
<div class="markdown level1 conceptual"></div>
<h5 class="declaration">Declaration</h5>
<div class="codewrapper">
  <pre><code class="lang-csharp hljs">public static Palette CreateOffice2007Palette(Color freeHour, Color freeHourBorder, Color freeHourLightBorder, Color dayHeaderBorder, Color dayHeaderBack, Color dayHeaderBack2, Color border, Color selectedSlot, Color monthGridBorder, Color monthGridText)</code></pre>
</div>
<div class="codewrapper">
  <pre><code class="lang-vbnet hljs">Public Shared Function CreateOffice2007Palette(freeHour As Color, freeHourBorder As Color, freeHourLightBorder As Color, dayHeaderBorder As Color, dayHeaderBack As Color, dayHeaderBack2 As Color, border As Color, selectedSlot As Color, monthGridBorder As Color, monthGridText As Color) As Palette</code></pre>
</div>
<h5 class="parameters">Parameters</h5>
<table class="table table-bordered table-condensed">
  <thead>
    <tr>
      <th>Type</th>
      <th>Name</th>
      <th>Description</th>
    </tr>
  </thead>
  <tbody>
    <tr>
      <td><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.drawing.color">Color</a></td>
      <td><span class="parametername">freeHour</span></td>
      <td><p>The <a class="xref" href="https://learn.microsoft.com/dotnet/api/system.drawing.color">Color</a> value which is used
for displaying background of free hours and selected days
and the working hour horizontal light borders.</p>
</td>
    </tr>
    <tr>
      <td><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.drawing.color">Color</a></td>
      <td><span class="parametername">freeHourBorder</span></td>
      <td><p>The <a class="xref" href="https://learn.microsoft.com/dotnet/api/system.drawing.color">Color</a> value which is used
for displaying the free and working hour horizontal borders,
alternate month days background and all-day area background.</p>
</td>
    </tr>
    <tr>
      <td><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.drawing.color">Color</a></td>
      <td><span class="parametername">freeHourLightBorder</span></td>
      <td><p>The <a class="xref" href="https://learn.microsoft.com/dotnet/api/system.drawing.color">Color</a> value which is used
for displaying the free hour horizontal light borders.</p>
</td>
    </tr>
    <tr>
      <td><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.drawing.color">Color</a></td>
      <td><span class="parametername">dayHeaderBorder</span></td>
      <td><p>The <a class="xref" href="https://learn.microsoft.com/dotnet/api/system.drawing.color">Color</a> value which is used
for displaying day header borders.</p>
</td>
    </tr>
    <tr>
      <td><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.drawing.color">Color</a></td>
      <td><span class="parametername">dayHeaderBack</span></td>
      <td><p>The <a class="xref" href="https://learn.microsoft.com/dotnet/api/system.drawing.color">Color</a> value which is used
for displaying the day header.</p>
</td>
    </tr>
    <tr>
      <td><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.drawing.color">Color</a></td>
      <td><span class="parametername">dayHeaderBack2</span></td>
      <td><p>The <a class="xref" href="https://learn.microsoft.com/dotnet/api/system.drawing.color">Color</a> value which is used
for displaying gradient color of the day header.</p>
</td>
    </tr>
    <tr>
      <td><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.drawing.color">Color</a></td>
      <td><span class="parametername">border</span></td>
      <td><p>The <a class="xref" href="https://learn.microsoft.com/dotnet/api/system.drawing.color">Color</a> value which is used
for displaying vertical borders in the day view and day borders in other views.</p>
</td>
    </tr>
    <tr>
      <td><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.drawing.color">Color</a></td>
      <td><span class="parametername">selectedSlot</span></td>
      <td><p>The <a class="xref" href="https://learn.microsoft.com/dotnet/api/system.drawing.color">Color</a> value which is used
for displaying selected time slot.</p>
</td>
    </tr>
    <tr>
      <td><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.drawing.color">Color</a></td>
      <td><span class="parametername">monthGridBorder</span></td>
      <td><p>The <a class="xref" href="https://learn.microsoft.com/dotnet/api/system.drawing.color">Color</a> value which is used
for displaying month grid border inside tabs.</p>
</td>
    </tr>
    <tr>
      <td><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.drawing.color">Color</a></td>
      <td><span class="parametername">monthGridText</span></td>
      <td><p>The <a class="xref" href="https://learn.microsoft.com/dotnet/api/system.drawing.color">Color</a> value which is used
for displaying month grid text inside tabs.</p>
</td>
    </tr>
  </tbody>
</table>
<h5 class="returns">Returns</h5>
<table class="table table-bordered table-condensed">
  <thead>
    <tr>
      <th>Type</th>
      <th>Description</th>
    </tr>
  </thead>
  <tbody>
    <tr>
      <td><a class="xref" href="C1.Win.Schedule.UI.Palette.html">Palette</a></td>
      <td></td>
    </tr>
  </tbody>
</table>
</div>
