menu

WinForms

  • Code Examples
  • Upgrade Guide
  • User Guide
  • Demos
  • Support
  • Forums
  • Download
Interface IUnitIndependent - WindowsForms API Reference | Syncfusion

    Show / Hide Table of Contents

    Interface IUnitIndependent

    Contains all node trasformation methods related with PinPoint position, PintPoint Offset, Size and Bounds.

    Namespace: Syncfusion.Windows.Forms.Diagram
    Assembly: Syncfusion.Diagram.Base.dll
    Syntax
    public interface IUnitIndependent

    Methods

    GetBoundingRectangle(MeasureUnits, Boolean)

    Gets the bounding rectangle.

    Declaration
    RectangleF GetBoundingRectangle(MeasureUnits unit, bool bRelativeToModel)
    Parameters
    Type Name Description
    MeasureUnits unit

    The measure unit of return value.

    System.Boolean bRelativeToModel

    if set to true to get bounds in model coordinates, otherwise - false.

    Returns
    Type Description
    System.Drawing.RectangleF

    The System.Drawing.RectangleF.

    GetPinPoint(MeasureUnits)

    Gets the node pin point.

    Declaration
    PointF GetPinPoint(MeasureUnits unit)
    Parameters
    Type Name Description
    MeasureUnits unit

    The measure unit of return value.

    Returns
    Type Description
    System.Drawing.PointF

    The System.Drawing.PointF.

    GetPinPointOffset(MeasureUnits)

    Gets the node pin point offset.

    Declaration
    SizeF GetPinPointOffset(MeasureUnits unit)
    Parameters
    Type Name Description
    MeasureUnits unit

    The measure unit of return value.

    Returns
    Type Description
    System.Drawing.SizeF

    The System.Drawing.SizeF.

    GetSize(MeasureUnits)

    Gets the node size.

    Declaration
    SizeF GetSize(MeasureUnits unit)
    Parameters
    Type Name Description
    MeasureUnits unit

    The measure unit of return value.

    Returns
    Type Description
    System.Drawing.SizeF

    The System.Drawing.SizeF.

    SetPinPoint(PointF, MeasureUnits)

    Sets the node pin point.

    Declaration
    void SetPinPoint(PointF ptValue, MeasureUnits unit)
    Parameters
    Type Name Description
    System.Drawing.PointF ptValue

    The new value.

    MeasureUnits unit

    The measure unit of ptValue parameter.

    SetPinPointOffset(SizeF, MeasureUnits)

    Sets the node pin point offset.

    Declaration
    void SetPinPointOffset(SizeF szValue, MeasureUnits unit)
    Parameters
    Type Name Description
    System.Drawing.SizeF szValue

    The new value.

    MeasureUnits unit

    The measure unit of szValue parameter.

    SetSize(SizeF, MeasureUnits)

    Sets the node size.

    Declaration
    void SetSize(SizeF szValue, MeasureUnits unit)
    Parameters
    Type Name Description
    System.Drawing.SizeF szValue

    The new value.

    MeasureUnits unit

    The measure unit of szValue parameter.

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