ICSharpCode.TextEditor.TextArea.ShowHiddenCursor C# (CSharp) Method

ShowHiddenCursor() private method

Shows the mouse cursor if it has been hidden.
private ShowHiddenCursor ( bool forceShow ) : void
forceShow bool true to always show the cursor or false to show it only if it has been moved since it was hidden.
return void
		internal void ShowHiddenCursor(bool forceShow)
		{
			if (hiddenMouseCursor) {
				if (mouseCursorHidePosition != Cursor.Position || forceShow) {
					Cursor.Show();
					hiddenMouseCursor = false;
				}
			}
		}
		

Usage Example

        private void ShowHiddenCursorIfMovedOrLeft()
        {
            bool     flag;
            TextArea textArea = this.textArea;

            if (!this.textArea.Focused)
            {
                flag = true;
            }
            else
            {
                Rectangle clientRectangle = this.textArea.ClientRectangle;
                flag = !clientRectangle.Contains(this.textArea.PointToClient(Cursor.Position));
            }
            textArea.ShowHiddenCursor(flag);
        }
All Usage Examples Of ICSharpCode.TextEditor.TextArea::ShowHiddenCursor