[]
        
(Showing Draft Content)

GrapeCity.Documents.Text.TextLayout.-ctor

TextLayout Constructor

TextLayout()

Initializes a new instance of the TextLayout class with Resolution set to 72 graphic units per inch.

Declaration
[Obsolete("Instead, use the constructor with explicit 'resolution' parameter, or the GcGraphics.CreateTextLayout() method.", false)]
public TextLayout()
<Obsolete("Instead, use the constructor with explicit 'resolution' parameter, or the GcGraphics.CreateTextLayout() method.", False)>
Public Sub New()

TextLayout(float)

Initializes a new instance of the TextLayout class.

If a TextLayout is created to be used with a GrapeCity.Documents.Drawing.GcGraphics, it is recommended to use the GrapeCity.Documents.Drawing.GcGraphics.CreateTextLayout method instead, as it ensures that properties such as Resolution and FontCollection are set up properly to be used with the graphics.

Declaration
public TextLayout(float resolution)
Public Sub New(resolution As Single)
Parameters
Type Name Description
float resolution

Specifies the resolution (graphic units per inch).