Div1" class="codeSnippetContainerCode" style="display: block"><pre xml:space="preserve"><span class="keyword">public</span> <span class="keyword">static</span> <a href="https://docs.microsoft.com/dotnet/api/system.drawing.rectangle" target="_blank" rel="noopener noreferrer">Rectangle</a> <span class="identifier">ToRectangle</span>(
	<span class="keyword">this</span> <a href="https://api.apidocs.co/resolve/revit/2018/?asset_id=T:Autodesk.Revit.DB.Rectangle" target="_blank" rel="noopener noreferrer">Autodesk