Collapse All Expand All Code: All Code: Multiple Code: C# Code: Visual Basic

C#
Visual Basic

Azuki 1.7 Documentation
IView..::..ScreenToVirtual Method
IView Interface See Also Send Feedback

Converts a coordinate in client area to a coordinate in virtual space.

Namespace: Sgry.Azuki
Assembly: Azuki (in Azuki.dll) Version: 1.7.13.40248

# Syntax

C#
    void ScreenToVirtual(
    	ref Point pt
    )

Visual Basic
    Sub ScreenToVirtual (
    	ByRef pt As Point
    )

#### Parameters

pt
  Type: System.Drawing..::..Point%

# Remarks

Azuki uses two types of coordinate system - virtual coordinate system and client coordinate system. In client coordinate system, all points are relative to origin of upper-left corner of the 'client area.' The client area is the entire area used by Azuki so coordinate of the origin of text area will change depending on whether meta information areas (such as line number area) are displayed or not. In virtual coordinate system, all points are relative to the origin of text area. Text area is the main area which displays text content and it does not contain areas for displaying meta information.

This method converts a coordinate in virtual coordinate system to a coordinate in client coordinate system.

# See Also

IView Interface
IView..::..IView Members
Sgry.Azuki Namespace
VirtualToScreen property