public override bool Capitalize()
        {
            // NOTE: We store this as a *Span* because we don't want it to track
            Span selectionSpan = TextRange.AdvancedTextRange;
            bool isReversed    = IsReversed;
            bool isEmpty       = IsEmpty;

            if (!TextRange.Capitalize())
            {
                return(false);
            }

            if (!isEmpty)
            {
                TextSelection.Select(new SnapshotSpan(_textView.AdvancedTextView.TextSnapshot, selectionSpan), isReversed);
            }

            return(true);
        }
Example #2
0
 public override bool Capitalize()
 {
     return(_bufferRange.Capitalize());
 }