# GrapeCity.Documents.Svg.SvgPreserveAspectRatio

## Content

<div class="doc-site-dotnet-api-container">



  <h1 id="GrapeCity_Documents_Svg_SvgPreserveAspectRatio" data-uid="GrapeCity.Documents.Svg.SvgPreserveAspectRatio" class="text-break">SvgPreserveAspectRatio Struct
</h1>
  <div class="markdown level0 summary"><p>Indicates whether or not to force uniform scaling</p>
</div>
  <div class="markdown level0 conceptual"></div>
  <div class="implements">
    <h5>Implements</h5>
    <div><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.iequatable-1">IEquatable</a>&lt;<a class="xref" href="GrapeCity.Documents.Svg.SvgPreserveAspectRatio.html">SvgPreserveAspectRatio</a>&gt;</div>
  </div>
  <h6><strong>Namespace</strong>: <a class="xref" href="GrapeCity.Documents.Svg.html">GrapeCity.Documents.Svg</a></h6>
  <h6><strong>Assembly</strong>: DS.Documents.Imaging.dll</h6>
  <h5 id="GrapeCity_Documents_Svg_SvgPreserveAspectRatio_syntax">Syntax</h5>
  <div class="codewrapper">
    <pre><code class="lang-csharp hljs">public struct SvgPreserveAspectRatio : IEquatable&lt;SvgPreserveAspectRatio&gt;</code></pre>
  </div>
  <div class="codewrapper">
    <pre><code class="lang-vbnet hljs">Public Structure SvgPreserveAspectRatio
    Implements IEquatable(Of SvgPreserveAspectRatio)</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_Svg_SvgPreserveAspectRatio__ctor_GrapeCity_Documents_Svg_SvgAspectRatioAlign_GrapeCity_Documents_Svg_SvgMeetOrSlice_" data-uid="GrapeCity.Documents.Svg.SvgPreserveAspectRatio.#ctor(GrapeCity.Documents.Svg.SvgAspectRatioAlign,GrapeCity.Documents.Svg.SvgMeetOrSlice)">
          <a class="xref" href="GrapeCity.Documents.Svg.SvgPreserveAspectRatio.-ctor.html#GrapeCity_Documents_Svg_SvgPreserveAspectRatio__ctor_GrapeCity_Documents_Svg_SvgAspectRatioAlign_GrapeCity_Documents_Svg_SvgMeetOrSlice_">SvgPreserveAspectRatio(SvgAspectRatioAlign, SvgMeetOrSlice)</a>
        </td>
        <td class="markdown level1 summary"><p>Initializes a new instance of the <a class="xref" href="GrapeCity.Documents.Svg.SvgPreserveAspectRatio.html">SvgPreserveAspectRatio</a> struct.</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="GrapeCity_Documents_Svg_SvgPreserveAspectRatio_Default" data-uid="GrapeCity.Documents.Svg.SvgPreserveAspectRatio.Default">
          <a class="xref" href="GrapeCity.Documents.Svg.SvgPreserveAspectRatio.Default.html">Default</a>
        </td>
        <td class="markdown level1 summary"><p>Represents a default value of <a class="xref" href="GrapeCity.Documents.Svg.SvgPreserveAspectRatio.html">SvgPreserveAspectRatio</a>.</p>
</td>
      </tr>
      <tr>
        <td id="GrapeCity_Documents_Svg_SvgPreserveAspectRatio_None" data-uid="GrapeCity.Documents.Svg.SvgPreserveAspectRatio.None">
          <a class="xref" href="GrapeCity.Documents.Svg.SvgPreserveAspectRatio.None.html">None</a>
        </td>
        <td class="markdown level1 summary"><p>Represents a <a class="xref" href="GrapeCity.Documents.Svg.SvgPreserveAspectRatio.html">SvgPreserveAspectRatio</a> that does not force uniform scaling.</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_Svg_SvgPreserveAspectRatio_Align" data-uid="GrapeCity.Documents.Svg.SvgPreserveAspectRatio.Align">
          <a class="xref" href="GrapeCity.Documents.Svg.SvgPreserveAspectRatio.Align.html#GrapeCity_Documents_Svg_SvgPreserveAspectRatio_Align">Align</a>
        </td>
        <td class="markdown level1 summary"><p>Gets or sets a value indicating whether to force uniform scaling and, if so, the alignment method to use.</p>
</td>
      </tr>
      <tr>
        <td id="GrapeCity_Documents_Svg_SvgPreserveAspectRatio_MeetOrSlice" data-uid="GrapeCity.Documents.Svg.SvgPreserveAspectRatio.MeetOrSlice">
          <a class="xref" href="GrapeCity.Documents.Svg.SvgPreserveAspectRatio.MeetOrSlice.html#GrapeCity_Documents_Svg_SvgPreserveAspectRatio_MeetOrSlice">MeetOrSlice</a>
        </td>
        <td class="markdown level1 summary"><p>Gets or sets a value specifying the method of scaling the element's 'viewBox' within the SVG viewport.</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="GrapeCity_Documents_Svg_SvgPreserveAspectRatio_Equals_GrapeCity_Documents_Svg_SvgPreserveAspectRatio_" data-uid="GrapeCity.Documents.Svg.SvgPreserveAspectRatio.Equals(GrapeCity.Documents.Svg.SvgPreserveAspectRatio)">
          <a class="xref" href="GrapeCity.Documents.Svg.SvgPreserveAspectRatio.Equals.html#GrapeCity_Documents_Svg_SvgPreserveAspectRatio_Equals_GrapeCity_Documents_Svg_SvgPreserveAspectRatio_">Equals(SvgPreserveAspectRatio)</a>
        </td>
        <td class="markdown level1 summary"><p>Determines whether the specified <a class="xref" href="GrapeCity.Documents.Svg.SvgPreserveAspectRatio.html">SvgPreserveAspectRatio</a> is equal to this instance.</p>
</td>
      </tr>
      <tr>
        <td id="GrapeCity_Documents_Svg_SvgPreserveAspectRatio_Equals_System_Object_" data-uid="GrapeCity.Documents.Svg.SvgPreserveAspectRatio.Equals(System.Object)">
          <a class="xref" href="GrapeCity.Documents.Svg.SvgPreserveAspectRatio.Equals.html#GrapeCity_Documents_Svg_SvgPreserveAspectRatio_Equals_System_Object_">Equals(object)</a>
        </td>
        <td class="markdown level1 summary"><p>Determines whether the specified object is equal to this instance.</p>
</td>
      </tr>
      <tr>
        <td id="GrapeCity_Documents_Svg_SvgPreserveAspectRatio_GetHashCode" data-uid="GrapeCity.Documents.Svg.SvgPreserveAspectRatio.GetHashCode">
          <a class="xref" href="GrapeCity.Documents.Svg.SvgPreserveAspectRatio.GetHashCode.html#GrapeCity_Documents_Svg_SvgPreserveAspectRatio_GetHashCode">GetHashCode()</a>
        </td>
        <td class="markdown level1 summary"><p>Returns a hash code for this struct.</p>
</td>
      </tr>
      <tr>
        <td id="GrapeCity_Documents_Svg_SvgPreserveAspectRatio_ToString" data-uid="GrapeCity.Documents.Svg.SvgPreserveAspectRatio.ToString">
          <a class="xref" href="GrapeCity.Documents.Svg.SvgPreserveAspectRatio.ToString.html#GrapeCity_Documents_Svg_SvgPreserveAspectRatio_ToString">ToString()</a>
        </td>
        <td class="markdown level1 summary"><p>Returns a string that represents the current struct.</p>
</td>
      </tr>
    </tbody>
  </table>

</div>
