menu

WinForms

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

    Show / Hide Table of Contents

    Class BoundsInfo

    A BoundsInfo is a collection of properties that define a Node transformation in current measure units.

    Inheritance
    System.Object
    PropertyContainer
    BoundsInfo
    Implements
    IServiceReferenceHolder
    IServiceReferenceProvider
    IPropertyObserver
    IPropertyContainer
    System.ICloneable
    System.Runtime.Serialization.ISerializable
    System.IDisposable
    Inherited Members
    PropertyContainer.FullContainerName
    PropertyContainer.GetPropertyContainerByName(String)
    PropertyContainer.HistoryService
    PropertyContainer.InheritContainerMeasureUnits
    PropertyContainer.IPropertyObserver.OnPropertyChanged(String, String)
    PropertyContainer.IPropertyObserver.OnPropertyChanging(String, String, Object)
    PropertyContainer.ISerializable.GetObjectData(SerializationInfo, StreamingContext)
    PropertyContainer.m_propertyObserver
    PropertyContainer.MeasureUnit
    PropertyContainer.OnMeasureUnitsChanging(MeasureUnits, MeasureUnits)
    PropertyContainer.OnPropertyChanged(String)
    PropertyContainer.OnPropertyChanging(String, Object)
    PropertyContainer.PropertyObserber
    PropertyContainer.ProvideServiceReference(RuntimeTypeHandle)
    PropertyContainer.RecordPropertyChanged(String)
    System.Object.Equals(System.Object)
    System.Object.Equals(System.Object, System.Object)
    System.Object.GetHashCode()
    System.Object.GetType()
    System.Object.MemberwiseClone()
    System.Object.ReferenceEquals(System.Object, System.Object)
    System.Object.ToString()
    Namespace: Syncfusion.Windows.Forms.Diagram
    Assembly: Syncfusion.Diagram.Base.dll
    Syntax
    public sealed class BoundsInfo : PropertyContainer, IServiceReferenceHolder, IServiceReferenceProvider, IPropertyObserver, IPropertyContainer, ICloneable, ISerializable, IDisposable
    Remarks

    Used by Node to save pin point position, pin point offset, size, scale and measure units.

    Constructors

    BoundsInfo(BoundsInfo)

    Initializes a new instance of the BoundsInfo class from source instance.

    Declaration
    public BoundsInfo(BoundsInfo src)
    Parameters
    Type Name Description
    BoundsInfo src

    The source instance.

    Properties

    IsResizing

    Gets or sets a value indicating whether node size is changing.

    Declaration
    public bool IsResizing { get; set; }
    Property Value
    Type Description
    System.Boolean

    true if node size is changing ; otherwise, false.

    Remarks

    SizeChanged/PinPointChanged/PinOffsetChanged events will not be raised if it is true

    IsSegmentChanging

    Gets or sets a value indicating whether the connector's segment is changing.

    Declaration
    public bool IsSegmentChanging { get; set; }
    Property Value
    Type Description
    System.Boolean

    true if connector's segment is changing ; otherwise, false.

    NodeScale

    Gets or sets the node scale.

    Declaration
    public PageScale NodeScale { get; set; }
    Property Value
    Type Description
    PageScale

    The node scale.

    Unit

    Gets or sets the measure units that transformation parameters are saved in.

    Declaration
    public MeasureUnits Unit { get; set; }
    Property Value
    Type Description
    MeasureUnits

    The unit.

    Methods

    Clone()

    Clones this instance.

    Declaration
    public override object Clone()
    Returns
    Type Description
    System.Object

    A new object that is a copy of this instance.

    Overrides
    PropertyContainer.Clone()

    Dispose()

    Declaration
    public override void Dispose()
    Overrides
    PropertyContainer.Dispose()

    GetHitTestPadding(MeasureUnits)

    Gets the hit test padding in given units.

    Declaration
    public float GetHitTestPadding(MeasureUnits unit)
    Parameters
    Type Name Description
    MeasureUnits unit

    The measure unit of return value.

    Returns
    Type Description
    System.Single

    The hit test padding value.

    GetObjectData(SerializationInfo, StreamingContext)

    Gets the object data.

    Declaration
    protected override void GetObjectData(SerializationInfo info, StreamingContext context)
    Parameters
    Type Name Description
    System.Runtime.Serialization.SerializationInfo info

    The serialization info.

    System.Runtime.Serialization.StreamingContext context

    The serialization context.

    Overrides
    PropertyContainer.GetObjectData(SerializationInfo, StreamingContext)
    Exceptions
    Type Condition
    System.Security.SecurityException

    The caller does not have the required permission.

    GetPinOffset(MeasureUnits)

    Gets the pin offset in given units.

    Declaration
    public SizeF GetPinOffset(MeasureUnits unit)
    Parameters
    Type Name Description
    MeasureUnits unit

    The measure unit of return value.

    Returns
    Type Description
    System.Drawing.SizeF

    The pin offset.

    GetPinPoint(MeasureUnits)

    Gets the pin point position in given units.

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

    The measure unit of return value.

    Returns
    Type Description
    System.Drawing.PointF

    The pin point.

    GetPropertyContainerName()

    Gets the name of the property container.

    Declaration
    protected override string GetPropertyContainerName()
    Returns
    Type Description
    System.String

    Name of Bounds info.

    Overrides
    PropertyContainer.GetPropertyContainerName()

    GetSize(MeasureUnits)

    Gets the size in given units.

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

    The measure unit of return value.

    Returns
    Type Description
    System.Drawing.SizeF

    The size.

    GetUpperLeftPoint(MeasureUnits)

    Gets the upper left point in given units that calculated from PinPoint Position and PinOffset.

    Declaration
    public PointF GetUpperLeftPoint(MeasureUnits unit)
    Parameters
    Type Name Description
    MeasureUnits unit

    The measure unit of return value.

    Returns
    Type Description
    System.Drawing.PointF

    The point.

    SetHitTestPadding(Single, MeasureUnits)

    Sets the new hit test padding value.

    Declaration
    public void SetHitTestPadding(float fValue, MeasureUnits unit)
    Parameters
    Type Name Description
    System.Single fValue

    The new value to set.

    MeasureUnits unit

    The measure unit of new value.

    SetPinOffset(SizeF, MeasureUnits)

    Sets the new pin point offset.

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

    The new pin point offset.

    MeasureUnits unit

    The measure unit of new value.

    SetPinPoint(PointF, MeasureUnits)

    Sets the new pin point position.

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

    The new point point position.

    MeasureUnits unit

    The measure unit of new value.

    SetSize(SizeF, MeasureUnits)

    Sets the new size.

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

    The new size value.

    MeasureUnits unit

    The measure unit of new value.

    UpdateServiceReferences(IServiceReferenceProvider)

    Updates the service references. Update reference to document eventSink and nodeScale.

    Declaration
    public override void UpdateServiceReferences(IServiceReferenceProvider provider)
    Parameters
    Type Name Description
    IServiceReferenceProvider provider

    The service provider.

    Overrides
    PropertyContainer.UpdateServiceReferences(IServiceReferenceProvider)
    Remarks

    Update m_eventSink member reference and update nodeScale object references.

    Implements

    IServiceReferenceHolder
    IServiceReferenceProvider
    IPropertyObserver
    IPropertyContainer
    System.ICloneable
    System.Runtime.Serialization.ISerializable
    System.IDisposable
    Back to top Generated by DocFX
    Copyright © 2001 - 2025 Syncfusion Inc. All Rights Reserved