Bitmap for WPF
Create(Factory,String,TextFormat,Single,Single,Single,Boolean) メソッド

C1.WPF.DX.4.5.2 アセンブリ > C1.Util.DX.DirectWrite 名前空間 > TextLayout クラス > Create メソッド : Create(Factory,String,TextFormat,Single,Single,Single,Boolean) メソッド
an instance of Factory
An array of characters that contains the string to create a new C1.Win.DX.DirectWrite.TextLayoutobject from. This array must be of length stringLength and can contain embedded NULL characters.
The text formatting object to apply to the string.
The width of the layout box.
The height of the layout box.
The number of physical pixels per DIP (device independent pixel). For example, if rendering onto a 96 DPI device pixelsPerDip is 1. If rendering onto a 120 DPI device pixelsPerDip is 1.25 (120/96).
Instructs the text layout to use the same metrics as GDI bi-level text when set to FALSE. When set to TRUE, instructs the text layout to use the same metrics as text measured by GDI using a font created with CLEARTYPE_NATURAL_QUALITY.
Create a Gdi Compatible TextLayout. Takes a string, format, and associated constraints, and produces an object representing the result, formatted for a particular display resolution and measuring mode.
シンタックス
'宣言
 
Public Overloads Shared Function Create( _
   ByVal factory As Factory, _
   ByVal text As System.String, _
   ByVal textFormat As TextFormat, _
   ByVal layoutWidth As System.Single, _
   ByVal layoutHeight As System.Single, _
   ByVal pixelsPerDip As System.Single, _
   ByVal useGdiNatural As System.Boolean _
) As TextLayout
public static TextLayout Create( 
   Factory factory,
   System.string text,
   TextFormat textFormat,
   System.float layoutWidth,
   System.float layoutHeight,
   System.float pixelsPerDip,
   System.bool useGdiNatural
)

パラメータ

factory
an instance of Factory
text
An array of characters that contains the string to create a new C1.Win.DX.DirectWrite.TextLayoutobject from. This array must be of length stringLength and can contain embedded NULL characters.
textFormat
The text formatting object to apply to the string.
layoutWidth
The width of the layout box.
layoutHeight
The height of the layout box.
pixelsPerDip
The number of physical pixels per DIP (device independent pixel). For example, if rendering onto a 96 DPI device pixelsPerDip is 1. If rendering onto a 120 DPI device pixelsPerDip is 1.25 (120/96).
useGdiNatural
Instructs the text layout to use the same metrics as GDI bi-level text when set to FALSE. When set to TRUE, instructs the text layout to use the same metrics as text measured by GDI using a font created with CLEARTYPE_NATURAL_QUALITY.
解説
The resulting text layout should only be used for the intended resolution, and for cases where text scalability is desired {{CreateTextLayout}} should be used instead.
参照

TextLayout クラス
TextLayout メンバ
オーバーロード一覧