IntroductionXTextBoxExtension control extension contains a textbox control that enables to set one of the below Character casing. -Normal -Upper Case -Lower Case -Proper Case -Title Case -Sentense Case
NoteWhen we deal with String Formats, such as "Proper Case", "Title Case", or "Sentence Case", we don't have proper rules to follow. Each one of our requirements might be unique. So for a greater flexibility, the Control also has three more properties. WordSeperators : We supply a series of "chars" as a one single string (no comma delimiters) to determine what might be our word separators. EXAMPLE : ,!? (and SPACE char) SentenceSeperators : Same as above, but this time we declare it for sentences with "Comma Delimited Values. EXAMPLE : . ,! ,? - Each character contains a "SPACE" ExceptionWords : This is for Title Case Property. Title Cases are different from Proper Cases. For example,
On the above, "is" & "a" need to still maintain their lower case, when it comes to Title Case. The list might vary for what you need. WithExceptionWords property, we can build our own Exception Dictionary, of course with Comma Delimiters. EXAMPLE : is,was,are,where,been
ScreenshotSource CodePosted Here : http://code.msdn.microsoft.com/Extended-Text-Box-b8c7b911
Walk-throughPosted Here : www.powerbala.com
DisclaimerMy controls, samples and articles are created during my off/free time. The opinions expressed here are MY OWN and are not necessarily those of my employer, partners, customers, friends, or family. ALL content presented AS-IS, for entertainment/educational purposes only with ABSOLUTELY NO WARRANTY expressed or implied. |