To cut line to clipboard and remove line, you need:
1) Assign Customaction to hotkeys:
2) Make handler for CusomAction event:
3) Create following handler code:
private void fctb_CustomAction(object sender, CustomActionEventArgs e)
{
switch(e.Action)
{
case FCTBAction.CustomAction1:
//get current line index
var iLine = fctb.Selection.FromLine;
var lineLength = fctb.Lines[iLine].Length;
//select whole line
fctb.Selection = new Range(fctb, iLine);
//scroll to it
fctb.DoSelectionVisible();
//if line is readonly - return
if (fctb.Selection.ReadOnly)
return;
//cut to clipboard
fctb.Cut();
//remove line
if (lineLength > 0)
{
fctb.Selection.GoRight(true);
fctb.SelectedText = "";
}
break;
}
}
To cut line to clipboard and remove line, you need: 1) Assign Customaction to hotkeys: 2) Make handler for CusomAction event: 3) Create following handler code: