GrapeCity SPREAD for Windows Forms 11.0J
GetPreferredSize(Graphics,Size,Font,String,String,ButtonTextAlign,TextOrientation,Boolean,Int32,Image,Image,HotkeyPrefix,Double) メソッド


GDI+グラフィックスサーフェス
サイズ
フォント
押されていないときのボタンのテキスト
押されたときのボタンのテキスト
テキスト配置
テキストの向き
テキストを複数行に折り返すかどうか
ボタン周囲の影のサイズ
ボタンが押されていないときのピクチャ
ボタンが押されているときのピクチャ
HotkeyPrefix
テキストの回転角度。
ボタンのテキストとピクチャを表示するために必要な高さと幅を計算します。
構文
'Declaration
 
Public Overloads Shared Function GetPreferredSize( _
   ByVal g As Graphics, _
   ByVal size As Size, _
   ByVal font As Font, _
   ByVal text As String, _
   ByVal textDown As String, _
   ByVal nAlign As ButtonTextAlign, _
   ByVal textOrientation As TextOrientation, _
   ByVal wordWrap As Boolean, _
   ByVal shadowSize As Integer, _
   ByVal pictUp As Image, _
   ByVal pictDown As Image, _
   ByVal prefix As HotkeyPrefix, _
   ByVal angle As Double _
) As Size
'使用法
 
Dim g As Graphics
Dim size As Size
Dim font As Font
Dim text As String
Dim textDown As String
Dim nAlign As ButtonTextAlign
Dim textOrientation As TextOrientation
Dim wordWrap As Boolean
Dim shadowSize As Integer
Dim pictUp As Image
Dim pictDown As Image
Dim prefix As HotkeyPrefix
Dim angle As Double
Dim value As Size
 
value = FpButton.GetPreferredSize(g, size, font, text, textDown, nAlign, textOrientation, wordWrap, shadowSize, pictUp, pictDown, prefix, angle)

パラメータ

g
GDI+グラフィックスサーフェス
size
サイズ
font
フォント
text
押されていないときのボタンのテキスト
textDown
押されたときのボタンのテキスト
nAlign
テキスト配置
textOrientation
テキストの向き
wordWrap
テキストを複数行に折り返すかどうか
shadowSize
ボタン周囲の影のサイズ
pictUp
ボタンが押されていないときのピクチャ
pictDown
ボタンが押されているときのピクチャ
prefix
HotkeyPrefix
angle
テキストの回転角度。
参照

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

 

 


© 2004-2018, GrapeCity Inc. All rights reserved.