Class Utility
- Namespace
- FileFormat.Slides.Common
- Assembly
- FileFormat.Slides.Common.dll
This class provides essential static methods for generating unique relationship IDs, obtaining random slide IDs, and converting measurements.
public static class Utility
- Inheritance
-
Utility
- Inherited Members
Properties
NextIndex
Property to set next index for slide relationship Id.
public static int NextIndex { get; set; }
Property Value
SlideNextIndex
public static int SlideNextIndex { get; set; }
Property Value
Methods
DeserializeStyling(string)
public static Stylings DeserializeStyling(string stylingInfo)
Parameters
stylingInfo
string
Returns
EmuToPixels(long)
Function to convert EMU to Pixel
public static double EmuToPixels(long emuValue)
Parameters
emuValue
longLong value
Returns
GetRandomSlideId()
Function to get unique slide Id.
public static uint GetRandomSlideId()
Returns
GetUniqueRelationshipId()
Function to generate a unique Relationship ID
public static string GetUniqueRelationshipId()
Returns
PixelsToEmu(double)
Function to convert Pixel valie to EMU.
public static long PixelsToEmu(double pixelsValue)
Parameters
pixelsValue
doubleDouble value
Returns
SerializeStyling(Stylings)
public static string SerializeStyling(Stylings styling)
Parameters
styling
Stylings