ParentControlDesigner.CreateToolCore(ToolboxItem, Int32, Int32, Int32, Int32, Boolean, Boolean) メソッド
定義
重要
この API は CLS 準拠ではありません。
すべての CreateTool(ToolboxItem) メソッドのコア機能を提供します。Provides core functionality for all the CreateTool(ToolboxItem) methods.
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);
[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[]
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。The ToolboxItem to create a component from.
- x
- Int32
サイズが指定されている場合は、ツールの左端の位置のデザイン時ビュー座標の水平位置。サイズが指定されていない場合は、ツールの中心のデザイン時ビュー座標の水平位置。The horizontal position, in design-time view coordinates, of the location of the left edge of the tool, if a size is specified; the horizontal position of the center of the tool, if no size is specified.
- y
- Int32
サイズが指定されている場合は、ツールの上端の位置のデザイン時ビュー座標の垂直位置。サイズが指定されていない場合は、ツールの中心のデザイン時ビュー座標の垂直位置。The vertical position, in design-time view coordinates, of the location of the top edge of the tool, if a size is specified; the vertical position of the center of the tool, if no size is specified.
- width
- Int32
ツールの幅。The width of the tool. hasSize
パラメーターが false
に設定されている場合、このパラメーターは無視されます。This parameter is ignored if the hasSize
parameter is set to false
.
- height
- Int32
ツールの高さ。The height of the tool. hasSize
パラメーターが false
に設定されている場合、このパラメーターは無視されます。This parameter is ignored if the hasSize
parameter is set to false
.
- hasLocation
- Boolean
コンポーネントの位置が指定されている場合は true
。コンポーネントが現在選択されているコントロールの中心に配置される場合は false
。true
if a location for the component is specified; false
if the component is to be positioned in the center of the currently selected control.
- hasSize
- Boolean
コンポーネントのサイズが指定されている場合は true
。コンポーネントの既定の高さの値と幅の値が使用される場合は false
。true
if a size for the component is specified; false
if the default height and width values for the component are to be used.
戻り値
ツールから作成されたコンポーネントの配列。An array of components created from the tool.
- 属性
注釈
これは、オーバーライドCreateToolできる唯一のメソッドです。This is the only CreateTool method that can be overridden.