# GrapeCity.Documents.Word.Fields.StyleRefFieldOptions

## Content

<div class="doc-site-dotnet-api-container">



  <h1 id="GrapeCity_Documents_Word_Fields_StyleRefFieldOptions" data-uid="GrapeCity.Documents.Word.Fields.StyleRefFieldOptions" class="text-break">StyleRefFieldOptions Class
</h1>
  <div class="markdown level0 summary"><p>Represents STYLEREF field options.</p>
<p>A STYLEREF field Inserts the nearest piece of text prior to this field that is formatted by the specified style name.</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.Documents.Word.Fields.BaseFieldOptions.html">BaseFieldOptions</a></div>
    <div class="level2"><span class="xref">StyleRefFieldOptions</span></div>
  </div>
  <div class="implements">
    <h5>Implements</h5>
    <div><a class="xref" href="GrapeCity.Documents.Word.Fields.IFieldOptions.html">IFieldOptions</a></div>
  </div>
  <h6><strong>Namespace</strong>: <a class="xref" href="GrapeCity.Documents.Word.Fields.html">GrapeCity.Documents.Word.Fields</a></h6>
  <h6><strong>Assembly</strong>: DS.Documents.Word.dll</h6>
  <h5 id="GrapeCity_Documents_Word_Fields_StyleRefFieldOptions_syntax">Syntax</h5>
  <div class="codewrapper">
    <pre><code class="lang-csharp hljs">public class StyleRefFieldOptions : BaseFieldOptions, IFieldOptions</code></pre>
  </div>
  <div class="codewrapper">
    <pre><code class="lang-vbnet hljs">Public Class StyleRefFieldOptions
    Inherits BaseFieldOptions
    Implements IFieldOptions</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="GrapeCity_Documents_Word_Fields_StyleRefFieldOptions__ctor_GrapeCity_Documents_Word_ComplexField_" data-uid="GrapeCity.Documents.Word.Fields.StyleRefFieldOptions.#ctor(GrapeCity.Documents.Word.ComplexField)">
          <a class="xref" href="GrapeCity.Documents.Word.Fields.StyleRefFieldOptions.-ctor.html#GrapeCity_Documents_Word_Fields_StyleRefFieldOptions__ctor_GrapeCity_Documents_Word_ComplexField_">StyleRefFieldOptions(ComplexField)</a>
        </td>
        <td class="markdown level1 summary"><p>Initializes a new instance of the <a class="xref" href="GrapeCity.Documents.Word.Fields.StyleRefFieldOptions.html">StyleRefFieldOptions</a> class.</p>
</td>
      </tr>
      <tr>
        <td id="GrapeCity_Documents_Word_Fields_StyleRefFieldOptions__ctor_GrapeCity_Documents_Word_DocumentBase_System_String_" data-uid="GrapeCity.Documents.Word.Fields.StyleRefFieldOptions.#ctor(GrapeCity.Documents.Word.DocumentBase,System.String)">
          <a class="xref" href="GrapeCity.Documents.Word.Fields.StyleRefFieldOptions.-ctor.html#GrapeCity_Documents_Word_Fields_StyleRefFieldOptions__ctor_GrapeCity_Documents_Word_DocumentBase_System_String_">StyleRefFieldOptions(DocumentBase, string)</a>
        </td>
        <td class="markdown level1 summary"><p>Initializes a new instance of the <a class="xref" href="GrapeCity.Documents.Word.Fields.StyleRefFieldOptions.html">StyleRefFieldOptions</a> class.</p>
</td>
      </tr>
      <tr>
        <td id="GrapeCity_Documents_Word_Fields_StyleRefFieldOptions__ctor_GrapeCity_Documents_Word_SimpleField_" data-uid="GrapeCity.Documents.Word.Fields.StyleRefFieldOptions.#ctor(GrapeCity.Documents.Word.SimpleField)">
          <a class="xref" href="GrapeCity.Documents.Word.Fields.StyleRefFieldOptions.-ctor.html#GrapeCity_Documents_Word_Fields_StyleRefFieldOptions__ctor_GrapeCity_Documents_Word_SimpleField_">StyleRefFieldOptions(SimpleField)</a>
        </td>
        <td class="markdown level1 summary"><p>Initializes a new instance of the <a class="xref" href="GrapeCity.Documents.Word.Fields.StyleRefFieldOptions.html">StyleRefFieldOptions</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="GrapeCity_Documents_Word_Fields_StyleRefFieldOptions_DisplayListNumber" data-uid="GrapeCity.Documents.Word.Fields.StyleRefFieldOptions.DisplayListNumber">
          <a class="xref" href="GrapeCity.Documents.Word.Fields.StyleRefFieldOptions.DisplayListNumber.html#GrapeCity_Documents_Word_Fields_StyleRefFieldOptions_DisplayListNumber">DisplayListNumber</a>
        </td>
        <td class="markdown level1 summary"></td>
      </tr>
      <tr>
        <td id="GrapeCity_Documents_Word_Fields_StyleRefFieldOptions_DisplayRelative" data-uid="GrapeCity.Documents.Word.Fields.StyleRefFieldOptions.DisplayRelative">
          <a class="xref" href="GrapeCity.Documents.Word.Fields.StyleRefFieldOptions.DisplayRelative.html#GrapeCity_Documents_Word_Fields_StyleRefFieldOptions_DisplayRelative">DisplayRelative</a>
        </td>
        <td class="markdown level1 summary"></td>
      </tr>
      <tr>
        <td id="GrapeCity_Documents_Word_Fields_StyleRefFieldOptions_NumberFormat" data-uid="GrapeCity.Documents.Word.Fields.StyleRefFieldOptions.NumberFormat">
          <a class="xref" href="GrapeCity.Documents.Word.Fields.StyleRefFieldOptions.NumberFormat.html#GrapeCity_Documents_Word_Fields_StyleRefFieldOptions_NumberFormat">NumberFormat</a>
        </td>
        <td class="markdown level1 summary"><p>Gets or sets the number format.</p>
<ul><li><span class="term">0</span>Specifies the requisite numeric positions to display in the result. If the result does not include a digit in that position, 0 is displayed.</li><li><span class="term">#</span>Specifies the requisite numeric positions to display in the result. If the result does not include a digit in that position, a space is displayed.</li><li><span class="term">x</span>Drops digits to the left of the x placeholder. If the placeholder is to the right of the decimal point, the result is rounded to that place.</li><li><span class="term">.</span>Indicates the radix-point position.</li><li><span class="term">,</span>Separates groups of three digits.</li><li><span class="term">-</span>Prepends a minus sign to a negative result, or prepends a space if the result is positive or 0.</li><li><span class="term">+</span>Prepends a plus sign to a positive result, a minus sign to a negative result, or a space if the result is 0.</li><li><span class="term">Other character</span>Includes the specified character in the result at that position.</li><li><span class="term">'text'</span>Includes text in the result.</li><li><span class="term">`numbered-item`</span>Includes, in Arabic numerals, the number of the preceding item numbered as a caption or resulting from a SEQ field. Numbered-item shall be the same name as identifier in that SEQ field.</li><li><span class="term">positive-result ; negative-result</span>Specifies different sets of picture items for positive and negative results. A zero value uses the positive picture.</li><li><span class="term">positive-result ; negative-result ; zero-result</span>Specifies different sets of picture items for positive, negative, and zero results.</li></ul>
<p>The default value is <a href="https://learn.microsoft.com/dotnet/csharp/language-reference/keywords/null">null</a>.</p>
</td>
      </tr>
      <tr>
        <td id="GrapeCity_Documents_Word_Fields_StyleRefFieldOptions_NumberStyle" data-uid="GrapeCity.Documents.Word.Fields.StyleRefFieldOptions.NumberStyle">
          <a class="xref" href="GrapeCity.Documents.Word.Fields.StyleRefFieldOptions.NumberStyle.html#GrapeCity_Documents_Word_Fields_StyleRefFieldOptions_NumberStyle">NumberStyle</a>
        </td>
        <td class="markdown level1 summary"><p>Gets or sets the number formatting style.</p>
<p>Default value is <a class="xref" href="GrapeCity.Documents.Word.NumberStyle.html#GrapeCity_Documents_Word_NumberStyle_None">None</a>.</p>
</td>
      </tr>
      <tr>
        <td id="GrapeCity_Documents_Word_Fields_StyleRefFieldOptions_ResultFormat" data-uid="GrapeCity.Documents.Word.Fields.StyleRefFieldOptions.ResultFormat">
          <a class="xref" href="GrapeCity.Documents.Word.Fields.StyleRefFieldOptions.ResultFormat.html#GrapeCity_Documents_Word_Fields_StyleRefFieldOptions_ResultFormat">ResultFormat</a>
        </td>
        <td class="markdown level1 summary"><p>Gets or sets the result formatting rule.</p>
<p>Default value is <a class="xref" href="GrapeCity.Documents.Word.Fields.ResultFormat.html#GrapeCity_Documents_Word_Fields_ResultFormat_None">None</a>.</p>
</td>
      </tr>
      <tr>
        <td id="GrapeCity_Documents_Word_Fields_StyleRefFieldOptions_SearchFromBottomOfPage" data-uid="GrapeCity.Documents.Word.Fields.StyleRefFieldOptions.SearchFromBottomOfPage">
          <a class="xref" href="GrapeCity.Documents.Word.Fields.StyleRefFieldOptions.SearchFromBottomOfPage.html#GrapeCity_Documents_Word_Fields_StyleRefFieldOptions_SearchFromBottomOfPage">SearchFromBottomOfPage</a>
        </td>
        <td class="markdown level1 summary"><p>Gets or sets a value indicating whether to search from the bottom of the current page, rather from the top.</p>
<p>The default value is <a href="https://learn.microsoft.com/dotnet/csharp/language-reference/builtin-types/bool">false</a>.</p> 
<p>This property has effect when the field is placed in a header or footer.</p>
</td>
      </tr>
      <tr>
        <td id="GrapeCity_Documents_Word_Fields_StyleRefFieldOptions_StringStyle" data-uid="GrapeCity.Documents.Word.Fields.StyleRefFieldOptions.StringStyle">
          <a class="xref" href="GrapeCity.Documents.Word.Fields.StyleRefFieldOptions.StringStyle.html#GrapeCity_Documents_Word_Fields_StyleRefFieldOptions_StringStyle">StringStyle</a>
        </td>
        <td class="markdown level1 summary"><p>Gets or sets the string formatting style.</p>
<p>Default value is <a class="xref" href="GrapeCity.Documents.Word.Fields.StringStyle.html#GrapeCity_Documents_Word_Fields_StringStyle_None">None</a>.</p>
</td>
      </tr>
      <tr>
        <td id="GrapeCity_Documents_Word_Fields_StyleRefFieldOptions_Style" data-uid="GrapeCity.Documents.Word.Fields.StyleRefFieldOptions.Style">
          <a class="xref" href="GrapeCity.Documents.Word.Fields.StyleRefFieldOptions.Style.html#GrapeCity_Documents_Word_Fields_StyleRefFieldOptions_Style">Style</a>
        </td>
        <td class="markdown level1 summary"><p>Gets or sets the style name to search in the document.</p>
</td>
      </tr>
      <tr>
        <td id="GrapeCity_Documents_Word_Fields_StyleRefFieldOptions_SuppressListNumberText" data-uid="GrapeCity.Documents.Word.Fields.StyleRefFieldOptions.SuppressListNumberText">
          <a class="xref" href="GrapeCity.Documents.Word.Fields.StyleRefFieldOptions.SuppressListNumberText.html#GrapeCity_Documents_Word_Fields_StyleRefFieldOptions_SuppressListNumberText">SuppressListNumberText</a>
        </td>
        <td class="markdown level1 summary"></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_Documents_Word_Fields_StyleRefFieldOptions_Load_GrapeCity_Documents_Word_ComplexField_" data-uid="GrapeCity.Documents.Word.Fields.StyleRefFieldOptions.Load(GrapeCity.Documents.Word.ComplexField)">
          <a class="xref" href="GrapeCity.Documents.Word.Fields.StyleRefFieldOptions.Load.html#GrapeCity_Documents_Word_Fields_StyleRefFieldOptions_Load_GrapeCity_Documents_Word_ComplexField_">Load(ComplexField)</a>
        </td>
        <td class="markdown level1 summary"><p>Loads options from the specified <a class="xref" href="GrapeCity.Documents.Word.ComplexField.html">ComplexField</a>.</p>
</td>
      </tr>
      <tr>
        <td id="GrapeCity_Documents_Word_Fields_StyleRefFieldOptions_Load_GrapeCity_Documents_Word_SimpleField_" data-uid="GrapeCity.Documents.Word.Fields.StyleRefFieldOptions.Load(GrapeCity.Documents.Word.SimpleField)">
          <a class="xref" href="GrapeCity.Documents.Word.Fields.StyleRefFieldOptions.Load.html#GrapeCity_Documents_Word_Fields_StyleRefFieldOptions_Load_GrapeCity_Documents_Word_SimpleField_">Load(SimpleField)</a>
        </td>
        <td class="markdown level1 summary"><p>Loads options from the specified <a class="xref" href="GrapeCity.Documents.Word.SimpleField.html">SimpleField</a>.</p>
</td>
      </tr>
      <tr>
        <td id="GrapeCity_Documents_Word_Fields_StyleRefFieldOptions_Save_GrapeCity_Documents_Word_ComplexField_" data-uid="GrapeCity.Documents.Word.Fields.StyleRefFieldOptions.Save(GrapeCity.Documents.Word.ComplexField)">
          <a class="xref" href="GrapeCity.Documents.Word.Fields.StyleRefFieldOptions.Save.html#GrapeCity_Documents_Word_Fields_StyleRefFieldOptions_Save_GrapeCity_Documents_Word_ComplexField_">Save(ComplexField)</a>
        </td>
        <td class="markdown level1 summary"><p>Saves the current options to the specified <a class="xref" href="GrapeCity.Documents.Word.ComplexField.html">ComplexField</a>.</p>
</td>
      </tr>
      <tr>
        <td id="GrapeCity_Documents_Word_Fields_StyleRefFieldOptions_Save_GrapeCity_Documents_Word_SimpleField_" data-uid="GrapeCity.Documents.Word.Fields.StyleRefFieldOptions.Save(GrapeCity.Documents.Word.SimpleField)">
          <a class="xref" href="GrapeCity.Documents.Word.Fields.StyleRefFieldOptions.Save.html#GrapeCity_Documents_Word_Fields_StyleRefFieldOptions_Save_GrapeCity_Documents_Word_SimpleField_">Save(SimpleField)</a>
        </td>
        <td class="markdown level1 summary"><p>Saves the current options to the specified <a class="xref" href="GrapeCity.Documents.Word.SimpleField.html">SimpleField</a>.</p>
</td>
      </tr>
      <tr>
        <td id="GrapeCity_Documents_Word_Fields_StyleRefFieldOptions_ToString" data-uid="GrapeCity.Documents.Word.Fields.StyleRefFieldOptions.ToString">
          <a class="xref" href="GrapeCity.Documents.Word.Fields.StyleRefFieldOptions.ToString.html#GrapeCity_Documents_Word_Fields_StyleRefFieldOptions_ToString">ToString()</a>
        </td>
        <td class="markdown level1 summary"></td>
      </tr>
    </tbody>
  </table>

</div>
