ParentControlDesigner.CreateToolCore メソッド

定義

重要

この API は CLS 準拠ではありません。

すべての CreateTool(ToolboxItem) メソッドのコア機能を提供します。

protected:
 virtual cli::array <System::ComponentModel::IComponent ^> ^ CreateToolCore(System::Drawing::Design::ToolboxItem ^ tool, int x, int y, int width, int height, bool hasLocation, bool hasSize);
protected virtual System.ComponentModel.IComponent[] CreateToolCore (System.Drawing.Design.ToolboxItem tool, int x, int y, int width, int height, bool hasLocation, bool hasSize);
[System.CLSCompliant(false)]
protected virtual System.ComponentModel.IComponent[] CreateToolCore (System.Drawing.Design.ToolboxItem tool, int x, int y, int width, int height, bool hasLocation, bool hasSize);
abstract member CreateToolCore : System.Drawing.Design.ToolboxItem * int * int * int * int * bool * bool -> System.ComponentModel.IComponent[]
override this.CreateToolCore : System.Drawing.Design.ToolboxItem * int * int * int * int * bool * bool -> System.ComponentModel.IComponent[]
[<System.CLSCompliant(false)>]
abstract member CreateToolCore : System.Drawing.Design.ToolboxItem * int * int * int * int * bool * bool -> System.ComponentModel.IComponent[]
override this.CreateToolCore : System.Drawing.Design.ToolboxItem * int * int * int * int * bool * bool -> System.ComponentModel.IComponent[]
Protected Overridable Function CreateToolCore (tool As ToolboxItem, x As Integer, y As Integer, width As Integer, height As Integer, hasLocation As Boolean, hasSize As Boolean) As IComponent()

パラメーター

tool
ToolboxItem

コンポーネントの作成元の ToolboxItem

x
Int32

サイズが指定されている場合は、ツールの左端の位置のデザイン時ビュー座標の水平位置。サイズが指定されていない場合は、ツールの中心のデザイン時ビュー座標の水平位置。

y
Int32

サイズが指定されている場合は、ツールの上端の位置のデザイン時ビュー座標の垂直位置。サイズが指定されていない場合は、ツールの中心のデザイン時ビュー座標の垂直位置。

width
Int32

ツールの幅。 hasSize パラメーターが false に設定されている場合、このパラメーターは無視されます。

height
Int32

ツールの高さ。 hasSize パラメーターが false に設定されている場合、このパラメーターは無視されます。

hasLocation
Boolean

コンポーネントの位置が指定されている場合は true。コンポーネントが現在選択されているコントロールの中心に配置される場合は false

hasSize
Boolean

コンポーネントのサイズが指定されている場合は true。コンポーネントの既定の高さの値と幅の値が使用される場合は false

戻り値

ツールから作成されたコンポーネントの配列。

属性

注釈

これは、オーバーライドできる唯一 CreateTool のメソッドです。

適用対象

こちらもご覧ください