# C1.Util.DX.DXGI.Output.GetDisplayModeList

## Content

<div class="doc-site-dotnet-api-container">



<h1 id="C1_Util_DX_DXGI_Output_GetDisplayModeList_" data-uid="C1.Util.DX.DXGI.Output.GetDisplayModeList*">GetDisplayModeList Method
</h1>
<div class="markdown level0 summary"></div>
<div class="markdown level0 conceptual"></div>



<a id="C1_Util_DX_DXGI_Output_GetDisplayModeList_" data-uid="C1.Util.DX.DXGI.Output.GetDisplayModeList*"></a>
<h4 id="C1_Util_DX_DXGI_Output_GetDisplayModeList_C1_Util_DX_DXGI_Format_C1_Util_DX_DXGI_DisplayModeEnumerationFlags_" data-uid="C1.Util.DX.DXGI.Output.GetDisplayModeList(C1.Util.DX.DXGI.Format,C1.Util.DX.DXGI.DisplayModeEnumerationFlags)">GetDisplayModeList(Format, DisplayModeEnumerationFlags)</h4>
<div class="markdown level1 summary"><p>Gets the display modes that match the requested format and other input options.</p>
</div>
<div class="markdown level1 conceptual"></div>
<h5 class="declaration">Declaration</h5>
<div class="codewrapper">
  <pre><code class="lang-csharp hljs">public ModeDescription[] GetDisplayModeList(Format format, DisplayModeEnumerationFlags flags)</code></pre>
</div>
<div class="codewrapper">
  <pre><code class="lang-vbnet hljs">Public Function GetDisplayModeList(format As Format, flags As DisplayModeEnumerationFlags) As ModeDescription()</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="C1.Util.DX.DXGI.Format.html">Format</a></td>
      <td><span class="parametername">format</span></td>
      <td></td>
    </tr>
    <tr>
      <td><a class="xref" href="C1.Util.DX.DXGI.DisplayModeEnumerationFlags.html">DisplayModeEnumerationFlags</a></td>
      <td><span class="parametername">flags</span></td>
      <td></td>
    </tr>
  </tbody>
</table>
<h5 class="returns">Returns</h5>
<table class="table table-bordered table-condensed">
  <thead>
    <tr>
      <th>Type</th>
      <th>Description</th>
    </tr>
  </thead>
  <tbody>
    <tr>
      <td><a class="xref" href="C1.Util.DX.DXGI.ModeDescription.html">ModeDescription</a>[]</td>
      <td></td>
    </tr>
  </tbody>
</table>


<a id="C1_Util_DX_DXGI_Output_GetDisplayModeList_" data-uid="C1.Util.DX.DXGI.Output.GetDisplayModeList*"></a>
<h4 id="C1_Util_DX_DXGI_Output_GetDisplayModeList_C1_Util_DX_DXGI_Format_System_Int32_System_Int32__C1_Util_DX_DXGI_ModeDescription___" data-uid="C1.Util.DX.DXGI.Output.GetDisplayModeList(C1.Util.DX.DXGI.Format,System.Int32,System.Int32@,C1.Util.DX.DXGI.ModeDescription[])">GetDisplayModeList(Format, int, ref int, ModeDescription[])</h4>
<div class="markdown level1 summary"><p>HRESULT IDXGIOutput::GetDisplayModeList([In] DXGI_FORMAT EnumFormat,[In] unsigned int Flags,[InOut] unsigned int* pNumModes,[Out, Buffer, Optional] DXGI_MODE_DESC* pDesc)</p>
</div>
<div class="markdown level1 conceptual"></div>
<h5 class="declaration">Declaration</h5>
<div class="codewrapper">
  <pre><code class="lang-csharp hljs">public void GetDisplayModeList(Format enumFormat, int flags, ref int numModesRef, ModeDescription[] descRef)</code></pre>
</div>
<div class="codewrapper">
  <pre><code class="lang-vbnet hljs">Public Sub GetDisplayModeList(enumFormat As Format, flags As Integer, ByRef numModesRef As Integer, descRef As ModeDescription())</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="C1.Util.DX.DXGI.Format.html">Format</a></td>
      <td><span class="parametername">enumFormat</span></td>
      <td></td>
    </tr>
    <tr>
      <td><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.int32">int</a></td>
      <td><span class="parametername">flags</span></td>
      <td></td>
    </tr>
    <tr>
      <td><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.int32">int</a></td>
      <td><span class="parametername">numModesRef</span></td>
      <td></td>
    </tr>
    <tr>
      <td><a class="xref" href="C1.Util.DX.DXGI.ModeDescription.html">ModeDescription</a>[]</td>
      <td><span class="parametername">descRef</span></td>
      <td></td>
    </tr>
  </tbody>
</table>
</div>
