ParentControlDesigner.CreateToolCore メソッドとは何? わかりやすく解説 Weblio辞書 (original) (raw)

Visual Basic (宣言)

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()

Visual Basic (使用法)

Dim tool As ToolboxItem Dim x As Integer Dim y As Integer Dim width As Integer Dim height As Integer Dim hasLocation As Boolean Dim hasSize As Boolean Dim returnValue As IComponent()

returnValue = Me.CreateToolCore(tool, x, y, width, height, hasLocation, hasSize)

C#

protected virtual IComponent[] CreateToolCore ( ToolboxItem tool, int x, int y, int width, int height, bool hasLocation, bool hasSize )

C++

protected: virtual array<IComponent^>^ CreateToolCore ( ToolboxItem^ tool, int x, int y, int width, int height, bool hasLocation, bool hasSize )

J#

protected IComponent[] CreateToolCore ( ToolboxItem tool, int x, int y, int width, int height, boolean hasLocation, boolean hasSize )

JScript

protected function CreateToolCore ( tool : ToolboxItem, x : int, y : int, width : int, height : int, hasLocation : boolean, hasSize : boolean ) : IComponent[]

パラメータ

tool

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

x

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

y

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

width

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

height

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

hasLocation

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

hasSize

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

戻り値
ツールから作成されコンポーネント配列

関連項目
ParentControlDesigner クラス
ParentControlDesigner メンバ
System.Windows.Forms.Design 名前空間
ControlDesigner クラス
ComponentDesigner
IDesigner
IDesignerFilter
DesignerAttribute
その他の技術情報
デザインサポート拡張