# C1.PivotEngine.PivotField.StyleHigh

## Content

<div class="doc-site-dotnet-api-container">



<h1 id="C1_PivotEngine_PivotField_StyleHigh_" data-uid="C1.PivotEngine.PivotField.StyleHigh*">StyleHigh Property
</h1>
<div class="markdown level0 summary"></div>
<div class="markdown level0 conceptual"></div>



<a id="C1_PivotEngine_PivotField_StyleHigh_" data-uid="C1.PivotEngine.PivotField.StyleHigh*"></a>
<h4 id="C1_PivotEngine_PivotField_StyleHigh" data-uid="C1.PivotEngine.PivotField.StyleHigh">StyleHigh</h4>
<div class="markdown level1 summary"><p>Gets the <a class="xref" href="C1.PivotEngine.PivotConditionalFieldStyle.html">PivotConditionalFieldStyle</a> used to display high values.</p>
</div>
<div class="markdown level1 conceptual"></div>
<h5 class="declaration">Declaration</h5>
<div class="codewrapper">
  <pre><code class="lang-csharp hljs">public PivotConditionalFieldStyle StyleHigh { get; }</code></pre>
</div>
<div class="codewrapper">
  <pre><code class="lang-vbnet hljs">Public ReadOnly Property StyleHigh As PivotConditionalFieldStyle</code></pre>
</div>
<h5 id="C1_PivotEngine_PivotField_StyleHigh_remarks">Remarks</h5>
<div class="markdown level1 remarks"><p>This property allows you to apply conditional formatting to a field, making
certain values stand out when displayed on to the user.</p>
<p>For example, the code below shows values in the top 10% range in bold
with a green background and values in the bottom 10% range in bold with a
red background:</p>
<pre><code class="lang-csharp">// apply formatting to all value fields
var fp = this.c1FlexPivotPage1.FlexPivotEngine;
foreach (var f in fp.ValueFields)
{
  // show top 10% values in green, bold
  var sh = f.StyleHigh;
  sh.ConditionType = C1.PivotEngine.ConditionType.Percentage;
  sh.Value = .9;
  sh.BackColor = Color.FromArgb(210, 255, 210);
  sh.FontBold = true;

  // show bottom 10% values in red, bold
  var sl = f.StyleLow;
  sl.ConditionType = C1.PivotEngine.ConditionType.Percentage;
  sl.Value = .1;
  sl.BackColor = Color.FromArgb(255, 210, 210);
  sl.FontBold = true;
}</code></pre>
</div>
</div>
