バージョン

CalculateButtonImageAndTextSize(Size,Size,Size,Size,Size,Boolean,UIElementButtonStyle,UIElementButtonType,Border3DSide,TextPlacement) メソッド

ImageAndTextButtonUIElementを完全に表示するために必要となるサイズを計算します。
シンタックス
'宣言
 
Public Overloads Shared Function CalculateButtonImageAndTextSize( _
   ByVal imgSize As Size, _
   ByVal textSize As Size, _
   ByVal imagePadding As Size, _
   ByVal textPadding As Size, _
   ByVal padding As Size, _
   ByVal vertical As Boolean, _
   ByVal buttonStyle As UIElementButtonStyle, _
   ByVal buttonType As UIElementButtonType, _
   ByVal borderSides As Border3DSide, _
   ByVal textPlacement As TextPlacement _
) As Size
public static Size CalculateButtonImageAndTextSize( 
   Size imgSize,
   Size textSize,
   Size imagePadding,
   Size textPadding,
   Size padding,
   bool vertical,
   UIElementButtonStyle buttonStyle,
   UIElementButtonType buttonType,
   Border3DSide borderSides,
   TextPlacement textPlacement
)

パラメータ

imgSize
画像のサイズ。画像がない場合、Size.Empty を使用できます。
textSize
テキストのサイズ。テキストがない場合、Size.Empty を使用できます。
imagePadding
画像の周りのパディング量 - 画像サイズが少なくとも1,1の場合に限り追加されます
textPadding
テキストの周りのパディング量 - テキストサイズが少なくとも1,1の場合に限り追加されます
padding
テキストと画像の周りのパディング量。これは常に追加されます。
vertical
要素が垂直に表示されるかどうかを示します。
buttonStyle
ボタンスタイル
buttonType
ボタンのタイプ - プッシュボタンまたは静的なボタン
borderSides
使用されている境界線。
textPlacement
画像に関係してどのようにテキストが配置されるのかを示します。

戻り値の型

画像およびテキスト要素のサイズ。
参照