WinForms

Upgrade Guide User Guide Demos Support Forums Download
  • Upgrade Guide
  • User Guide
  • Demos
  • Support
  • Forums
  • Download
Interface IPositionConverter - WindowsForms API Reference | Syncfusion

    Show / Hide Table of Contents

    Interface IPositionConverter

    Provides the functionality for getting the converter positions.

    Namespace: Syncfusion.Windows.Forms.Edit.Interfaces
    Assembly: Syncfusion.Edit.Windows.dll
    Syntax
    public interface IPositionConverter

    Methods

    CorrectVirtual(Point, Boolean)

    Corrects the virtual coordinates.

    Declaration
    Point CorrectVirtual(Point point, bool virtualSpaceEnabled)
    Parameters
    Type Name Description
    System.Drawing.Point point

    Virtual coordinates to be corrected.

    System.Boolean virtualSpaceEnabled

    Specifies whether virtual space is enabled.

    Returns
    Type Description
    System.Drawing.Point

    Virtual point with correct coordinates.

    GraphicalToVirtual(Point)

    Converts the graphical point to virtual.

    Declaration
    Point GraphicalToVirtual(Point point)
    Parameters
    Type Name Description
    System.Drawing.Point point

    Graphical point.

    Returns
    Type Description
    System.Drawing.Point

    Virtual point.

    GraphicalToVirtual(Point, Boolean)

    Converts the graphical point to virtual.

    Declaration
    Point GraphicalToVirtual(Point point, bool allowWhiteSpace)
    Parameters
    Type Name Description
    System.Drawing.Point point

    Graphical point.

    System.Boolean allowWhiteSpace

    Specifies if whitespace after last character in line should be treated like regular characters.

    Returns
    Type Description
    System.Drawing.Point

    Virtual point.

    PhysicalToVirtual(IParsePoint)

    Converts the physical point to virtual.

    Declaration
    Point PhysicalToVirtual(IParsePoint point)
    Parameters
    Type Name Description
    IParsePoint point

    Physical position.

    Returns
    Type Description
    System.Drawing.Point

    Virtual position.

    Remarks

    Note for implementing: if given physical coordinates can not be directly mapped to virtual, remapping of the coordinates must be done to make this mapping possible. Example: if coordinates belongs to collapsed region, it must be uncollapsed.

    VirtualToGraphical(Point)

    Converts the virtual point to graphical cursor coordinates.

    Declaration
    RectangleF VirtualToGraphical(Point point)
    Parameters
    Type Name Description
    System.Drawing.Point point

    Virtual point.

    Returns
    Type Description
    System.Drawing.RectangleF

    Rectangle of the cursor.

    VirtualToPhysical(Point)

    Converts the virtual point to physical.

    Declaration
    IParsePoint VirtualToPhysical(Point point)
    Parameters
    Type Name Description
    System.Drawing.Point point

    Virtual position.

    Returns
    Type Description
    IParsePoint

    Physical position.

    Back to top Generated by DocFX
    Copyright © 2001 - 2021 Syncfusion Inc. All Rights Reserved