GrapeCity SPREAD for Windows Forms 12.0J
GetPreferredSize(Graphics,Font,Int32,Int32,Int32,ProgressOrientation,ProgressTextStyle,String) メソッド


GDI+グラフィックスサーフェス
テキストのフォント
最小許容値
最大許容値
進行状況インジケータの向き
何をテキストとして表示するかを指定します。
表示するテキスト文字列
進行状況インジケータのテキストとピクチャを表示するために必要な高さと幅を計算します。
構文
'Declaration
 
Public Overloads Shared Function GetPreferredSize( _
   ByVal g As Graphics, _
   ByVal font As Font, _
   ByVal value As Integer, _
   ByVal minimum As Integer, _
   ByVal maximum As Integer, _
   ByVal orientation As ProgressOrientation, _
   ByVal textStyle As ProgressTextStyle, _
   ByVal textStr As String _
) As Size
'使用法
 
Dim g As Graphics
Dim font As Font
Dim value As Integer
Dim minimum As Integer
Dim maximum As Integer
Dim orientation As ProgressOrientation
Dim textStyle As ProgressTextStyle
Dim textStr As String
Dim value As Size
 
value = FpProgress.GetPreferredSize(g, font, value, minimum, maximum, orientation, textStyle, textStr)

パラメータ

g
GDI+グラフィックスサーフェス
font
テキストのフォント
value
minimum
最小許容値
maximum
最大許容値
orientation
進行状況インジケータの向き
textStyle
何をテキストとして表示するかを指定します。
textStr
表示するテキスト文字列
参照

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

 

 


Copyright © 2004 GrapeCity inc.