aboutsummaryrefslogtreecommitdiffstats
path: root/Software/Visual_Studio/MachineStudio/Tango.MachineStudio.Common/Web/UploadCompletedResponse.cs
blob: a290cf642292645acffd809c2cbcf4a6801d0b16 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using Tango.Transport.Web;

namespace Tango.MachineStudio.Common.Web
{
    public class UploadCompletedResponse : WebResponseMessage
    {

    }
}
/span>ICSharpCode.AvalonEdit.Document; namespace ICSharpCode.AvalonEdit.Snippets { /// <summary> /// Inserts the previously selected text at the selection marker. /// </summary> [Serializable] public class SnippetSelectionElement : SnippetElement { /// <summary> /// Gets/Sets the new indentation of the selected text. /// </summary> public int Indentation { get; set; } /// <inheritdoc/> public override void Insert(InsertionContext context) { StringBuilder tabString = new StringBuilder(); for (int i = 0; i < Indentation; i++) { tabString.Append(context.Tab); } string indent = tabString.ToString(); string text = context.SelectedText.TrimStart(' ', '\t'); text = text.Replace(context.LineTerminator, context.LineTerminator + indent); context.Document.Insert(context.InsertionPosition, text); context.InsertionPosition += text.Length; if (string.IsNullOrEmpty(context.SelectedText)) SnippetCaretElement.SetCaret(context); } } }