Search
ComponentBase.GetDesiredSize Method
See Also
 





Gets the desired size of this component in case the Width and/or Height have not been explicitly specified.

Namespace: MindFusion.Diagramming.Components
Assembly: MindFusion.Diagramming

 Syntax

C#  Copy Code

public virtual Size GetDesiredSize (
    Size availableSize,
    IGraphics graphics
)

Visual Basic  Copy Code

Public Overridable Function GetDesiredSize( _
    availableSize As Size, _
    graphics As IGraphics _
) As Size

 Parameters

availableSize

The available size.

graphics
A relevant IGraphics object.

 Return Value

A Microsoft.Maui.Graphics.Size representing the desired size.

 See Also