LayoutFarm.Text.InternalTextLayerController.StartSelectIfNoSelection C# (CSharp) Метод

StartSelectIfNoSelection() публичный Метод

public StartSelectIfNoSelection ( ) : void
Результат void
        public void StartSelectIfNoSelection()
        {
            if (this.selectionRange == null)
            {
                this.StartSelect();
            }
        }
        public void EndSelectIfNoSelection()

Usage Example

Пример #1
0
        public void DoHome(bool pressShitKey)
        {
            if (!pressShitKey)
            {
                internalTextLayerController.DoHome();
                internalTextLayerController.CancelSelect();
            }
            else
            {
                internalTextLayerController.StartSelectIfNoSelection();
                internalTextLayerController.DoHome();
                internalTextLayerController.EndSelect();
            }

            EnsureCaretVisible();
        }