Class BoundsInfo
A BoundsInfo is a collection of properties that define a Node transformation in current measure units.
Implements
Inherited Members
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 |
|
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 |
|
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
Dispose()
Declaration
public override void Dispose()
Overrides
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
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
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
Remarks
Update m_eventSink member reference and update nodeScale object references.