LayoutFarm.Text.InternalTextLayerController.DoHome C# (CSharp) Méthode

DoHome() public méthode

public DoHome ( ) : void
Résultat void
        public void DoHome()
        {
#if DEBUG
            if (dbugEnableTextManRecorder)
            {
                dbugTextManRecorder.WriteInfo("TxLMan::DoHome");
                dbugTextManRecorder.BeginContext();
            }
#endif
            textLineWriter.CharIndex = -1;
#if DEBUG
            if (dbugEnableTextManRecorder)
            {
                dbugTextManRecorder.EndContext();
            }
#endif
        }
    }

Usage Example

        public void DoHome(bool pressShitKey)
        {
            if (!pressShitKey)
            {
                internalTextLayerController.DoHome();
                internalTextLayerController.CancelSelect();
            }
            else
            {
                internalTextLayerController.StartSelectIfNoSelection();
                internalTextLayerController.DoHome();
                internalTextLayerController.EndSelect();
            }

            EnsureCaretVisible();
        }