title: Cannot implicitly convert type 'string' to 'System.Drawing.SizeF'
body: <p>While trying to convert the <code>string</code> "A3" value to <code>System.Drawing.SizeF</code> faced with this error:</p>
  
  <blockquote>
    <p>Cannot implicitly convert type 'string' to 'System.Drawing.SizeF'</p>
  </blockquote>
  
  <p>An example of what I have tried is:</p>
  
  <pre><code>SizeF f = new SizeF();
  f = "A3";
  </code></pre>
  
  <p>In my scenario, I'll pass this string value through one variable called <code>pdfSize</code>. The size can be anything like A3, A4 etc. How can i identify that dimensions for A4, A0 as mentioned for A3 is 297 mm * 420 mm.</p>
  
  <p><strong>Question:</strong> How to convert the <code>string</code> value like "A3" or "A4" into the <code>System.Drawing.SizeF</code> value? </p>