我在 Visual Paradigm 中完成了类和序列图,文件保存为 .vpp 文件扩展名。是否有在线免费工具可以将视觉范例 .vpp 文件转换为 pdf?问候丹
public class CoffeeStrengthEstimator
{
/// <summary>
/// Estimates the strength of the coffee (how many beans to use) depending on the button pressed
/// </summary>
/// <param name="buttonPressed"> The numeral position of the button pressed</param>
/// <returns>An enum value indicating the estimated coffee strength</returns>
public CoffeeStrength EstimateCoffeeStrength(int buttonPressed)
{
if (buttonPressed == 1)
{
return CoffeeStrength.Light;
}
else if (buttonPressed == 2)
{
return CoffeeStrength.Medium;
}
else if (buttonPressed == 3)
{
return CoffeeStrength.Strong;
}
else
{
throw new ArgumentException …Run Code Online (Sandbox Code Playgroud)