MESCIUS SPREAD for Windows Forms 17.0J
DrawText(String,Font,Rectangle,Rectangle,HorizontalAlignment,VerticalAlignment,Boolean,Int32,Boolean) メソッド

描画する文字列。
文字列の書式を定義するGrapeCity.Spreadsheet.Font
描画されたテキストの境界を指定するGrapeCity.Drawing.Rectangle構造体。
余白の矩形。
水平方向の配置。
垂直方向の配置。
wrapText。
回転。
収まるように縮小します。
指定したテキスト文字列を指定した矩形に描画します。
構文
'Declaration
 
Public MustOverride Sub DrawText( _
   ByVal text As String, _
   ByVal font As Font, _
   ByVal rect As Rectangle, _
   ByVal padding As Rectangle, _
   ByVal left As HorizontalAlignment, _
   ByVal bottom As VerticalAlignment, _
   ByVal wrapText As Boolean, _
   Optional ByVal rotation As Integer, _
   Optional ByVal shrinkToFit As Boolean _
) 
public abstract void DrawText( 
   string text,
   Font font,
   Rectangle rect,
   Rectangle padding,
   HorizontalAlignment left,
   VerticalAlignment bottom,
   bool wrapText,
   int rotation,
   bool shrinkToFit
)

パラメータ

text
描画する文字列。
font
文字列の書式を定義するGrapeCity.Spreadsheet.Font
rect
描画されたテキストの境界を指定するGrapeCity.Drawing.Rectangle構造体。
padding
余白の矩形。
left
水平方向の配置。
bottom
垂直方向の配置。
wrapText
wrapText。
rotation
回転。
shrinkToFit
収まるように縮小します。
参照

PrintingContext クラス
PrintingContext メンバ

 

 


© MESCIUS inc. All rights reserved.