Converts a diagram size and available size to a zoom factor.
Namespace:
Mindscape.WpfDiagramming.FoundationAssembly: Mindscape.WpfDiagramming.Foundation (in Mindscape.WpfDiagramming.Foundation.dll)
Version: 2.0.0.0 (2.0.0.0)
Syntax
C# |
---|
public Object Convert( Object[] values, Type targetType, Object parameter, CultureInfo culture ) |
Visual Basic (Declaration) |
---|
Public Function Convert ( _ values As Object(), _ targetType As Type, _ parameter As Object, _ culture As CultureInfo _ ) As Object |
Parameters
- values
- Type: array<
System..::.Object
>[]()[]
The diagram size and target size.
- targetType
- Type: System..::.Type
The type of the binding target property.
- parameter
- Type: System..::.Object
The converter parameter to use.
- culture
- Type: System.Globalization..::.CultureInfo
The culture to use in the conversion.
Return Value
A zoom factor which fits the diagram into the available space.Implements
IMultiValueConverter..::.Convert(array<Object>[]()[], Type, Object, CultureInfo)
Remarks
The values are expected to be as follows:
1. The diagram size.
2. A Thickness buffer around the diagram bounds.
3. The horizontal available size.
4. The vertical available size.