Be.Windows.Forms.HexBox.Cut C# (CSharp) Method

Cut() public method

Moves the current selection in the hex box to the Clipboard.
public Cut ( ) : void
return void
        public void Cut()
        {
            if (!CanCut()) return;

            Copy();

            _byteProvider.DeleteBytes(_bytePos, _selectionLength);
            _byteCharacterPos = 0;
            UpdateCaret();
            ScrollByteIntoView();
            ReleaseSelection();
            Invalidate();
            Refresh();
        }

Usage Example

 /// <summary>
 /// The handler for the "Cut"-Click event
 /// </summary>
 /// <param name="sender">the sender object</param>
 /// <param name="e">the event data</param>
 void CutMenuItem_Click(object sender, EventArgs e)
 {
     _hexBox.Cut();
 }
All Usage Examples Of Be.Windows.Forms.HexBox::Cut
HexBox