C# Класс nature_net.user_controls.WPFExtensions

Показать файл Открыть проект

Открытые методы

Метод Описание
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