TextStyle クラスの新しいインスタンスを初期化します
名前空間: PdfGeneratorNetFree.PgnStyleアセンブリ: PdfGeneratorNetFree (in PdfGeneratorNetFree.dll) バージョン: 1.1.0.0
構文
public TextStyle( string fontName, float fontSize = 10f, Color textColor = null, FontWeight fontWeight = null, HorizontalAlign hAlign = HorizontalAlign.NoneSpecified, VerticalAlign vAlign = VerticalAlign.NoneSpecified, StrokeStyle underLineStyle = null, string eudcFontName = null )
パラメーター
- fontName
- 型: System String
フォントファイル名を含むパス
- fontSize (Optional)
- 型: System Single
フォントサイズ(文字の大きさはこの設定で決まります。)
- textColor (Optional)
- 型: System.Drawing Color
文字の色
- fontWeight (Optional)
- 型: PdfGeneratorNetFree.PgnStyle FontWeight
boldのフォントがある場合はStyleのboldよりboldのフォントファイルを指定してください。
- hAlign (Optional)
- 型: PdfGeneratorNetFree.PgnEnum HorizontalAlign
左右の文字の配置。
- vAlign (Optional)
- 型: PdfGeneratorNetFree.PgnEnum VerticalAlign
上下の文字の配置。下線は文字の位置計算に含めない。bottomの場合、下線は文字の出力範囲より下に出力される。
- underLineStyle (Optional)
- 型: PdfGeneratorNetFree.PgnStyle StrokeStyle
下線。nullを指定すると下線なしになります。
- eudcFontName (Optional)
- 型: System String
外字フォントファイルを含むパス
参照