バージョン 24.2 (最新)

CalculateTotalMarginAndPadding メソッド

子孫の要素と先祖の間のパディングとマージンの合計値を計算します
シンタックス
public static Thickness CalculateTotalMarginAndPadding( 
   DependencyObject ancestor,
   DependencyObject descendant
)

パラメータ

ancestor
descendant

戻り値の型

すべてのマージンおよびパッディング設定の合計を返します
参照