C# 클래스 ICSharpCode.WpfDesign.Designer.ModelTools

Static helper methods for working with the designer DOM.
파일 보기 프로젝트 열기: icsharpcode/WpfDesigner 1 사용 예제들

공개 메소드들

메소드 설명
ApplyTransform ( DesignItem designItem, Transform transform, bool relative = true ) : void
ArrangeItems ( IEnumerable items, ArrangeDirection arrangeDirection ) : void
CanDeleteComponents ( ICollection items ) : bool

Gets if the specified components can be deleted.

CanSelectComponent ( DesignItem item ) : bool
ComparePositionInModelFile ( DesignItem a, DesignItem b ) : int

Compares the positions of a and b in the model file.

CreateVisualTree ( this element ) : void
DeleteComponents ( ICollection deleteItems ) : void

Deletes the specified components from their parent containers. If the deleted components are currently selected, they are deselected before they are deleted.

GetHeight ( UIElement element ) : double
GetWidth ( UIElement element ) : double
IsInDocument ( DesignItem item ) : bool

Gets if the specified design item is in the document it belongs to.

Resize ( DesignItem item, double newWidth, double newHeight ) : void
StretchItems ( IEnumerable items, StretchDirection stretchDirection ) : void
WrapItemsNewContainer ( IEnumerable items, Type containerType, bool doInsert = true ) : Rect>.Tuple

비공개 메소드들

메소드 설명
GetDefaultSize ( DesignItem createdItem ) : Size
GetItemPos ( PlacementOperation operation, DesignItem designItem ) : ItemPos

메소드 상세

ApplyTransform() 공개 정적인 메소드

public static ApplyTransform ( DesignItem designItem, Transform transform, bool relative = true ) : void
designItem DesignItem
transform System.Windows.Media.Transform
relative bool
리턴 void

ArrangeItems() 공개 정적인 메소드

public static ArrangeItems ( IEnumerable items, ArrangeDirection arrangeDirection ) : void
items IEnumerable
arrangeDirection ArrangeDirection
리턴 void

CanDeleteComponents() 공개 정적인 메소드

Gets if the specified components can be deleted.
public static CanDeleteComponents ( ICollection items ) : bool
items ICollection
리턴 bool

CanSelectComponent() 공개 정적인 메소드

public static CanSelectComponent ( DesignItem item ) : bool
item DesignItem
리턴 bool

ComparePositionInModelFile() 공개 정적인 메소드

Compares the positions of a and b in the model file.
public static ComparePositionInModelFile ( DesignItem a, DesignItem b ) : int
a DesignItem
b DesignItem
리턴 int

CreateVisualTree() 공개 정적인 메소드

public static CreateVisualTree ( this element ) : void
element this
리턴 void

DeleteComponents() 공개 정적인 메소드

Deletes the specified components from their parent containers. If the deleted components are currently selected, they are deselected before they are deleted.
public static DeleteComponents ( ICollection deleteItems ) : void
deleteItems ICollection
리턴 void

GetHeight() 공개 정적인 메소드

public static GetHeight ( UIElement element ) : double
element UIElement
리턴 double

GetWidth() 공개 정적인 메소드

public static GetWidth ( UIElement element ) : double
element UIElement
리턴 double

IsInDocument() 공개 정적인 메소드

Gets if the specified design item is in the document it belongs to.
public static IsInDocument ( DesignItem item ) : bool
item DesignItem
리턴 bool

Resize() 공개 정적인 메소드

public static Resize ( DesignItem item, double newWidth, double newHeight ) : void
item DesignItem
newWidth double
newHeight double
리턴 void

StretchItems() 공개 정적인 메소드

public static StretchItems ( IEnumerable items, StretchDirection stretchDirection ) : void
items IEnumerable
stretchDirection StretchDirection
리턴 void

WrapItemsNewContainer() 공개 정적인 메소드

public static WrapItemsNewContainer ( IEnumerable items, Type containerType, bool doInsert = true ) : Rect>.Tuple
items IEnumerable
containerType System.Type
doInsert bool
리턴 Rect>.Tuple