API Reference

Class

Helpers

Namespace OfficeIMO.Word

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 required
ConvertCentimetersToEmusInt64(System.Double value) #

Converts centimeters to EMUs and returns int64 value

Parameters

value System.Double required
ConvertCentimetersToPoints(System.Double cm) #

Converts centimeters to points

Parameters

cm System.Double required
ConvertCentimetersToTwentiethsOfPoint(System.Double cm) #

Converts centimeters to twentieths of a point

Parameters

cm System.Double required
ConvertCentimetersToTwips(System.Double cmValue) #

Converts centimeters to twips

Parameters

cmValue System.Double required
ConvertCentimetersToTwipsUInt32(System.Double cmValue) #

Converts centimeters to twips

Parameters

cmValue System.Double required
ConvertEmusToCentimeters 2 overloads
ConvertEmusToCentimeters(System.Int32 emusValue) #

Converts EMUs to centimeters

Parameters

emusValue System.Int32 required
ConvertEmusToCentimeters(System.Int64 emusValue) #

Converts EMUs to centimeters

Parameters

emusValue System.Int64 required
ConvertEmusToPoints(System.Int64 emusValue) #

Converts EMUs to points

Parameters

emusValue System.Int64 required
EMUs value.

Returns

Points value.

ConvertPointsToCentimeters(System.Double points) #

Converts the points to centimeters.

Parameters

points System.Double required
The points.
ConvertPointsToEmusInt64(System.Double points) #

Converts points to EMUs

Parameters

points System.Double required
Points value.

Returns

EMUs value.

ConvertPointsToTwips(System.Double points) #

Converts points to twips (twentieths of a point)

Parameters

points System.Double required
The points value.

Returns

Twips value.

ConvertPointsToTwipsUInt32(System.Double points) #

Converts points to twips (twentieths of a point)

Parameters

points System.Double required
The points value.

Returns

Twips value.

ConvertTwipsToCentimeters 2 overloads
ConvertTwipsToCentimeters(System.Int32 twipsValue) #

Converts twips to centimeters

Parameters

twipsValue System.Int32 required
ConvertTwipsToCentimeters(System.UInt32 twipsValue) #

Converts twips to centimeters

Parameters

twipsValue System.UInt32 required
ConvertTwipsToPoints 2 overloads
ConvertTwipsToPoints(System.Int32 twipsValue) #

Converts twips (twentieths of a point) to points

Parameters

twipsValue System.Int32 required
The value in twips.

Returns

Points value.

ConvertTwipsToPoints(System.UInt32 twipsValue) #

Converts twips (twentieths of a point) to points

Parameters

twipsValue System.UInt32 required
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 required
ParseColor(System.String hex) #

Parses a color string that may or may not start with '#'.

Parameters

hex System.String required
Color value in hex without alpha or with '#'.