Ribbon for WinForms
GetBounds(Element,Boolean,Boolean) メソッド

C1.Win.8 アセンブリ > C1.Framework 名前空間 > ValueElement クラス > GetBounds メソッド : GetBounds(Element,Boolean,Boolean) メソッド
Ancestor element (parent, grand-parent, etc).
Whether to return the element's outer bounds or content area.
Whether to clip the rectangle to the ancestor's content area.
Gets the element's bounds (size and location) within an arbitrary ancestor, in pixels.
シンタックス
'宣言
 
Public Overloads Function GetBounds( _
   ByVal ancestor As Element, _
   ByVal contentArea As Boolean, _
   ByVal clip As Boolean _
) As Rectangle
public Rectangle GetBounds( 
   Element ancestor,
   bool contentArea,
   bool clip
)

パラメータ

ancestor
Ancestor element (parent, grand-parent, etc).
contentArea
Whether to return the element's outer bounds or content area.
clip
Whether to clip the rectangle to the ancestor's content area.

戻り値の型

A System.Drawing.Rectangle that corresponds to the element's position within the given ancestor.
参照

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