# GrapeCity.Documents.Pdf.Spec.IPdfDictExt.TryGetMatrix3D

## Content

<div class="doc-site-dotnet-api-container">



<h1 id="GrapeCity_Documents_Pdf_Spec_IPdfDictExt_TryGetMatrix3D_" data-uid="GrapeCity.Documents.Pdf.Spec.IPdfDictExt.TryGetMatrix3D*">TryGetMatrix3D Method
</h1>
<div class="markdown level0 summary"></div>
<div class="markdown level0 conceptual"></div>



<a id="GrapeCity_Documents_Pdf_Spec_IPdfDictExt_TryGetMatrix3D_" data-uid="GrapeCity.Documents.Pdf.Spec.IPdfDictExt.TryGetMatrix3D*"></a>
<h4 id="GrapeCity_Documents_Pdf_Spec_IPdfDictExt_TryGetMatrix3D_GrapeCity_Documents_Pdf_Spec_IPdfDict_GrapeCity_Documents_Pdf_Spec_PdfName_GrapeCity_Documents_Pdf_Util_Matrix3D__" data-uid="GrapeCity.Documents.Pdf.Spec.IPdfDictExt.TryGetMatrix3D(GrapeCity.Documents.Pdf.Spec.IPdfDict,GrapeCity.Documents.Pdf.Spec.PdfName,GrapeCity.Documents.Pdf.Util.Matrix3D@)">TryGetMatrix3D(IPdfDict, PdfName, out Matrix3D)</h4>
<div class="markdown level1 summary"><p>Tries to get the <a class="xref" href="GrapeCity.Documents.Pdf.Util.Matrix3D.html">Matrix3D</a> associated with the specified key
(in a PDF a <a class="xref" href="GrapeCity.Documents.Pdf.Util.Matrix3D.html">Matrix3D</a> should be represented as an array of 12 floats).</p>
<p>
Adds a warning to <span class="xref">GrapeCity.Documents.Pdf.GcPdfDocument.ParserLog</span> if the value exists but cannot be converted to <a class="xref" href="GrapeCity.Documents.Pdf.Util.Matrix3D.html">Matrix3D</a>.</p>
</div>
<div class="markdown level1 conceptual"></div>
<h5 class="declaration">Declaration</h5>
<div class="codewrapper">
  <pre><code class="lang-csharp hljs">public static bool TryGetMatrix3D(this IPdfDict dict, PdfName key, out Matrix3D value)</code></pre>
</div>
<div class="codewrapper">
  <pre><code class="lang-vbnet hljs">Public Shared Function TryGetMatrix3D(dict As IPdfDict, key As PdfName, ByRef value As Matrix3D) As Boolean</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="GrapeCity.Documents.Pdf.Spec.IPdfDict.html">IPdfDict</a></td>
      <td><span class="parametername">dict</span></td>
      <td><p>The current dictionary.</p>
</td>
    </tr>
    <tr>
      <td><a class="xref" href="GrapeCity.Documents.Pdf.Spec.PdfName.html">PdfName</a></td>
      <td><span class="parametername">key</span></td>
      <td><p>The key of the value to get.</p>
</td>
    </tr>
    <tr>
      <td><a class="xref" href="GrapeCity.Documents.Pdf.Util.Matrix3D.html">Matrix3D</a></td>
      <td><span class="parametername">value</span></td>
      <td><p>OUT: the value associated with the specified key.</p>
</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="https://learn.microsoft.com/dotnet/api/system.boolean">bool</a></td>
      <td><p>True if the key was found and the value could be converted to a <a class="xref" href="GrapeCity.Documents.Pdf.Util.Matrix3D.html">Matrix3D</a>, false otherwise.</p>
</td>
    </tr>
  </tbody>
</table>
</div>
