SizingOptions.SetEquivalentHeight
Description:
Sets the equivalent height based on the specified width.
Sets the equivalent height based on the specified width.
Remarks:
The equivalent height is calculated based on the specified width and the available sizes. If successful, the new width and height in the options provide the same or similar friction loss as the previous width and height.
The equivalent height is calculated based on the specified width and the available sizes. If successful, the new width and height in the options provide the same or similar friction loss as the previous width and height.
public void SetEquivalentHeight(
double fixedWidth,
ISet<MEPSize> availableSizes
)
-
DoublefixedWidthThe new width.
-
ISet<MEPSize>availableSizesThe sorted list of available sizes, where the equivalent height will be selected.
-
A non-optional argument was null
-
The given value for fixedWidth must be positive. -or- The fixedWidth must be within the range of availableSizes. -or- The new size must be within the range of available sizes.