Search
Utilities.ImageRect Method
See Also
 





Returns the region where an image should be displayed for specified alignment.

Namespace: MindFusion
Assembly: MindFusion.Diagramming.Wpf

 Syntax

C#  Copy Code

public static Rect ImageRect (
    ImageAlign align,
    Rect layoutRect,
    Size imageSize
)

Visual Basic  Copy Code

Public Shared Function ImageRect( _
    align As ImageAlign, _
    layoutRect As Rect, _
    imageSize As Size _
) As Rect

 Parameters

align

A member of the ImageAlign enumeration.

layoutRect

Layout rectangle relatively to which the image is aligned.

imageSize

The image size.

 Return Value

A System.Windows.Rect specifying image placement.

 See Also