SharpDX.DirectWrite.TextLayout.TextLayout C# (CSharp) Method

TextLayout() public method

Takes a string, text format, and associated constraints, and produces an object that represents the fully analyzed and formatted result.
public TextLayout ( Factory factory, string text, SharpDX textFormat, float maxWidth, float maxHeight ) : System
factory Factory an instance of
text string An array of characters that contains the string to create a new object from. This array must be of length stringLength and can contain embedded NULL characters.
textFormat SharpDX A pointer to an object that indicates the format to apply to the string.
maxWidth float The width of the layout box.
maxHeight float The height of the layout box.
return System
        public TextLayout(Factory factory, string text, SharpDX.DirectWrite.TextFormat textFormat, float maxWidth, float maxHeight)
            : base(IntPtr.Zero)
        {
            factory.CreateTextLayout(text, text.Length, textFormat, maxWidth, maxHeight, this);
        }

Same methods

TextLayout::TextLayout ( Factory factory, string text, SharpDX.DirectWrite.TextFormat textFormat, float layoutWidth, float layoutHeight, float pixelsPerDip, RawMatrix3x2 transform, bool useGdiNatural ) : System
TextLayout::TextLayout ( Factory factory, string text, SharpDX.DirectWrite.TextFormat textFormat, float layoutWidth, float layoutHeight, float pixelsPerDip, bool useGdiNatural ) : System