バージョン

GetBorderWidths メソッド (TabItemButtonUIElement)

境界線の4辺すべての幅を返します。
シンタックス
'宣言
 
Public Overrides Function GetBorderWidths( _
   ByVal style As UIElementBorderStyle, _
   ByVal sides As Border3DSide _
) As UIElementBorderWidths
public override UIElementBorderWidths GetBorderWidths( 
   UIElementBorderStyle style,
   Border3DSide sides
)

パラメータ

style
境界線の Infragistics.Win.UIElementBorderStyle
sides
境界線の System.Windows.Forms.Border3DSide

戻り値の型

境界線の 4 辺すべての幅を記述する Infragistics.Win.UIElementBorderWidths インスタンス。
使用例
Imports Infragistics.Win
		
  Private Function CombinedBorderHeight(ByVal element As UIElement) As Integer
   
  ' Returns the pixel height of the top and bottom borders on the element passed in.
      Dim borderwidths As UIElementBorderWidths = element.GetBorderWidths(element.BorderStyle, element.BorderSides)

      Return borderwidths.Top + borderwidths.Bottom

  End Function
using Infragistics.Win;

private int CombinedBorderHeight(UIElement element)
{
 
	// Returns the pixel height of the top and bottom borders on the element passed in.
	UIElementBorderWidths borderwidths = element.GetBorderWidths( element.BorderStyle,element.BorderSides );

	return borderwidths.Top + borderwidths.Bottom;

}
参照