LayoutFarm.Text.InternalTextLayerController.SplitCurrentLineIntoNewLine C# (CSharp) Method

SplitCurrentLineIntoNewLine() public method

public SplitCurrentLineIntoNewLine ( ) : void
return void
        public void SplitCurrentLineIntoNewLine()
        {
            RemoveSelectedText();
            commandHistory.AddDocAction(
                 new DocActionSplitToNewLine(textLineWriter.LineNumber, textLineWriter.CharIndex));
            textLineWriter.SplitToNewLine();
            CurrentLineNumber++;
            updateJustCurrentLine = false;
            TextEditRenderBox.NotifyTextContentSizeChanged(visualTextSurface);
        }
        public TextSpanStyle GetFirstTextStyleInSelectedRange()

Usage Example

Esempio n. 1
0
 public override void InvokeUndo(InternalTextLayerController textdom)
 {
     textdom.CurrentLineNumber = startLineNumber;
     textdom.CharIndex         = startCharIndex;
     textdom.SplitCurrentLineIntoNewLine();
 }
All Usage Examples Of LayoutFarm.Text.InternalTextLayerController::SplitCurrentLineIntoNewLine