<summary>
CreateTextLayout takes a string, format, and associated constraints
and produces an object representing the fully analyzed
and formatted result.
</summary>
<param name="string">The string to layout.</param>
<param name="stringLength">The length of the string.</param>
<param name="textFormat">The format to apply to the string.</param>
<param name="maxWidth">Width of the layout box.</param>
<param name="maxHeight">Height of the layout box.</param>
<param name="textLayout">The resultant object.</param>
<returns>
Standard HRESULT error code.
</returns>
<summary> CreateTextLayout takes a string, format, and associated constraints and produces an object representing the fully analyzed and formatted result. </summary> <param name="string">The string to layout.</param> <param name="stringLength">The length of the string.</param> <param name="textFormat">The format to apply to the string.</param> <param name="maxWidth">Width of the layout box.</param> <param name="maxHeight">Height of the layout box.</param> <param name="textLayout">The resultant object.</param> <returns> Standard HRESULT error code. </returns>