Convert values
The static class VisioAutomation.Convert contains many useful methods for converting values
Useful conversions for ShapeSheets
Convert.BoolToFormula
true is converted to "1" false is converted to "0"
Convert.BoolToShort
true is converted to 1 false is converted to 0
Convert.ColorToFormulaHSL
formula will have a value like "HSL(100,130,47)"
Convert.ColorToFormulaRGB
formula will have value "RGB(100,130,47)"
Convert.ColorToFormulaRGB
formula will have value "RGB(100,130,47)"
Convert.DegreesToRadians and Convert.RadiansToDegrees
Convert.DoubleToBool and Convert.ShortToBool
zero -> false non-zero -> true
zero -> false non-zero -> true
StringToFormulaString
Converts strings that contain quotes and spaces into a form that can be used in a formula
FormulaStringToString
Decodes a formula into a normal string
InchesToPoints & PointsToInches
Last updated