# C1.Util.DX.Direct2D.ResultCode

## Content

<div class="doc-site-dotnet-api-container">



  <h1 id="C1_Util_DX_Direct2D_ResultCode" data-uid="C1.Util.DX.Direct2D.ResultCode" class="text-break">ResultCode Class
</h1>
  <div class="markdown level0 summary"><p>D2D result codes.</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">ResultCode</span></div>
  </div>
  <h6><strong>Namespace</strong>: <a class="xref" href="C1.Util.DX.Direct2D.html">C1.Util.DX.Direct2D</a></h6>
  <h6><strong>Assembly</strong>: C1.WPF.DX.4.6.2.dll</h6>
  <h5 id="C1_Util_DX_Direct2D_ResultCode_syntax">Syntax</h5>
  <div class="codewrapper">
    <pre><code class="lang-csharp hljs">public static class ResultCode</code></pre>
  </div>
  <div class="codewrapper">
    <pre><code class="lang-vbnet hljs">Public Module ResultCode</code></pre>
  </div>
  <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_Util_DX_Direct2D_ResultCode_BadNumber" data-uid="C1.Util.DX.Direct2D.ResultCode.BadNumber">
          <a class="xref" href="C1.Util.DX.Direct2D.ResultCode.BadNumber.html">BadNumber</a>
        </td>
        <td class="markdown level1 summary"><p>D2DERR_BAD_NUMBER</p>
</td>
      </tr>
      <tr>
        <td id="C1_Util_DX_Direct2D_ResultCode_BitmapBoundAsTarget" data-uid="C1.Util.DX.Direct2D.ResultCode.BitmapBoundAsTarget">
          <a class="xref" href="C1.Util.DX.Direct2D.ResultCode.BitmapBoundAsTarget.html">BitmapBoundAsTarget</a>
        </td>
        <td class="markdown level1 summary"><p>D2DERR_BITMAP_BOUND_AS_TARGET</p>
</td>
      </tr>
      <tr>
        <td id="C1_Util_DX_Direct2D_ResultCode_BitmapCannotDraw" data-uid="C1.Util.DX.Direct2D.ResultCode.BitmapCannotDraw">
          <a class="xref" href="C1.Util.DX.Direct2D.ResultCode.BitmapCannotDraw.html">BitmapCannotDraw</a>
        </td>
        <td class="markdown level1 summary"><p>D2DERR_BITMAP_CANNOT_DRAW</p>
</td>
      </tr>
      <tr>
        <td id="C1_Util_DX_Direct2D_ResultCode_CyclicGraph" data-uid="C1.Util.DX.Direct2D.ResultCode.CyclicGraph">
          <a class="xref" href="C1.Util.DX.Direct2D.ResultCode.CyclicGraph.html">CyclicGraph</a>
        </td>
        <td class="markdown level1 summary"><p>D2DERR_CYCLIC_GRAPH</p>
</td>
      </tr>
      <tr>
        <td id="C1_Util_DX_Direct2D_ResultCode_DisplayFormatNotSupported" data-uid="C1.Util.DX.Direct2D.ResultCode.DisplayFormatNotSupported">
          <a class="xref" href="C1.Util.DX.Direct2D.ResultCode.DisplayFormatNotSupported.html">DisplayFormatNotSupported</a>
        </td>
        <td class="markdown level1 summary"><p>D2DERR_DISPLAY_FORMAT_NOT_SUPPORTED</p>
</td>
      </tr>
      <tr>
        <td id="C1_Util_DX_Direct2D_ResultCode_DisplayStateInvalid" data-uid="C1.Util.DX.Direct2D.ResultCode.DisplayStateInvalid">
          <a class="xref" href="C1.Util.DX.Direct2D.ResultCode.DisplayStateInvalid.html">DisplayStateInvalid</a>
        </td>
        <td class="markdown level1 summary"><p>D2DERR_DISPLAY_STATE_INVALID</p>
</td>
      </tr>
      <tr>
        <td id="C1_Util_DX_Direct2D_ResultCode_EffectIsNotRegistered" data-uid="C1.Util.DX.Direct2D.ResultCode.EffectIsNotRegistered">
          <a class="xref" href="C1.Util.DX.Direct2D.ResultCode.EffectIsNotRegistered.html">EffectIsNotRegistered</a>
        </td>
        <td class="markdown level1 summary"><p>D2DERR_EFFECT_IS_NOT_REGISTERED</p>
</td>
      </tr>
      <tr>
        <td id="C1_Util_DX_Direct2D_ResultCode_ExceedsMaximumBitmapSize" data-uid="C1.Util.DX.Direct2D.ResultCode.ExceedsMaximumBitmapSize">
          <a class="xref" href="C1.Util.DX.Direct2D.ResultCode.ExceedsMaximumBitmapSize.html">ExceedsMaximumBitmapSize</a>
        </td>
        <td class="markdown level1 summary"><p>D2DERR_EXCEEDS_MAX_BITMAP_SIZE</p>
</td>
      </tr>
      <tr>
        <td id="C1_Util_DX_Direct2D_ResultCode_IncompatibleBrushTypes" data-uid="C1.Util.DX.Direct2D.ResultCode.IncompatibleBrushTypes">
          <a class="xref" href="C1.Util.DX.Direct2D.ResultCode.IncompatibleBrushTypes.html">IncompatibleBrushTypes</a>
        </td>
        <td class="markdown level1 summary"><p>D2DERR_INCOMPATIBLE_BRUSH_TYPES</p>
</td>
      </tr>
      <tr>
        <td id="C1_Util_DX_Direct2D_ResultCode_InsufficientDeviceCapabilities" data-uid="C1.Util.DX.Direct2D.ResultCode.InsufficientDeviceCapabilities">
          <a class="xref" href="C1.Util.DX.Direct2D.ResultCode.InsufficientDeviceCapabilities.html">InsufficientDeviceCapabilities</a>
        </td>
        <td class="markdown level1 summary"><p>D2DERR_INSUFFICIENT_DEVICE_CAPABILITIES</p>
</td>
      </tr>
      <tr>
        <td id="C1_Util_DX_Direct2D_ResultCode_IntermediateTooLarge" data-uid="C1.Util.DX.Direct2D.ResultCode.IntermediateTooLarge">
          <a class="xref" href="C1.Util.DX.Direct2D.ResultCode.IntermediateTooLarge.html">IntermediateTooLarge</a>
        </td>
        <td class="markdown level1 summary"><p>D2DERR_INTERMEDIATE_TOO_LARGE</p>
</td>
      </tr>
      <tr>
        <td id="C1_Util_DX_Direct2D_ResultCode_InternalError" data-uid="C1.Util.DX.Direct2D.ResultCode.InternalError">
          <a class="xref" href="C1.Util.DX.Direct2D.ResultCode.InternalError.html">InternalError</a>
        </td>
        <td class="markdown level1 summary"><p>D2DERR_INTERNAL_ERROR</p>
</td>
      </tr>
      <tr>
        <td id="C1_Util_DX_Direct2D_ResultCode_InvalidCall" data-uid="C1.Util.DX.Direct2D.ResultCode.InvalidCall">
          <a class="xref" href="C1.Util.DX.Direct2D.ResultCode.InvalidCall.html">InvalidCall</a>
        </td>
        <td class="markdown level1 summary"><p>D2DERR_INVALID_CALL</p>
</td>
      </tr>
      <tr>
        <td id="C1_Util_DX_Direct2D_ResultCode_InvalidGraphConfiguration" data-uid="C1.Util.DX.Direct2D.ResultCode.InvalidGraphConfiguration">
          <a class="xref" href="C1.Util.DX.Direct2D.ResultCode.InvalidGraphConfiguration.html">InvalidGraphConfiguration</a>
        </td>
        <td class="markdown level1 summary"><p>D2DERR_INVALID_GRAPH_CONFIGURATION</p>
</td>
      </tr>
      <tr>
        <td id="C1_Util_DX_Direct2D_ResultCode_InvalidInternalGraphConfiguration" data-uid="C1.Util.DX.Direct2D.ResultCode.InvalidInternalGraphConfiguration">
          <a class="xref" href="C1.Util.DX.Direct2D.ResultCode.InvalidInternalGraphConfiguration.html">InvalidInternalGraphConfiguration</a>
        </td>
        <td class="markdown level1 summary"><p>D2DERR_INVALID_INTERNAL_GRAPH_CONFIGURATION</p>
</td>
      </tr>
      <tr>
        <td id="C1_Util_DX_Direct2D_ResultCode_InvalidProperty" data-uid="C1.Util.DX.Direct2D.ResultCode.InvalidProperty">
          <a class="xref" href="C1.Util.DX.Direct2D.ResultCode.InvalidProperty.html">InvalidProperty</a>
        </td>
        <td class="markdown level1 summary"><p>D2DERR_INVALID_PROPERTY</p>
</td>
      </tr>
      <tr>
        <td id="C1_Util_DX_Direct2D_ResultCode_InvalidTarget" data-uid="C1.Util.DX.Direct2D.ResultCode.InvalidTarget">
          <a class="xref" href="C1.Util.DX.Direct2D.ResultCode.InvalidTarget.html">InvalidTarget</a>
        </td>
        <td class="markdown level1 summary"><p>D2DERR_INVALID_TARGET</p>
</td>
      </tr>
      <tr>
        <td id="C1_Util_DX_Direct2D_ResultCode_LayerAlreadyInUse" data-uid="C1.Util.DX.Direct2D.ResultCode.LayerAlreadyInUse">
          <a class="xref" href="C1.Util.DX.Direct2D.ResultCode.LayerAlreadyInUse.html">LayerAlreadyInUse</a>
        </td>
        <td class="markdown level1 summary"><p>D2DERR_LAYER_ALREADY_IN_USE</p>
</td>
      </tr>
      <tr>
        <td id="C1_Util_DX_Direct2D_ResultCode_MaximumTextureSizeExceeded" data-uid="C1.Util.DX.Direct2D.ResultCode.MaximumTextureSizeExceeded">
          <a class="xref" href="C1.Util.DX.Direct2D.ResultCode.MaximumTextureSizeExceeded.html">MaximumTextureSizeExceeded</a>
        </td>
        <td class="markdown level1 summary"><p>D2DERR_MAX_TEXTURE_SIZE_EXCEEDED</p>
</td>
      </tr>
      <tr>
        <td id="C1_Util_DX_Direct2D_ResultCode_NoHardwareDevice" data-uid="C1.Util.DX.Direct2D.ResultCode.NoHardwareDevice">
          <a class="xref" href="C1.Util.DX.Direct2D.ResultCode.NoHardwareDevice.html">NoHardwareDevice</a>
        </td>
        <td class="markdown level1 summary"><p>D2DERR_NO_HARDWARE_DEVICE</p>
</td>
      </tr>
      <tr>
        <td id="C1_Util_DX_Direct2D_ResultCode_NoSubProperties" data-uid="C1.Util.DX.Direct2D.ResultCode.NoSubProperties">
          <a class="xref" href="C1.Util.DX.Direct2D.ResultCode.NoSubProperties.html">NoSubProperties</a>
        </td>
        <td class="markdown level1 summary"><p>D2DERR_NO_SUBPROPERTIES</p>
</td>
      </tr>
      <tr>
        <td id="C1_Util_DX_Direct2D_ResultCode_NotInitializeD" data-uid="C1.Util.DX.Direct2D.ResultCode.NotInitializeD">
          <a class="xref" href="C1.Util.DX.Direct2D.ResultCode.NotInitializeD.html">NotInitializeD</a>
        </td>
        <td class="markdown level1 summary"><p>D2DERR_NOT_INITIALIZED</p>
</td>
      </tr>
      <tr>
        <td id="C1_Util_DX_Direct2D_ResultCode_OriginalTargetNotBound" data-uid="C1.Util.DX.Direct2D.ResultCode.OriginalTargetNotBound">
          <a class="xref" href="C1.Util.DX.Direct2D.ResultCode.OriginalTargetNotBound.html">OriginalTargetNotBound</a>
        </td>
        <td class="markdown level1 summary"><p>D2DERR_ORIGINAL_TARGET_NOT_BOUND</p>
</td>
      </tr>
      <tr>
        <td id="C1_Util_DX_Direct2D_ResultCode_OutstandingBitmapReferences" data-uid="C1.Util.DX.Direct2D.ResultCode.OutstandingBitmapReferences">
          <a class="xref" href="C1.Util.DX.Direct2D.ResultCode.OutstandingBitmapReferences.html">OutstandingBitmapReferences</a>
        </td>
        <td class="markdown level1 summary"><p>D2DERR_OUTSTANDING_BITMAP_REFERENCES</p>
</td>
      </tr>
      <tr>
        <td id="C1_Util_DX_Direct2D_ResultCode_PopCallDidNotMatchPush" data-uid="C1.Util.DX.Direct2D.ResultCode.PopCallDidNotMatchPush">
          <a class="xref" href="C1.Util.DX.Direct2D.ResultCode.PopCallDidNotMatchPush.html">PopCallDidNotMatchPush</a>
        </td>
        <td class="markdown level1 summary"><p>D2DERR_POP_CALL_DID_NOT_MATCH_PUSH</p>
</td>
      </tr>
      <tr>
        <td id="C1_Util_DX_Direct2D_ResultCode_PrintFormatNotSupported" data-uid="C1.Util.DX.Direct2D.ResultCode.PrintFormatNotSupported">
          <a class="xref" href="C1.Util.DX.Direct2D.ResultCode.PrintFormatNotSupported.html">PrintFormatNotSupported</a>
        </td>
        <td class="markdown level1 summary"><p>D2DERR_PRINT_FORMAT_NOT_SUPPORTED</p>
</td>
      </tr>
      <tr>
        <td id="C1_Util_DX_Direct2D_ResultCode_PrintJobClosed" data-uid="C1.Util.DX.Direct2D.ResultCode.PrintJobClosed">
          <a class="xref" href="C1.Util.DX.Direct2D.ResultCode.PrintJobClosed.html">PrintJobClosed</a>
        </td>
        <td class="markdown level1 summary"><p>D2DERR_PRINT_JOB_CLOSED</p>
</td>
      </tr>
      <tr>
        <td id="C1_Util_DX_Direct2D_ResultCode_PushPopUnbalanced" data-uid="C1.Util.DX.Direct2D.ResultCode.PushPopUnbalanced">
          <a class="xref" href="C1.Util.DX.Direct2D.ResultCode.PushPopUnbalanced.html">PushPopUnbalanced</a>
        </td>
        <td class="markdown level1 summary"><p>D2DERR_PUSH_POP_UNBALANCED</p>
</td>
      </tr>
      <tr>
        <td id="C1_Util_DX_Direct2D_ResultCode_RecreateTarget" data-uid="C1.Util.DX.Direct2D.ResultCode.RecreateTarget">
          <a class="xref" href="C1.Util.DX.Direct2D.ResultCode.RecreateTarget.html">RecreateTarget</a>
        </td>
        <td class="markdown level1 summary"><p>D2DERR_RECREATE_TARGET</p>
</td>
      </tr>
      <tr>
        <td id="C1_Util_DX_Direct2D_ResultCode_RenderTargetHasLayerOrCliprect" data-uid="C1.Util.DX.Direct2D.ResultCode.RenderTargetHasLayerOrCliprect">
          <a class="xref" href="C1.Util.DX.Direct2D.ResultCode.RenderTargetHasLayerOrCliprect.html">RenderTargetHasLayerOrCliprect</a>
        </td>
        <td class="markdown level1 summary"><p>D2DERR_RENDER_TARGET_HAS_LAYER_OR_CLIPRECT</p>
</td>
      </tr>
      <tr>
        <td id="C1_Util_DX_Direct2D_ResultCode_ScannerFailed" data-uid="C1.Util.DX.Direct2D.ResultCode.ScannerFailed">
          <a class="xref" href="C1.Util.DX.Direct2D.ResultCode.ScannerFailed.html">ScannerFailed</a>
        </td>
        <td class="markdown level1 summary"><p>D2DERR_SCANNER_FAILED</p>
</td>
      </tr>
      <tr>
        <td id="C1_Util_DX_Direct2D_ResultCode_ScreenAccessDenied" data-uid="C1.Util.DX.Direct2D.ResultCode.ScreenAccessDenied">
          <a class="xref" href="C1.Util.DX.Direct2D.ResultCode.ScreenAccessDenied.html">ScreenAccessDenied</a>
        </td>
        <td class="markdown level1 summary"><p>D2DERR_SCREEN_ACCESS_DENIED</p>
</td>
      </tr>
      <tr>
        <td id="C1_Util_DX_Direct2D_ResultCode_ShaderCompileFailed" data-uid="C1.Util.DX.Direct2D.ResultCode.ShaderCompileFailed">
          <a class="xref" href="C1.Util.DX.Direct2D.ResultCode.ShaderCompileFailed.html">ShaderCompileFailed</a>
        </td>
        <td class="markdown level1 summary"><p>D2DERR_SHADER_COMPILE_FAILED</p>
</td>
      </tr>
      <tr>
        <td id="C1_Util_DX_Direct2D_ResultCode_TargetNotGdiCompatible" data-uid="C1.Util.DX.Direct2D.ResultCode.TargetNotGdiCompatible">
          <a class="xref" href="C1.Util.DX.Direct2D.ResultCode.TargetNotGdiCompatible.html">TargetNotGdiCompatible</a>
        </td>
        <td class="markdown level1 summary"><p>D2DERR_TARGET_NOT_GDI_COMPATIBLE</p>
</td>
      </tr>
      <tr>
        <td id="C1_Util_DX_Direct2D_ResultCode_TextEffectIsWrongType" data-uid="C1.Util.DX.Direct2D.ResultCode.TextEffectIsWrongType">
          <a class="xref" href="C1.Util.DX.Direct2D.ResultCode.TextEffectIsWrongType.html">TextEffectIsWrongType</a>
        </td>
        <td class="markdown level1 summary"><p>D2DERR_TEXT_EFFECT_IS_WRONG_TYPE</p>
</td>
      </tr>
      <tr>
        <td id="C1_Util_DX_Direct2D_ResultCode_TextRendererNotReleased" data-uid="C1.Util.DX.Direct2D.ResultCode.TextRendererNotReleased">
          <a class="xref" href="C1.Util.DX.Direct2D.ResultCode.TextRendererNotReleased.html">TextRendererNotReleased</a>
        </td>
        <td class="markdown level1 summary"><p>D2DERR_TEXT_RENDERER_NOT_RELEASED</p>
</td>
      </tr>
      <tr>
        <td id="C1_Util_DX_Direct2D_ResultCode_TooManyShaderElements" data-uid="C1.Util.DX.Direct2D.ResultCode.TooManyShaderElements">
          <a class="xref" href="C1.Util.DX.Direct2D.ResultCode.TooManyShaderElements.html">TooManyShaderElements</a>
        </td>
        <td class="markdown level1 summary"><p>D2DERR_TOO_MANY_SHADER_ELEMENTS</p>
</td>
      </tr>
      <tr>
        <td id="C1_Util_DX_Direct2D_ResultCode_TooManyTransformInputs" data-uid="C1.Util.DX.Direct2D.ResultCode.TooManyTransformInputs">
          <a class="xref" href="C1.Util.DX.Direct2D.ResultCode.TooManyTransformInputs.html">TooManyTransformInputs</a>
        </td>
        <td class="markdown level1 summary"><p>D2DERR_TOO_MANY_TRANSFORM_INPUTS</p>
</td>
      </tr>
      <tr>
        <td id="C1_Util_DX_Direct2D_ResultCode_UnsupportedOperation" data-uid="C1.Util.DX.Direct2D.ResultCode.UnsupportedOperation">
          <a class="xref" href="C1.Util.DX.Direct2D.ResultCode.UnsupportedOperation.html">UnsupportedOperation</a>
        </td>
        <td class="markdown level1 summary"><p>D2DERR_UNSUPPORTED_OPERATION</p>
</td>
      </tr>
      <tr>
        <td id="C1_Util_DX_Direct2D_ResultCode_UnsupportedVersion" data-uid="C1.Util.DX.Direct2D.ResultCode.UnsupportedVersion">
          <a class="xref" href="C1.Util.DX.Direct2D.ResultCode.UnsupportedVersion.html">UnsupportedVersion</a>
        </td>
        <td class="markdown level1 summary"><p>D2DERR_UNSUPPORTED_VERSION</p>
</td>
      </tr>
      <tr>
        <td id="C1_Util_DX_Direct2D_ResultCode_Win32Error" data-uid="C1.Util.DX.Direct2D.ResultCode.Win32Error">
          <a class="xref" href="C1.Util.DX.Direct2D.ResultCode.Win32Error.html">Win32Error</a>
        </td>
        <td class="markdown level1 summary"><p>D2DERR_WIN32_ERROR</p>
</td>
      </tr>
      <tr>
        <td id="C1_Util_DX_Direct2D_ResultCode_WrongFactory" data-uid="C1.Util.DX.Direct2D.ResultCode.WrongFactory">
          <a class="xref" href="C1.Util.DX.Direct2D.ResultCode.WrongFactory.html">WrongFactory</a>
        </td>
        <td class="markdown level1 summary"><p>D2DERR_WRONG_FACTORY</p>
</td>
      </tr>
      <tr>
        <td id="C1_Util_DX_Direct2D_ResultCode_WrongResourceDomain" data-uid="C1.Util.DX.Direct2D.ResultCode.WrongResourceDomain">
          <a class="xref" href="C1.Util.DX.Direct2D.ResultCode.WrongResourceDomain.html">WrongResourceDomain</a>
        </td>
        <td class="markdown level1 summary"><p>D2DERR_WRONG_RESOURCE_DOMAIN</p>
</td>
      </tr>
      <tr>
        <td id="C1_Util_DX_Direct2D_ResultCode_WrongState" data-uid="C1.Util.DX.Direct2D.ResultCode.WrongState">
          <a class="xref" href="C1.Util.DX.Direct2D.ResultCode.WrongState.html">WrongState</a>
        </td>
        <td class="markdown level1 summary"><p>D2DERR_WRONG_STATE</p>
</td>
      </tr>
      <tr>
        <td id="C1_Util_DX_Direct2D_ResultCode_ZeroVector" data-uid="C1.Util.DX.Direct2D.ResultCode.ZeroVector">
          <a class="xref" href="C1.Util.DX.Direct2D.ResultCode.ZeroVector.html">ZeroVector</a>
        </td>
        <td class="markdown level1 summary"><p>D2DERR_ZERO_VECTOR</p>
</td>
      </tr>
    </tbody>
  </table>

</div>
