# C1.Framework.Style

## Content

<div class="doc-site-dotnet-api-container">



  <h1 id="C1_Framework_Style" data-uid="C1.Framework.Style" class="text-break">Style Class
</h1>
  <div class="markdown level0 summary"><p>The <a class="xref" href="C1.Framework.Style.html">Style</a> class contains display attributes that 
determine the appearance of content on the screen/printer. 
It includes most elements found in Css styles.</p>
<p>The <a class="xref" href="C1.Framework.Style.html">Style</a> class also contains methods for rendering 
and measuring content (strings and images) based on the style settings 
(fonts, margins, etc).</p>
<p>The <a class="xref" href="C1.Framework.Style.html">Style</a> objects are not hierarchical in the sense 
that they don't have parent styles and don't inherit attributes 
from the parent style. To create a new style based on an existing one, 
you would clone the original style, then apply whatever attributes 
you want to the new style.</p>
<p>The <a class="xref" href="C1.Framework.Style.html">Style</a> objects are hierarchical in the sense that 
two style attributes (<a class="xref" href="C1.Framework.Style.Font.html#C1_Framework_Style_Font">Font</a> and <a class="xref" href="C1.Framework.Style.ForeBrush.html#C1_Framework_Style_ForeBrush">ForeBrush</a>) don't 
need to be set. If these attributes are not set, they are inherited, 
but not from a parent <a class="xref" href="C1.Framework.Style.html">Style</a> object. Rather, these attributes 
are inherited from the parent UI object.</p>
<p>This type of inheritance make it easy to define a font on 
a <a class="xref" href="C1.Framework.Style.html">Style</a> associated with a parent UI object and have that 
font be automatically applied to all UI objects contained in the parent. 
By contrast, a <a class="xref" href="C1.Framework.Style.BackBrush.html#C1_Framework_Style_BackBrush">BackBrush</a> attribute is not explicitly inherited. 
Instead, the parent UI object paints its client area with a brush, 
and child UI objects have a transparent background by default,
so the parent background shows through by default. Other attributes such
as alignment, margins, padding, etc are also not inherited.</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"><span class="xref">Style</span></div>
  </div>
  <h6><strong>Namespace</strong>: <a class="xref" href="C1.Framework.html">C1.Framework</a></h6>
  <h6><strong>Assembly</strong>: C1.Win.10.dll</h6>
  <h5 id="C1_Framework_Style_syntax">Syntax</h5>
  <div class="codewrapper">
    <pre><code class="lang-csharp hljs">[TypeConverter(typeof(ExpandableObjectConverter))]
public class Style</code></pre>
  </div>
  <div class="codewrapper">
    <pre><code class="lang-vbnet hljs">&lt;TypeConverter(GetType(ExpandableObjectConverter))&gt;
Public Class Style</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_Framework_Style__ctor" data-uid="C1.Framework.Style.#ctor">
          <a class="xref" href="C1.Framework.Style.-ctor.html#C1_Framework_Style__ctor">Style()</a>
        </td>
        <td class="markdown level1 summary"><p>Initializes a new instance of a <a class="xref" href="C1.Framework.Style.html">Style</a>.</p>
</td>
      </tr>
      <tr>
        <td id="C1_Framework_Style__ctor_System_String_" data-uid="C1.Framework.Style.#ctor(System.String)">
          <a class="xref" href="C1.Framework.Style.-ctor.html#C1_Framework_Style__ctor_System_String_">Style(string)</a>
        </td>
        <td class="markdown level1 summary"><p>Initializes a new instance of a <a class="xref" href="C1.Framework.Style.html">Style</a>.</p>
</td>
      </tr>
    </tbody>
  </table>
  <h3 id="fields">Fields
</h3>
  <table class="table table-bordered table-condensed">
    <thead>
      <tr>
        <th>Name</th>
        <th>Description</th>
      </tr>
    </thead>
    <tbody>
      <tr>
        <td id="C1_Framework_Style_SHADOW_SIZE" data-uid="C1.Framework.Style.SHADOW_SIZE">
          <a class="xref" href="C1.Framework.Style.SHADOW_SIZE.html">SHADOW_SIZE</a>
        </td>
        <td class="markdown level1 summary"><p>The size of shadow.</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_Framework_Style_BackBrush" data-uid="C1.Framework.Style.BackBrush">
          <a class="xref" href="C1.Framework.Style.BackBrush.html#C1_Framework_Style_BackBrush">BackBrush</a>
        </td>
        <td class="markdown level1 summary"><p>Gets or sets the brush used to render the element background.</p>
</td>
      </tr>
      <tr>
        <td id="C1_Framework_Style_BackBrushProvider" data-uid="C1.Framework.Style.BackBrushProvider">
          <a class="xref" href="C1.Framework.Style.BackBrushProvider.html#C1_Framework_Style_BackBrushProvider">BackBrushProvider</a>
        </td>
        <td class="markdown level1 summary"><p>Gets or sets the brush provider used to render the element background.</p>
</td>
      </tr>
      <tr>
        <td id="C1_Framework_Style_BackColor" data-uid="C1.Framework.Style.BackColor">
          <a class="xref" href="C1.Framework.Style.BackColor.html#C1_Framework_Style_BackColor">BackColor</a>
        </td>
        <td class="markdown level1 summary"><p>Gets or sets the <a class="xref" href="https://learn.microsoft.com/dotnet/api/system.drawing.color">Color</a> used to paint the background.</p>
</td>
      </tr>
      <tr>
        <td id="C1_Framework_Style_BackColor2" data-uid="C1.Framework.Style.BackColor2">
          <a class="xref" href="C1.Framework.Style.BackColor2.html#C1_Framework_Style_BackColor2">BackColor2</a>
        </td>
        <td class="markdown level1 summary"><p>Gets or sets the secondary color used to build the background gradient.</p>
</td>
      </tr>
      <tr>
        <td id="C1_Framework_Style_BackImage" data-uid="C1.Framework.Style.BackImage">
          <a class="xref" href="C1.Framework.Style.BackImage.html#C1_Framework_Style_BackImage">BackImage</a>
        </td>
        <td class="markdown level1 summary"><p>Gets or sets the background image for the element.</p>
</td>
      </tr>
      <tr>
        <td id="C1_Framework_Style_BackImageAlignment" data-uid="C1.Framework.Style.BackImageAlignment">
          <a class="xref" href="C1.Framework.Style.BackImageAlignment.html#C1_Framework_Style_BackImageAlignment">BackImageAlignment</a>
        </td>
        <td class="markdown level1 summary"><p>Gets or sets the alignment used to render the background image.</p>
</td>
      </tr>
      <tr>
        <td id="C1_Framework_Style_BackImageAllowFlip" data-uid="C1.Framework.Style.BackImageAllowFlip">
          <a class="xref" href="C1.Framework.Style.BackImageAllowFlip.html#C1_Framework_Style_BackImageAllowFlip">BackImageAllowFlip</a>
        </td>
        <td class="markdown level1 summary"><p>Gets or sets whether the background image can be flipped for RTL mode.</p>
</td>
      </tr>
      <tr>
        <td id="C1_Framework_Style_BackImagePadding" data-uid="C1.Framework.Style.BackImagePadding">
          <a class="xref" href="C1.Framework.Style.BackImagePadding.html#C1_Framework_Style_BackImagePadding">BackImagePadding</a>
        </td>
        <td class="markdown level1 summary"><p>Gets or sets the thickness of the padding between the element edges and its content.</p>
</td>
      </tr>
      <tr>
        <td id="C1_Framework_Style_BackImagePaddingRtl" data-uid="C1.Framework.Style.BackImagePaddingRtl">
          <a class="xref" href="C1.Framework.Style.BackImagePaddingRtl.html#C1_Framework_Style_BackImagePaddingRtl">BackImagePaddingRtl</a>
        </td>
        <td class="markdown level1 summary"><p>Returns back image padding which honors current RightToLeft settings.</p>
</td>
      </tr>
      <tr>
        <td id="C1_Framework_Style_BackImageScaling" data-uid="C1.Framework.Style.BackImageScaling">
          <a class="xref" href="C1.Framework.Style.BackImageScaling.html#C1_Framework_Style_BackImageScaling">BackImageScaling</a>
        </td>
        <td class="markdown level1 summary"><p>Gets or sets the scaling used to render the background image.</p>
</td>
      </tr>
      <tr>
        <td id="C1_Framework_Style_Border" data-uid="C1.Framework.Style.Border">
          <a class="xref" href="C1.Framework.Style.Border.html#C1_Framework_Style_Border">Border</a>
        </td>
        <td class="markdown level1 summary"><p>Gets or sets the thickness of the border around the element.</p>
</td>
      </tr>
      <tr>
        <td id="C1_Framework_Style_BorderBrush" data-uid="C1.Framework.Style.BorderBrush">
          <a class="xref" href="C1.Framework.Style.BorderBrush.html#C1_Framework_Style_BorderBrush">BorderBrush</a>
        </td>
        <td class="markdown level1 summary"><p>Gets or sets the brush used to paint the borders around the element.</p>
</td>
      </tr>
      <tr>
        <td id="C1_Framework_Style_BorderColor" data-uid="C1.Framework.Style.BorderColor">
          <a class="xref" href="C1.Framework.Style.BorderColor.html#C1_Framework_Style_BorderColor">BorderColor</a>
        </td>
        <td class="markdown level1 summary"><p>Gets or sets the <a class="xref" href="https://learn.microsoft.com/dotnet/api/system.drawing.color">Color</a> used to draw the border around the element.</p>
</td>
      </tr>
      <tr>
        <td id="C1_Framework_Style_BorderEdges" data-uid="C1.Framework.Style.BorderEdges">
          <a class="xref" href="C1.Framework.Style.BorderEdges.html#C1_Framework_Style_BorderEdges">BorderEdges</a>
        </td>
        <td class="markdown level1 summary"><p>Gets <a class="xref" href="C1.Framework.Style.BorderEdges.html#C1_Framework_Style_BorderEdges">BorderEdges</a> object that defines the colors used to paint each edge of the borders.</p>
</td>
      </tr>
      <tr>
        <td id="C1_Framework_Style_BorderRtl" data-uid="C1.Framework.Style.BorderRtl">
          <a class="xref" href="C1.Framework.Style.BorderRtl.html#C1_Framework_Style_BorderRtl">BorderRtl</a>
        </td>
        <td class="markdown level1 summary"><p>Returns padding which honors current RightToLeft settings.</p>
</td>
      </tr>
      <tr>
        <td id="C1_Framework_Style_ChildSpacing" data-uid="C1.Framework.Style.ChildSpacing">
          <a class="xref" href="C1.Framework.Style.ChildSpacing.html#C1_Framework_Style_ChildSpacing">ChildSpacing</a>
        </td>
        <td class="markdown level1 summary"><p>Gets or sets the amount of space between child elements.</p>
</td>
      </tr>
      <tr>
        <td id="C1_Framework_Style_Clip" data-uid="C1.Framework.Style.Clip">
          <a class="xref" href="C1.Framework.Style.Clip.html#C1_Framework_Style_Clip">Clip</a>
        </td>
        <td class="markdown level1 summary"><p>Gets or sets whether text content should be clipped to the element area.</p>
</td>
      </tr>
      <tr>
        <td id="C1_Framework_Style_Corners" data-uid="C1.Framework.Style.Corners">
          <a class="xref" href="C1.Framework.Style.Corners.html#C1_Framework_Style_Corners">Corners</a>
        </td>
        <td class="markdown level1 summary"><p>Gets or sets the radii of the element corners.</p>
</td>
      </tr>
      <tr>
        <td id="C1_Framework_Style_Cursor" data-uid="C1.Framework.Style.Cursor">
          <a class="xref" href="C1.Framework.Style.Cursor.html#C1_Framework_Style_Cursor">Cursor</a>
        </td>
        <td class="markdown level1 summary"><p>Gets or sets the cursor that should be displayed when the mouse is over elements with this style.</p>
</td>
      </tr>
      <tr>
        <td id="C1_Framework_Style_DefaultStyle" data-uid="C1.Framework.Style.DefaultStyle">
          <a class="xref" href="C1.Framework.Style.DefaultStyle.html#C1_Framework_Style_DefaultStyle">DefaultStyle</a>
        </td>
        <td class="markdown level1 summary"><p>Gets a reference to the default style.</p>
</td>
      </tr>
      <tr>
        <td id="C1_Framework_Style_Disabled" data-uid="C1.Framework.Style.Disabled">
          <a class="xref" href="C1.Framework.Style.Disabled.html#C1_Framework_Style_Disabled">Disabled</a>
        </td>
        <td class="markdown level1 summary"><p>Gets or sets the style to be used when the element is disabled.</p>
</td>
      </tr>
      <tr>
        <td id="C1_Framework_Style_DisplayBlock" data-uid="C1.Framework.Style.DisplayBlock">
          <a class="xref" href="C1.Framework.Style.DisplayBlock.html#C1_Framework_Style_DisplayBlock">DisplayBlock</a>
        </td>
        <td class="markdown level1 summary"><p>Gets or sets the display as block or inline of the element.</p>
</td>
      </tr>
      <tr>
        <td id="C1_Framework_Style_Ellipse" data-uid="C1.Framework.Style.Ellipse">
          <a class="xref" href="C1.Framework.Style.Ellipse.html#C1_Framework_Style_Ellipse">Ellipse</a>
        </td>
        <td class="markdown level1 summary"><p>Gets or sets whether the element border is an ellipse (for the dynamic styles only).</p>
</td>
      </tr>
      <tr>
        <td id="C1_Framework_Style_Flags" data-uid="C1.Framework.Style.Flags">
          <a class="xref" href="C1.Framework.Style.Flags.html#C1_Framework_Style_Flags">Flags</a>
        </td>
        <td class="markdown level1 summary"><p>Gets or sets the style flags.</p>
</td>
      </tr>
      <tr>
        <td id="C1_Framework_Style_Font" data-uid="C1.Framework.Style.Font">
          <a class="xref" href="C1.Framework.Style.Font.html#C1_Framework_Style_Font">Font</a>
        </td>
        <td class="markdown level1 summary"><p>Gets or sets the font used to paint text within the element.</p>
</td>
      </tr>
      <tr>
        <td id="C1_Framework_Style_FontPadding" data-uid="C1.Framework.Style.FontPadding">
          <a class="xref" href="C1.Framework.Style.FontPadding.html#C1_Framework_Style_FontPadding">FontPadding</a>
        </td>
        <td class="markdown level1 summary"><p>Gets or sets whether text bounding rectangle should include padding.</p>
</td>
      </tr>
      <tr>
        <td id="C1_Framework_Style_ForeBrush" data-uid="C1.Framework.Style.ForeBrush">
          <a class="xref" href="C1.Framework.Style.ForeBrush.html#C1_Framework_Style_ForeBrush">ForeBrush</a>
        </td>
        <td class="markdown level1 summary"><p>Gets or sets the brush used to paint the text within the element.</p>
</td>
      </tr>
      <tr>
        <td id="C1_Framework_Style_ForeColor" data-uid="C1.Framework.Style.ForeColor">
          <a class="xref" href="C1.Framework.Style.ForeColor.html#C1_Framework_Style_ForeColor">ForeColor</a>
        </td>
        <td class="markdown level1 summary"><p>Gets or sets the <a class="xref" href="https://learn.microsoft.com/dotnet/api/system.drawing.color">Color</a> used to paint the text.</p>
</td>
      </tr>
      <tr>
        <td id="C1_Framework_Style_Format" data-uid="C1.Framework.Style.Format">
          <a class="xref" href="C1.Framework.Style.Format.html#C1_Framework_Style_Format">Format</a>
        </td>
        <td class="markdown level1 summary"><p>Gets or sets the format string used to convert the element value into a string.</p>
</td>
      </tr>
      <tr>
        <td id="C1_Framework_Style_GammaCorrection" data-uid="C1.Framework.Style.GammaCorrection">
          <a class="xref" href="C1.Framework.Style.GammaCorrection.html#C1_Framework_Style_GammaCorrection">GammaCorrection</a>
        </td>
        <td class="markdown level1 summary"><p>Gets or sets whether to apply gamma correction to the background gradient.</p>
</td>
      </tr>
      <tr>
        <td id="C1_Framework_Style_GradientBlend" data-uid="C1.Framework.Style.GradientBlend">
          <a class="xref" href="C1.Framework.Style.GradientBlend.html#C1_Framework_Style_GradientBlend">GradientBlend</a>
        </td>
        <td class="markdown level1 summary"><p>Gets or sets the <a class="xref" href="https://learn.microsoft.com/dotnet/api/system.drawing.drawing2d.blend">Blend</a> used to paint the background gradient.</p>
</td>
      </tr>
      <tr>
        <td id="C1_Framework_Style_GradientCenter" data-uid="C1.Framework.Style.GradientCenter">
          <a class="xref" href="C1.Framework.Style.GradientCenter.html#C1_Framework_Style_GradientCenter">GradientCenter</a>
        </td>
        <td class="markdown level1 summary"><p>Gets or sets the <a class="xref" href="https://learn.microsoft.com/dotnet/api/system.drawing.pointf">PointF</a> that represents the center of a radial gradient background in percentage units.</p>
</td>
      </tr>
      <tr>
        <td id="C1_Framework_Style_GradientInterpolationColors" data-uid="C1.Framework.Style.GradientInterpolationColors">
          <a class="xref" href="C1.Framework.Style.GradientInterpolationColors.html#C1_Framework_Style_GradientInterpolationColors">GradientInterpolationColors</a>
        </td>
        <td class="markdown level1 summary"><p>Gets or sets a <a class="xref" href="https://learn.microsoft.com/dotnet/api/system.drawing.drawing2d.colorblend">ColorBlend</a> that defines a multicolor gradient.</p>
</td>
      </tr>
      <tr>
        <td id="C1_Framework_Style_GradientMode" data-uid="C1.Framework.Style.GradientMode">
          <a class="xref" href="C1.Framework.Style.GradientMode.html#C1_Framework_Style_GradientMode">GradientMode</a>
        </td>
        <td class="markdown level1 summary"><p>Gets or sets the <a class="xref" href="C1.Framework.Style.GradientMode.html#C1_Framework_Style_GradientMode">GradientMode</a> used to paint the background.</p>
</td>
      </tr>
      <tr>
        <td id="C1_Framework_Style_Height" data-uid="C1.Framework.Style.Height">
          <a class="xref" href="C1.Framework.Style.Height.html#C1_Framework_Style_Height">Height</a>
        </td>
        <td class="markdown level1 summary"><p>Gets or sets the style height (set to -1 to use the default height).</p>
</td>
      </tr>
      <tr>
        <td id="C1_Framework_Style_HorizontalAlignment" data-uid="C1.Framework.Style.HorizontalAlignment">
          <a class="xref" href="C1.Framework.Style.HorizontalAlignment.html#C1_Framework_Style_HorizontalAlignment">HorizontalAlignment</a>
        </td>
        <td class="markdown level1 summary"><p>Gets or sets how elements should be aligned in the horizontal direction.</p>
</td>
      </tr>
      <tr>
        <td id="C1_Framework_Style_Hot" data-uid="C1.Framework.Style.Hot">
          <a class="xref" href="C1.Framework.Style.Hot.html#C1_Framework_Style_Hot">Hot</a>
        </td>
        <td class="markdown level1 summary"><p>Gets or sets the style to be used when the element is hot.</p>
</td>
      </tr>
      <tr>
        <td id="C1_Framework_Style_HotPressed" data-uid="C1.Framework.Style.HotPressed">
          <a class="xref" href="C1.Framework.Style.HotPressed.html#C1_Framework_Style_HotPressed">HotPressed</a>
        </td>
        <td class="markdown level1 summary"><p>Gets or sets the style to be used when the element is hot and pressed.</p>
</td>
      </tr>
      <tr>
        <td id="C1_Framework_Style_HotkeyPrefix" data-uid="C1.Framework.Style.HotkeyPrefix">
          <a class="xref" href="C1.Framework.Style.HotkeyPrefix.html#C1_Framework_Style_HotkeyPrefix">HotkeyPrefix</a>
        </td>
        <td class="markdown level1 summary"><p>Gets or sets the <a class="xref" href="C1.Framework.Style.HotkeyPrefix.html#C1_Framework_Style_HotkeyPrefix">HotkeyPrefix</a> value determining how to display hot keys.</p>
</td>
      </tr>
      <tr>
        <td id="C1_Framework_Style_ImageAlignment" data-uid="C1.Framework.Style.ImageAlignment">
          <a class="xref" href="C1.Framework.Style.ImageAlignment.html#C1_Framework_Style_ImageAlignment">ImageAlignment</a>
        </td>
        <td class="markdown level1 summary"><p>Gets or sets how images should be aligned within the element.</p>
</td>
      </tr>
      <tr>
        <td id="C1_Framework_Style_ImageAllowFlip" data-uid="C1.Framework.Style.ImageAllowFlip">
          <a class="xref" href="C1.Framework.Style.ImageAllowFlip.html#C1_Framework_Style_ImageAllowFlip">ImageAllowFlip</a>
        </td>
        <td class="markdown level1 summary"><p>Gets or sets whether the image should be flipped horizontally for RTL mode.</p>
</td>
      </tr>
      <tr>
        <td id="C1_Framework_Style_ImageScaling" data-uid="C1.Framework.Style.ImageScaling">
          <a class="xref" href="C1.Framework.Style.ImageScaling.html#C1_Framework_Style_ImageScaling">ImageScaling</a>
        </td>
        <td class="markdown level1 summary"><p>Gets or sets how images should be scaled within the element.</p>
</td>
      </tr>
      <tr>
        <td id="C1_Framework_Style_Indent" data-uid="C1.Framework.Style.Indent">
          <a class="xref" href="C1.Framework.Style.Indent.html#C1_Framework_Style_Indent">Indent</a>
        </td>
        <td class="markdown level1 summary"><p>Gets or sets the indentation for the first text element.</p>
</td>
      </tr>
      <tr>
        <td id="C1_Framework_Style_Locked" data-uid="C1.Framework.Style.Locked">
          <a class="xref" href="C1.Framework.Style.Locked.html#C1_Framework_Style_Locked">Locked</a>
        </td>
        <td class="markdown level1 summary"><p>Gets or sets whether the style is locked and cannot be modified.</p>
</td>
      </tr>
      <tr>
        <td id="C1_Framework_Style_Margins" data-uid="C1.Framework.Style.Margins">
          <a class="xref" href="C1.Framework.Style.Margins.html#C1_Framework_Style_Margins">Margins</a>
        </td>
        <td class="markdown level1 summary"><p>Gets or sets the thickness of the margins around the element.</p>
</td>
      </tr>
      <tr>
        <td id="C1_Framework_Style_MarginsRtl" data-uid="C1.Framework.Style.MarginsRtl">
          <a class="xref" href="C1.Framework.Style.MarginsRtl.html#C1_Framework_Style_MarginsRtl">MarginsRtl</a>
        </td>
        <td class="markdown level1 summary"><p>Returns margins which honor current RightToLeft settings.</p>
</td>
      </tr>
      <tr>
        <td id="C1_Framework_Style_Name" data-uid="C1.Framework.Style.Name">
          <a class="xref" href="C1.Framework.Style.Name.html#C1_Framework_Style_Name">Name</a>
        </td>
        <td class="markdown level1 summary"><p>Gets or sets the style name.</p>
</td>
      </tr>
      <tr>
        <td id="C1_Framework_Style_Owner" data-uid="C1.Framework.Style.Owner">
          <a class="xref" href="C1.Framework.Style.Owner.html#C1_Framework_Style_Owner">Owner</a>
        </td>
        <td class="markdown level1 summary"><p>Gets the owner object, such an XStyleSet.</p>
</td>
      </tr>
      <tr>
        <td id="C1_Framework_Style_Padding" data-uid="C1.Framework.Style.Padding">
          <a class="xref" href="C1.Framework.Style.Padding.html#C1_Framework_Style_Padding">Padding</a>
        </td>
        <td class="markdown level1 summary"><p>Gets or sets the thickness of the padding between the element edges and its content.</p>
</td>
      </tr>
      <tr>
        <td id="C1_Framework_Style_PaddingRtl" data-uid="C1.Framework.Style.PaddingRtl">
          <a class="xref" href="C1.Framework.Style.PaddingRtl.html#C1_Framework_Style_PaddingRtl">PaddingRtl</a>
        </td>
        <td class="markdown level1 summary"><p>Returns padding which honors current RightToLeft settings.</p>
</td>
      </tr>
      <tr>
        <td id="C1_Framework_Style_Pressed" data-uid="C1.Framework.Style.Pressed">
          <a class="xref" href="C1.Framework.Style.Pressed.html#C1_Framework_Style_Pressed">Pressed</a>
        </td>
        <td class="markdown level1 summary"><p>Gets or sets the style to be used when the element is pressed.</p>
</td>
      </tr>
      <tr>
        <td id="C1_Framework_Style_Shadow" data-uid="C1.Framework.Style.Shadow">
          <a class="xref" href="C1.Framework.Style.Shadow.html#C1_Framework_Style_Shadow">Shadow</a>
        </td>
        <td class="markdown level1 summary"><p>Gets or sets whether the style includes a shadow.</p>
</td>
      </tr>
      <tr>
        <td id="C1_Framework_Style_TextDirection" data-uid="C1.Framework.Style.TextDirection">
          <a class="xref" href="C1.Framework.Style.TextDirection.html#C1_Framework_Style_TextDirection">TextDirection</a>
        </td>
        <td class="markdown level1 summary"><p>Gets or sets the direction in which text is rendered.</p>
</td>
      </tr>
      <tr>
        <td id="C1_Framework_Style_Trimming" data-uid="C1.Framework.Style.Trimming">
          <a class="xref" href="C1.Framework.Style.Trimming.html#C1_Framework_Style_Trimming">Trimming</a>
        </td>
        <td class="markdown level1 summary"><p>Gets or sets how to trim characters that do not fit in the space available.</p>
</td>
      </tr>
      <tr>
        <td id="C1_Framework_Style_VerticalAlignment" data-uid="C1.Framework.Style.VerticalAlignment">
          <a class="xref" href="C1.Framework.Style.VerticalAlignment.html#C1_Framework_Style_VerticalAlignment">VerticalAlignment</a>
        </td>
        <td class="markdown level1 summary"><p>Gets or sets how elements should be aligned in the vertical direction.</p>
</td>
      </tr>
      <tr>
        <td id="C1_Framework_Style_Width" data-uid="C1.Framework.Style.Width">
          <a class="xref" href="C1.Framework.Style.Width.html#C1_Framework_Style_Width">Width</a>
        </td>
        <td class="markdown level1 summary"><p>Gets or sets the style width (set to -1 to use the default width).</p>
</td>
      </tr>
      <tr>
        <td id="C1_Framework_Style_WordWrap" data-uid="C1.Framework.Style.WordWrap">
          <a class="xref" href="C1.Framework.Style.WordWrap.html#C1_Framework_Style_WordWrap">WordWrap</a>
        </td>
        <td class="markdown level1 summary"><p>Gets or sets whether text should be allowed to wrap within the element.</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_Framework_Style_BrushFromColor_System_Drawing_Color_" data-uid="C1.Framework.Style.BrushFromColor(System.Drawing.Color)">
          <a class="xref" href="C1.Framework.Style.BrushFromColor.html#C1_Framework_Style_BrushFromColor_System_Drawing_Color_">BrushFromColor(Color)</a>
        </td>
        <td class="markdown level1 summary"><p>Returns new <a class="xref" href="https://learn.microsoft.com/dotnet/api/system.drawing.solidbrush">SolidBrush</a> if specified color is not <a class="xref" href="https://learn.microsoft.com/dotnet/api/system.drawing.color.transparent">Transparent</a> or null otherwise.</p>
</td>
      </tr>
      <tr>
        <td id="C1_Framework_Style_Clone" data-uid="C1.Framework.Style.Clone">
          <a class="xref" href="C1.Framework.Style.Clone.html#C1_Framework_Style_Clone">Clone()</a>
        </td>
        <td class="markdown level1 summary"><p>Creates an instance of the <a class="xref" href="C1.Framework.Style.html">Style</a> class that is identical
to the current <a class="xref" href="C1.Framework.Style.html">Style</a> (except for the <a class="xref" href="C1.Framework.Style.Locked.html#C1_Framework_Style_Locked">Locked</a> property,
which is always false for clones).</p>
</td>
      </tr>
      <tr>
        <td id="C1_Framework_Style_ColorFromBrush_System_Drawing_Brush_" data-uid="C1.Framework.Style.ColorFromBrush(System.Drawing.Brush)">
          <a class="xref" href="C1.Framework.Style.ColorFromBrush.html#C1_Framework_Style_ColorFromBrush_System_Drawing_Brush_">ColorFromBrush(Brush)</a>
        </td>
        <td class="markdown level1 summary"><p>Returns <a class="xref" href="https://learn.microsoft.com/dotnet/api/system.drawing.solidbrush.color">Color</a> if specified brush is a <a class="xref" href="https://learn.microsoft.com/dotnet/api/system.drawing.solidbrush">SolidBrush</a> or <a class="xref" href="https://learn.microsoft.com/dotnet/api/system.drawing.color.transparent">Transparent</a> otherwise.</p>
</td>
      </tr>
      <tr>
        <td id="C1_Framework_Style_Copy_C1_Framework_Style_" data-uid="C1.Framework.Style.Copy(C1.Framework.Style)">
          <a class="xref" href="C1.Framework.Style.Copy.html#C1_Framework_Style_Copy_C1_Framework_Style_">Copy(Style)</a>
        </td>
        <td class="markdown level1 summary"><p>Copies all attributes from another <a class="xref" href="C1.Framework.Style.html">Style</a> object.</p>
</td>
      </tr>
      <tr>
        <td id="C1_Framework_Style_Deflate_System_Drawing_Rectangle_" data-uid="C1.Framework.Style.Deflate(System.Drawing.Rectangle)">
          <a class="xref" href="C1.Framework.Style.Deflate.html#C1_Framework_Style_Deflate_System_Drawing_Rectangle_">Deflate(Rectangle)</a>
        </td>
        <td class="markdown level1 summary"><p>Deflates the specified <a class="xref" href="https://learn.microsoft.com/dotnet/api/system.drawing.rectangle">Rectangle</a> by the values of
the current <a class="xref" href="C1.Framework.Style.html">Style</a> margins, padding and border.</p>
</td>
      </tr>
      <tr>
        <td id="C1_Framework_Style_Deflate_System_Drawing_Size_" data-uid="C1.Framework.Style.Deflate(System.Drawing.Size)">
          <a class="xref" href="C1.Framework.Style.Deflate.html#C1_Framework_Style_Deflate_System_Drawing_Size_">Deflate(Size)</a>
        </td>
        <td class="markdown level1 summary"><p>Deflates the specified <a class="xref" href="https://learn.microsoft.com/dotnet/api/system.drawing.size">Size</a> by the values of
the current <a class="xref" href="C1.Framework.Style.html">Style</a> margins, padding and border.</p>
</td>
      </tr>
      <tr>
        <td id="C1_Framework_Style_Deflate_System_Int32_System_Int32_" data-uid="C1.Framework.Style.Deflate(System.Int32,System.Int32)">
          <a class="xref" href="C1.Framework.Style.Deflate.html#C1_Framework_Style_Deflate_System_Int32_System_Int32_">Deflate(int, int)</a>
        </td>
        <td class="markdown level1 summary"><p>Deflates the specified width and height by the values of
the current <a class="xref" href="C1.Framework.Style.html">Style</a> margins, padding and border.</p>
</td>
      </tr>
      <tr>
        <td id="C1_Framework_Style_DeflateHeight_System_Int32_" data-uid="C1.Framework.Style.DeflateHeight(System.Int32)">
          <a class="xref" href="C1.Framework.Style.DeflateHeight.html#C1_Framework_Style_DeflateHeight_System_Int32_">DeflateHeight(int)</a>
        </td>
        <td class="markdown level1 summary"><p>Deflates the specified height by the values of the current <a class="xref" href="C1.Framework.Style.html">Style</a> margins, padding and border.</p>
</td>
      </tr>
      <tr>
        <td id="C1_Framework_Style_DeflateWidth_System_Int32_" data-uid="C1.Framework.Style.DeflateWidth(System.Int32)">
          <a class="xref" href="C1.Framework.Style.DeflateWidth.html#C1_Framework_Style_DeflateWidth_System_Int32_">DeflateWidth(int)</a>
        </td>
        <td class="markdown level1 summary"><p>Deflates the specified width by the values of the current <a class="xref" href="C1.Framework.Style.html">Style</a> margins, padding and border.</p>
</td>
      </tr>
      <tr>
        <td id="C1_Framework_Style_Dispose" data-uid="C1.Framework.Style.Dispose">
          <a class="xref" href="C1.Framework.Style.Dispose.html#C1_Framework_Style_Dispose">Dispose()</a>
        </td>
        <td class="markdown level1 summary"><p>Releases all resources.</p>
</td>
      </tr>
      <tr>
        <td id="C1_Framework_Style_FormatValue_System_Object_" data-uid="C1.Framework.Style.FormatValue(System.Object)">
          <a class="xref" href="C1.Framework.Style.FormatValue.html#C1_Framework_Style_FormatValue_System_Object_">FormatValue(object)</a>
        </td>
        <td class="markdown level1 summary"><p>Converts value to string according to <a class="xref" href="C1.Framework.Style.Format.html#C1_Framework_Style_Format">Format</a> property value.</p>
</td>
      </tr>
      <tr>
        <td id="C1_Framework_Style_HasShadow" data-uid="C1.Framework.Style.HasShadow">
          <a class="xref" href="C1.Framework.Style.HasShadow.html#C1_Framework_Style_HasShadow">HasShadow()</a>
        </td>
        <td class="markdown level1 summary"><p>Gets whether this style or any of its sub-styles has a shadow.</p>
</td>
      </tr>
      <tr>
        <td id="C1_Framework_Style_Inflate_System_Drawing_Rectangle_" data-uid="C1.Framework.Style.Inflate(System.Drawing.Rectangle)">
          <a class="xref" href="C1.Framework.Style.Inflate.html#C1_Framework_Style_Inflate_System_Drawing_Rectangle_">Inflate(Rectangle)</a>
        </td>
        <td class="markdown level1 summary"><p>Inflates the specified <a class="xref" href="https://learn.microsoft.com/dotnet/api/system.drawing.rectangle">Rectangle</a> by the values of
the current <a class="xref" href="C1.Framework.Style.html">Style</a> margins, padding and border.</p>
</td>
      </tr>
      <tr>
        <td id="C1_Framework_Style_Inflate_System_Drawing_Size_" data-uid="C1.Framework.Style.Inflate(System.Drawing.Size)">
          <a class="xref" href="C1.Framework.Style.Inflate.html#C1_Framework_Style_Inflate_System_Drawing_Size_">Inflate(Size)</a>
        </td>
        <td class="markdown level1 summary"><p>Inflates the specified <a class="xref" href="https://learn.microsoft.com/dotnet/api/system.drawing.size">Size</a> by the values of
the current <a class="xref" href="C1.Framework.Style.html">Style</a> margins, padding and border.</p>
</td>
      </tr>
      <tr>
        <td id="C1_Framework_Style_Inflate_System_Int32_System_Int32_" data-uid="C1.Framework.Style.Inflate(System.Int32,System.Int32)">
          <a class="xref" href="C1.Framework.Style.Inflate.html#C1_Framework_Style_Inflate_System_Int32_System_Int32_">Inflate(int, int)</a>
        </td>
        <td class="markdown level1 summary"><p>Inflates the specified width and height by the values of
the current <a class="xref" href="C1.Framework.Style.html">Style</a> margins, padding and border.</p>
</td>
      </tr>
      <tr>
        <td id="C1_Framework_Style_InflateHeight_System_Int32_" data-uid="C1.Framework.Style.InflateHeight(System.Int32)">
          <a class="xref" href="C1.Framework.Style.InflateHeight.html#C1_Framework_Style_InflateHeight_System_Int32_">InflateHeight(int)</a>
        </td>
        <td class="markdown level1 summary"><p>Inflates the specified height by the values of the current <a class="xref" href="C1.Framework.Style.html">Style</a> margins, padding and border.</p>
</td>
      </tr>
      <tr>
        <td id="C1_Framework_Style_InflateWidth_System_Int32_" data-uid="C1.Framework.Style.InflateWidth(System.Int32)">
          <a class="xref" href="C1.Framework.Style.InflateWidth.html#C1_Framework_Style_InflateWidth_System_Int32_">InflateWidth(int)</a>
        </td>
        <td class="markdown level1 summary"><p>Inflates the specified width by the values of the current <a class="xref" href="C1.Framework.Style.html">Style</a> margins, padding and border.</p>
</td>
      </tr>
      <tr>
        <td id="C1_Framework_Style_Merge_C1_Framework_Style_" data-uid="C1.Framework.Style.Merge(C1.Framework.Style)">
          <a class="xref" href="C1.Framework.Style.Merge.html#C1_Framework_Style_Merge_C1_Framework_Style_">Merge(Style)</a>
        </td>
        <td class="markdown level1 summary"><p>Copies attributes set to non-default values from another <a class="xref" href="C1.Framework.Style.html">Style</a> object.</p>
</td>
      </tr>
      <tr>
        <td id="C1_Framework_Style_OnStyleChanged_System_EventArgs_" data-uid="C1.Framework.Style.OnStyleChanged(System.EventArgs)">
          <a class="xref" href="C1.Framework.Style.OnStyleChanged.html#C1_Framework_Style_OnStyleChanged_System_EventArgs_">OnStyleChanged(EventArgs)</a>
        </td>
        <td class="markdown level1 summary"><p>Raises the <a class="xref" href="C1.Framework.Style.StyleChanged.html">StyleChanged</a> event.</p>
</td>
      </tr>
    </tbody>
  </table>
  <h3 id="events">Events
</h3>
  <table class="table table-bordered table-condensed">
    <thead>
      <tr>
        <th>Name</th>
        <th>Description</th>
      </tr>
    </thead>
    <tbody>
      <tr>
        <td id="C1_Framework_Style_StyleChanged" data-uid="C1.Framework.Style.StyleChanged">
          <a class="xref" href="C1.Framework.Style.StyleChanged.html">StyleChanged</a>
        </td>
        <td class="markdown level1 summary"><p>Fires when any elements of the <a class="xref" href="C1.Framework.Style.html">Style</a> change.</p>
</td>
      </tr>
    </tbody>
  </table>

</div>
