Partager via


NodeShape.OnBoundsFixup Method

Override this method to customize how the bounds for the shape are determined.

Namespace:  Microsoft.VisualStudio.Modeling.Diagrams
Assembly:  Microsoft.VisualStudio.Modeling.Sdk.Diagrams.10.0 (in Microsoft.VisualStudio.Modeling.Sdk.Diagrams.10.0.dll)

Syntax

'Déclaration
Public Overrides Sub OnBoundsFixup ( _
    fixupState As BoundsFixupState, _
    iteration As Integer, _
    createdDuringViewFixup As Boolean _
)
public override void OnBoundsFixup(
    BoundsFixupState fixupState,
    int iteration,
    bool createdDuringViewFixup
)
public:
virtual void OnBoundsFixup(
    BoundsFixupState fixupState, 
    int iteration, 
    bool createdDuringViewFixup
) override
abstract OnBoundsFixup : 
        fixupState:BoundsFixupState * 
        iteration:int * 
        createdDuringViewFixup:bool -> unit 
override OnBoundsFixup : 
        fixupState:BoundsFixupState * 
        iteration:int * 
        createdDuringViewFixup:bool -> unit 
public override function OnBoundsFixup(
    fixupState : BoundsFixupState, 
    iteration : int, 
    createdDuringViewFixup : boolean
)

Parameters

  • iteration
    Type: System.Int32
    The iteration count, used to avoid infinite loops.
  • createdDuringViewFixup
    Type: System.Boolean
    true if a child shape was created when the view was fixed up; otherwise, false.

Remarks

The base method applies the BoundsRules to adjust the AbsoluteBounds.

.NET Framework Security

See Also

Reference

NodeShape Class

Microsoft.VisualStudio.Modeling.Diagrams Namespace