C# 클래스 ICSharpCode.WpfDesign.Designer.Services.CreateComponentTool

A tool that creates a component.
상속: ITool
파일 보기 프로젝트 열기: icsharpcode/WpfDesigner 1 사용 예제들

공개 메소드들

메소드 설명
Activate ( IDesignPanel designPanel ) : void
AddItemWithCustomSizePosition ( DesignItem container, Type createdItem, Size size, Point position ) : bool
AddItemWithDefaultSize ( DesignItem container, Type createdItem, Size size ) : bool
CreateComponentTool ( Type componentType ) : System

Creates a new CreateComponentTool instance.

Deactivate ( IDesignPanel designPanel ) : void

보호된 메소드들

메소드 설명
CreateItem ( DesignContext context ) : DesignItem

Is called to create the item used by the CreateComponentTool.

비공개 메소드들

메소드 설명
AddItemWithCustomSize ( DesignItem container, DesignItem createdItem, Point position, Size size ) : bool
AddItemWithDefaultSize ( DesignItem container, DesignItem createdItem, Point position ) : bool
OnMouseDown ( object sender, System.Windows.Input.MouseButtonEventArgs e ) : void
designPanel_DragLeave ( object sender, System.Windows.DragEventArgs e ) : void
designPanel_DragOver ( object sender, System.Windows.DragEventArgs e ) : void
designPanel_Drop ( object sender, System.Windows.DragEventArgs e ) : void

메소드 상세

Activate() 공개 메소드

public Activate ( IDesignPanel designPanel ) : void
designPanel IDesignPanel
리턴 void

AddItemWithCustomSizePosition() 공개 정적인 메소드

public static AddItemWithCustomSizePosition ( DesignItem container, Type createdItem, Size size, Point position ) : bool
container DesignItem
createdItem System.Type
size System.Windows.Size
position Point
리턴 bool

AddItemWithDefaultSize() 공개 정적인 메소드

public static AddItemWithDefaultSize ( DesignItem container, Type createdItem, Size size ) : bool
container DesignItem
createdItem System.Type
size System.Windows.Size
리턴 bool

CreateComponentTool() 공개 메소드

Creates a new CreateComponentTool instance.
public CreateComponentTool ( Type componentType ) : System
componentType System.Type
리턴 System

CreateItem() 보호된 메소드

Is called to create the item used by the CreateComponentTool.
protected CreateItem ( DesignContext context ) : DesignItem
context DesignContext
리턴 DesignItem

Deactivate() 공개 메소드

public Deactivate ( IDesignPanel designPanel ) : void
designPanel IDesignPanel
리턴 void