# GrapeCity.Documents.Word.StyleCollection.SetDefaultStyle

## Content

<div class="doc-site-dotnet-api-container">



<h1 id="GrapeCity_Documents_Word_StyleCollection_SetDefaultStyle_" data-uid="GrapeCity.Documents.Word.StyleCollection.SetDefaultStyle*">SetDefaultStyle Method
</h1>
<div class="markdown level0 summary"></div>
<div class="markdown level0 conceptual"></div>



<a id="GrapeCity_Documents_Word_StyleCollection_SetDefaultStyle_" data-uid="GrapeCity.Documents.Word.StyleCollection.SetDefaultStyle*"></a>
<h4 id="GrapeCity_Documents_Word_StyleCollection_SetDefaultStyle_GrapeCity_Documents_Word_StyleType_GrapeCity_Documents_Word_Style_" data-uid="GrapeCity.Documents.Word.StyleCollection.SetDefaultStyle(GrapeCity.Documents.Word.StyleType,GrapeCity.Documents.Word.Style)">SetDefaultStyle(StyleType, Style)</h4>
<div class="markdown level1 summary"><p>Sets the style that is applied to objects that do not explicitly specify a style.</p>
</div>
<div class="markdown level1 conceptual"></div>
<h5 class="declaration">Declaration</h5>
<div class="codewrapper">
  <pre><code class="lang-csharp hljs">public void SetDefaultStyle(StyleType type, Style style)</code></pre>
</div>
<div class="codewrapper">
  <pre><code class="lang-vbnet hljs">Public Sub SetDefaultStyle(type As StyleType, style As Style)</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="GrapeCity.Documents.Word.StyleType.html">StyleType</a></td>
      <td><span class="parametername">type</span></td>
      <td><p>The style type.</p>
</td>
    </tr>
    <tr>
      <td><a class="xref" href="GrapeCity.Documents.Word.Style.html">Style</a></td>
      <td><span class="parametername">style</span></td>
      <td><p>The style to set as the default.</p>
</td>
    </tr>
  </tbody>
</table>
</div>
