API Reference
Helpers
Provides various utility methods used throughout the library.
Inheritance
- Object
- Helpers
Methods
ConvertCentimetersToEmus(System.Double value) #Converts centimeters to EMUs and returns int value
Parameters
- value System.Double
ConvertCentimetersToEmusInt64(System.Double value) #Converts centimeters to EMUs and returns int64 value
Parameters
- value System.Double
ConvertCentimetersToPoints(System.Double cm) #Converts centimeters to points
Parameters
- cm System.Double
ConvertCentimetersToTwentiethsOfPoint(System.Double cm) #Converts centimeters to twentieths of a point
Parameters
- cm System.Double
ConvertCentimetersToTwips(System.Double cmValue) #Converts centimeters to twips
Parameters
- cmValue System.Double
ConvertCentimetersToTwipsUInt32(System.Double cmValue) #Converts centimeters to twips
Parameters
- cmValue System.Double
ConvertEmusToPoints(System.Int64 emusValue) #Converts EMUs to points
Parameters
- emusValue System.Int64
- EMUs value.
Returns
Points value.
ConvertPointsToCentimeters(System.Double points) #Converts the points to centimeters.
Parameters
- points System.Double
- The points.
ConvertPointsToEmusInt64(System.Double points) #Converts points to EMUs
Parameters
- points System.Double
- Points value.
Returns
EMUs value.
ConvertPointsToTwips(System.Double points) #Converts points to twips (twentieths of a point)
Parameters
- points System.Double
- The points value.
Returns
Twips value.
ConvertPointsToTwipsUInt32(System.Double points) #Converts points to twips (twentieths of a point)
Parameters
- points System.Double
- The points value.
Returns
Twips value.
ConvertTwipsToPoints(System.Int32 twipsValue) #Converts twips (twentieths of a point) to points
Parameters
- twipsValue System.Int32
- The value in twips.
Returns
Points value.
ConvertTwipsToPoints(System.UInt32 twipsValue) #Converts twips (twentieths of a point) to points
Parameters
- twipsValue System.UInt32
- The value in twips.
Returns
Points value.
NormalizeColor(System.String arg1) #Normalizes color input which may be a hex value or a named color. Hex values may be specified as three or six digits, with or without '#'. Returns an uppercase six-digit hex string without '#'. Throws ArgumentException if the value cannot be parsed as a valid color.
Parameters
- arg1 System.String
ParseColor(System.String hex) #Parses a color string that may or may not start with '#'.
Parameters
- hex System.String
- Color value in hex without alpha or with '#'.