Processing Ajax...

Title

Message

Confirm

Confirm

Confirm

Confirm

Are you sure you want to delete this item?

Confirm

Are you sure you want to delete this item?

Convert Text to Title Case (with auto copy/paste)

Description
Replaces the selected text with title case (capitalized first letters).
Language
C#.net
Minimum Version
Created By
igorb
Contributors
-
Date Created
Aug 19, 2014
Date Last Modified
Aug 19, 2014

Macro Code

using System;
using System.Globalization;
using System.Threading;

public static class ClipboardFusionHelper
  {
    public static string ProcessText(string text)
      {
        BFS.Clipboard.CopyText(out text);
        TextInfo TextInfo = Thread.CurrentThread.CurrentCulture.TextInfo;
        text = TextInfo.ToTitleCase(text);
        BFS.Clipboard.PasteText(text);
        return text;
      }
  }