C# Class PicoXLSX.Metadata

Class representing the meta data of a workbook
Mostra file Open project: rabanti-github/PicoXLSX Class Usage Examples

Public Methods

Method Description
Metadata ( ) : System

Default constructor

ParseVersion ( int major, int minor, int build, int revision ) : string

Method to parse a common version (major.minor.revision.build) into the compatible format (major.minor). The minimum value is 0.0 and the maximum value is 99999.99999

The minor, revision and build number are joined if possible. If the number is to long, the additional characters will be removed from the right side down to five characters (e.g. 785563 will be 78556)

Private Methods

Method Description
CheckVersion ( ) : void

Checks the format of the passed version string

Method Details

Metadata() public method

Default constructor
public Metadata ( ) : System
return System

ParseVersion() public static method

Method to parse a common version (major.minor.revision.build) into the compatible format (major.minor). The minimum value is 0.0 and the maximum value is 99999.99999

The minor, revision and build number are joined if possible. If the number is to long, the additional characters will be removed from the right side down to five characters (e.g. 785563 will be 78556)
Throws a FormatException if the major number is to long or one of the numbers is negative
public static ParseVersion ( int major, int minor, int build, int revision ) : string
major int Major number from 0 to 99999
minor int Minor number
build int Build number
revision int Revision number
return string