Table of Contents

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

int

SlideNextIndex

public static int SlideNextIndex { get; set; }

Property Value

int

Methods

DeserializeStyling(string)

public static Stylings DeserializeStyling(string stylingInfo)

Parameters

stylingInfo string

Returns

Stylings

EmuToPixels(long)

Function to convert EMU to Pixel

public static double EmuToPixels(long emuValue)

Parameters

emuValue long

Long value

Returns

double

GetRandomSlideId()

Function to get unique slide Id.

public static uint GetRandomSlideId()

Returns

uint

GetUniqueRelationshipId()

Function to generate a unique Relationship ID

public static string GetUniqueRelationshipId()

Returns

string

PixelsToEmu(double)

Function to convert Pixel valie to EMU.

public static long PixelsToEmu(double pixelsValue)

Parameters

pixelsValue double

Double value

Returns

long

SerializeStyling(Stylings)

public static string SerializeStyling(Stylings styling)

Parameters

styling Stylings

Returns

string