Search
Utilities.ApplyPadding Method
See Also
 





Subtract padding space from specified rectangle.

Namespace: MindFusion
Assembly: MindFusion.Diagramming.Wpf

 Syntax

C#  Copy Code

public static Rect ApplyPadding (
    Rect rect,
    Thickness padding,
    double defaultValue
)

Visual Basic  Copy Code

Public Shared Function ApplyPadding( _
    rect As Rect, _
    padding As Thickness, _
    defaultValue As Double _
) As Rect

 Parameters

rect

A Rect instance.

padding

A Thickness instance specifying padding size.

defaultValue

A double value specifying default padding.

 Return Value

The padded rectangle.

 See Also