C# 클래스 nature_net.user_controls.WPFExtensions

파일 보기 프로젝트 열기: naturenet/nature-net-ppi

공개 메소드들

메소드 설명
InsertText ( this textbox, string sTextToInsert ) : void

Insert the given text into this TextBox at the current CaretIndex, and replacing any already-selected text.

MoveAsAGroup ( this me, double desiredXDisplacement, double desiredYDisplacement, bool &isIgnoringLocationChangedEvent ) : void
TextTrimmed ( this textbox ) : string

This is just a convenience extension-method to simplify the getting of strings from a WPF TextBox. It was a pain in da butt, having to remember to test for nulls, whitespace, etc. Now, all you have to do is check the .Length

메소드 상세

InsertText() 공개 정적인 메소드

Insert the given text into this TextBox at the current CaretIndex, and replacing any already-selected text.
public static InsertText ( this textbox, string sTextToInsert ) : void
textbox this The TextBox to insert the new text into
sTextToInsert string The text to insert into this TextBox
리턴 void

MoveAsAGroup() 공개 정적인 메소드

public static MoveAsAGroup ( this me, double desiredXDisplacement, double desiredYDisplacement, bool &isIgnoringLocationChangedEvent ) : void
me this
desiredXDisplacement double
desiredYDisplacement double
isIgnoringLocationChangedEvent bool
리턴 void

TextTrimmed() 공개 정적인 메소드

This is just a convenience extension-method to simplify the getting of strings from a WPF TextBox. It was a pain in da butt, having to remember to test for nulls, whitespace, etc. Now, all you have to do is check the .Length
public static TextTrimmed ( this textbox ) : string
textbox this The WPF TextBox to get the Text from
리턴 string